aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-07-17 23:18:06 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-09-24 20:01:17 -0700
commit1bdcdbd996a73a7270d6668fca8893b4fc701280 (patch)
tree5328f197817106c0d77370bd6b2706901b94ef35 /build.zig
parentf49a54745ba67a4226cbe706727fb6817b64b1aa (diff)
downloadzig-1bdcdbd996a73a7270d6668fca8893b4fc701280.tar.gz
zig-1bdcdbd996a73a7270d6668fca8893b4fc701280.zip
delete all the translate-c tests
the ziglang/translate-c package has its own test suite, so these are redundant
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig48
1 files changed, 20 insertions, 28 deletions
diff --git a/build.zig b/build.zig
index e217e9e274..00414c3cad 100644
--- a/build.zig
+++ b/build.zig
@@ -90,8 +90,6 @@ pub fn build(b: *std.Build) !void {
const skip_libc = b.option(bool, "skip-libc", "Main test suite skips tests that link libc") orelse false;
const skip_single_threaded = b.option(bool, "skip-single-threaded", "Main test suite skips tests that are single-threaded") orelse false;
const skip_compile_errors = b.option(bool, "skip-compile-errors", "Main test suite skips compile error tests") orelse false;
- const skip_translate_c = b.option(bool, "skip-translate-c", "Main test suite skips translate-c tests") orelse false;
- const skip_run_translated_c = b.option(bool, "skip-run-translated-c", "Main test suite skips run-translated-c tests") orelse skip_translate_c;
const skip_freebsd = b.option(bool, "skip-freebsd", "Main test suite skips targets with freebsd OS") orelse false;
const skip_netbsd = b.option(bool, "skip-netbsd", "Main test suite skips targets with netbsd OS") orelse false;
const skip_windows = b.option(bool, "skip-windows", "Main test suite skips targets with windows OS") orelse false;
@@ -416,7 +414,7 @@ pub fn build(b: *std.Build) !void {
test_step.dependOn(check_fmt);
const test_cases_step = b.step("test-cases", "Run the main compiler test cases");
- try tests.addCases(b, test_cases_step, target, .{
+ try tests.addCases(b, test_cases_step, .{
.test_filters = test_filters,
.test_target_filters = test_target_filters,
.skip_compile_errors = skip_compile_errors,
@@ -429,9 +427,6 @@ pub fn build(b: *std.Build) !void {
.skip_llvm = skip_llvm,
.skip_libc = skip_libc,
}, .{
- .skip_translate_c = skip_translate_c,
- .skip_run_translated_c = skip_run_translated_c,
- }, .{
.enable_llvm = enable_llvm,
.llvm_has_m68k = llvm_has_m68k,
.llvm_has_csky = llvm_has_csky,
@@ -465,27 +460,25 @@ pub fn build(b: *std.Build) !void {
.max_rss = 4000000000,
}));
- if (!skip_translate_c) {
- test_modules_step.dependOn(tests.addModuleTests(b, .{
- .test_filters = test_filters,
- .test_target_filters = test_target_filters,
- .test_extra_targets = test_extra_targets,
- .root_src = "test/c_import.zig",
- .name = "c-import",
- .desc = "Run the @cImport tests",
- .optimize_modes = optimization_modes,
- .include_paths = &.{"test/c_import"},
- .skip_single_threaded = true,
- .skip_non_native = skip_non_native,
- .skip_freebsd = skip_freebsd,
- .skip_netbsd = skip_netbsd,
- .skip_windows = skip_windows,
- .skip_macos = skip_macos,
- .skip_linux = skip_linux,
- .skip_llvm = skip_llvm,
- .skip_libc = skip_libc,
- }));
- }
+ test_modules_step.dependOn(tests.addModuleTests(b, .{
+ .test_filters = test_filters,
+ .test_target_filters = test_target_filters,
+ .test_extra_targets = test_extra_targets,
+ .root_src = "test/c_import.zig",
+ .name = "c-import",
+ .desc = "Run the @cImport tests",
+ .optimize_modes = optimization_modes,
+ .include_paths = &.{"test/c_import"},
+ .skip_single_threaded = true,
+ .skip_non_native = skip_non_native,
+ .skip_freebsd = skip_freebsd,
+ .skip_netbsd = skip_netbsd,
+ .skip_windows = skip_windows,
+ .skip_macos = skip_macos,
+ .skip_linux = skip_linux,
+ .skip_llvm = skip_llvm,
+ .skip_libc = skip_libc,
+ }));
test_modules_step.dependOn(tests.addModuleTests(b, .{
.test_filters = test_filters,
@@ -577,7 +570,6 @@ pub fn build(b: *std.Build) !void {
enable_macos_sdk,
enable_ios_sdk,
enable_symlinks_windows,
- skip_translate_c,
));
test_step.dependOn(tests.addCAbiTests(b, .{
.test_target_filters = test_target_filters,