@@ -91,7 +91,7 @@ pub fn build(b: *std.Build) !void {
9191 const skip_single_threaded = b .option (bool , "skip-single-threaded" , "Main test suite skips tests that are single-threaded" ) orelse false ;
9292 const skip_compile_errors = b .option (bool , "skip-compile-errors" , "Main test suite skips compile error tests" ) orelse false ;
9393 const skip_translate_c = b .option (bool , "skip-translate-c" , "Main test suite skips translate-c tests" ) orelse false ;
94- const skip_run_translated_c = b .option (bool , "skip-run-translated-c" , "Main test suite skips run-translated-c tests" ) orelse false ;
94+ const skip_run_translated_c = b .option (bool , "skip-run-translated-c" , "Main test suite skips run-translated-c tests" ) orelse skip_translate_c ;
9595 const skip_freebsd = b .option (bool , "skip-freebsd" , "Main test suite skips targets with freebsd OS" ) orelse false ;
9696 const skip_netbsd = b .option (bool , "skip-netbsd" , "Main test suite skips targets with netbsd OS" ) orelse false ;
9797 const skip_windows = b .option (bool , "skip-windows" , "Main test suite skips targets with windows OS" ) orelse false ;
@@ -464,25 +464,27 @@ pub fn build(b: *std.Build) !void {
464464 .max_rss = 4000000000 ,
465465 }));
466466
467- test_modules_step .dependOn (tests .addModuleTests (b , .{
468- .test_filters = test_filters ,
469- .test_target_filters = test_target_filters ,
470- .test_extra_targets = test_extra_targets ,
471- .root_src = "test/c_import.zig" ,
472- .name = "c-import" ,
473- .desc = "Run the @cImport tests" ,
474- .optimize_modes = optimization_modes ,
475- .include_paths = &.{"test/c_import" },
476- .skip_single_threaded = true ,
477- .skip_non_native = skip_non_native ,
478- .skip_freebsd = skip_freebsd ,
479- .skip_netbsd = skip_netbsd ,
480- .skip_windows = skip_windows ,
481- .skip_macos = skip_macos ,
482- .skip_linux = skip_linux ,
483- .skip_llvm = skip_llvm ,
484- .skip_libc = skip_libc ,
485- }));
467+ if (! skip_translate_c ) {
468+ test_modules_step .dependOn (tests .addModuleTests (b , .{
469+ .test_filters = test_filters ,
470+ .test_target_filters = test_target_filters ,
471+ .test_extra_targets = test_extra_targets ,
472+ .root_src = "test/c_import.zig" ,
473+ .name = "c-import" ,
474+ .desc = "Run the @cImport tests" ,
475+ .optimize_modes = optimization_modes ,
476+ .include_paths = &.{"test/c_import" },
477+ .skip_single_threaded = true ,
478+ .skip_non_native = skip_non_native ,
479+ .skip_freebsd = skip_freebsd ,
480+ .skip_netbsd = skip_netbsd ,
481+ .skip_windows = skip_windows ,
482+ .skip_macos = skip_macos ,
483+ .skip_linux = skip_linux ,
484+ .skip_llvm = skip_llvm ,
485+ .skip_libc = skip_libc ,
486+ }));
487+ }
486488
487489 test_modules_step .dependOn (tests .addModuleTests (b , .{
488490 .test_filters = test_filters ,
@@ -568,13 +570,13 @@ pub fn build(b: *std.Build) !void {
568570 unit_tests .root_module .addOptions ("build_options" , exe_options );
569571 unit_tests_step .dependOn (& b .addRunArtifact (unit_tests ).step );
570572
571- test_step .dependOn (tests .addCompareOutputTests (b , test_filters , optimization_modes ));
572573 test_step .dependOn (tests .addStandaloneTests (
573574 b ,
574575 optimization_modes ,
575576 enable_macos_sdk ,
576577 enable_ios_sdk ,
577578 enable_symlinks_windows ,
579+ skip_translate_c ,
578580 ));
579581 test_step .dependOn (tests .addCAbiTests (b , .{
580582 .test_target_filters = test_target_filters ,
@@ -590,7 +592,6 @@ pub fn build(b: *std.Build) !void {
590592 test_step .dependOn (tests .addLinkTests (b , enable_macos_sdk , enable_ios_sdk , enable_symlinks_windows ));
591593 test_step .dependOn (tests .addStackTraceTests (b , test_filters , optimization_modes ));
592594 test_step .dependOn (tests .addCliTests (b ));
593- test_step .dependOn (tests .addAssembleAndLinkTests (b , test_filters , optimization_modes ));
594595 if (tests .addDebuggerTests (b , .{
595596 .test_filters = test_filters ,
596597 .test_target_filters = test_target_filters ,
0 commit comments