@@ -400,47 +400,45 @@ pub fn build(b: *std.Build) !void {
400400 const do_fmt_step = b .step ("fmt" , "Modify source files in place to have conforming formatting" );
401401 do_fmt_step .dependOn (& do_fmt .step );
402402
403- test_step .dependOn (tests .addPkgTests (
404- b ,
405- test_filter ,
406- "test/behavior.zig" ,
407- "behavior" ,
408- "Run the behavior tests" ,
409- optimization_modes ,
410- skip_single_threaded ,
411- skip_non_native ,
412- skip_libc ,
413- skip_stage1 ,
414- skip_stage2_tests ,
415- ));
416-
417- test_step .dependOn (tests .addPkgTests (
418- b ,
419- test_filter ,
420- "lib/compiler_rt.zig" ,
421- "compiler-rt" ,
422- "Run the compiler_rt tests" ,
423- optimization_modes ,
424- true , // skip_single_threaded
425- skip_non_native ,
426- true , // skip_libc
427- skip_stage1 ,
428- skip_stage2_tests or true , // TODO get these all passing
429- ));
430-
431- test_step .dependOn (tests .addPkgTests (
432- b ,
433- test_filter ,
434- "lib/c.zig" ,
435- "universal-libc" ,
436- "Run the universal libc tests" ,
437- optimization_modes ,
438- true , // skip_single_threaded
439- skip_non_native ,
440- true , // skip_libc
441- skip_stage1 ,
442- skip_stage2_tests or true , // TODO get these all passing
443- ));
403+ test_step .dependOn (tests .addModuleTests (b , .{
404+ .test_filter = test_filter ,
405+ .root_src = "test/behavior.zig" ,
406+ .name = "behavior" ,
407+ .desc = "Run the behavior tests" ,
408+ .optimize_modes = optimization_modes ,
409+ .skip_single_threaded = skip_single_threaded ,
410+ .skip_non_native = skip_non_native ,
411+ .skip_libc = skip_libc ,
412+ .skip_stage1 = skip_stage1 ,
413+ .skip_stage2 = skip_stage2_tests ,
414+ .max_rss = 1 * 1024 * 1024 * 1024 ,
415+ }));
416+
417+ test_step .dependOn (tests .addModuleTests (b , .{
418+ .test_filter = test_filter ,
419+ .root_src = "lib/compiler_rt.zig" ,
420+ .name = "compiler-rt" ,
421+ .desc = "Run the compiler_rt tests" ,
422+ .optimize_modes = optimization_modes ,
423+ .skip_single_threaded = true ,
424+ .skip_non_native = skip_non_native ,
425+ .skip_libc = true ,
426+ .skip_stage1 = skip_stage1 ,
427+ .skip_stage2 = true , // TODO get all these passing
428+ }));
429+
430+ test_step .dependOn (tests .addModuleTests (b , .{
431+ .test_filter = test_filter ,
432+ .root_src = "lib/c.zig" ,
433+ .name = "universal-libc" ,
434+ .desc = "Run the universal libc tests" ,
435+ .optimize_modes = optimization_modes ,
436+ .skip_single_threaded = true ,
437+ .skip_non_native = skip_non_native ,
438+ .skip_libc = true ,
439+ .skip_stage1 = skip_stage1 ,
440+ .skip_stage2 = true , // TODO get all these passing
441+ }));
444442
445443 test_step .dependOn (tests .addCompareOutputTests (b , test_filter , optimization_modes ));
446444 test_step .dependOn (tests .addStandaloneTests (
@@ -470,19 +468,19 @@ pub fn build(b: *std.Build) !void {
470468 // tests for this feature are disabled until we have the self-hosted compiler available
471469 // test_step.dependOn(tests.addGenHTests(b, test_filter));
472470
473- test_step .dependOn (tests .addPkgTests (
474- b ,
475- test_filter ,
476- "lib/ std/std.zig " ,
477- "std " ,
478- "Run the standard library tests" ,
479- optimization_modes ,
480- skip_single_threaded ,
481- skip_non_native ,
482- skip_libc ,
483- skip_stage1 ,
484- true , // TODO get these all passing
485- ));
471+ test_step .dependOn (tests .addModuleTests ( b , .{
472+ . test_filter = test_filter ,
473+ . root_src = "lib/std/std.zig" ,
474+ . name = " std" ,
475+ . desc = "Run the standard library tests " ,
476+ . optimize_modes = optimization_modes ,
477+ . skip_single_threaded = skip_single_threaded ,
478+ . skip_non_native = skip_non_native ,
479+ . skip_libc = skip_libc ,
480+ . skip_stage1 = skip_stage1 ,
481+ . skip_stage2 = true , // TODO get all these passing
482+ . max_rss = 3 * 1024 * 1024 * 1024 ,
483+ } ));
486484
487485 try addWasiUpdateStep (b , version );
488486}
0 commit comments