authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-04-14 23:10:51-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-04-14 23:10:51-07:00
logee42178b430f3f5d7a359edd40cece7c0ada363c
tree9be104f97bb7113ddead2fe78bf13e8fc579b7a5
parent45eb9554c4feec743924c0193d9ec50d9c94d0e4

ci: aarch64-linux: disable run-translated-c tests

See #8537

2 files changed, 9 insertions(+), 2 deletions(-)

build.zig+4-1
...@@ -51,6 +51,7 @@ pub fn build(b: *Builder) !void {...@@ -51,6 +51,7 @@ pub fn build(b: *Builder) !void {
51 const skip_non_native = b.option(bool, "skip-non-native", "Main test suite skips non-native builds") orelse false;51 const skip_non_native = b.option(bool, "skip-non-native", "Main test suite skips non-native builds") orelse false;
52 const skip_libc = b.option(bool, "skip-libc", "Main test suite skips tests that link libc") orelse false;52 const skip_libc = b.option(bool, "skip-libc", "Main test suite skips tests that link libc") orelse false;
53 const skip_compile_errors = b.option(bool, "skip-compile-errors", "Main test suite skips compile error tests") orelse false;53 const skip_compile_errors = b.option(bool, "skip-compile-errors", "Main test suite skips compile error tests") orelse false;
54 const skip_run_translated_c = b.option(bool, "skip-run-translated-c", "Main test suite skips run-translated-c tests") orelse false;
5455
55 const only_install_lib_files = b.option(bool, "lib-files-only", "Only install library files") orelse false;56 const only_install_lib_files = b.option(bool, "lib-files-only", "Only install library files") orelse false;
56 const is_stage1 = b.option(bool, "stage1", "Build the stage1 compiler, put stage2 behind a feature flag") orelse false;57 const is_stage1 = b.option(bool, "stage1", "Build the stage1 compiler, put stage2 behind a feature flag") orelse false;
...@@ -267,7 +268,9 @@ pub fn build(b: *Builder) !void {...@@ -267,7 +268,9 @@ pub fn build(b: *Builder) !void {
267 test_step.dependOn(tests.addAssembleAndLinkTests(b, test_filter, modes));268 test_step.dependOn(tests.addAssembleAndLinkTests(b, test_filter, modes));
268 test_step.dependOn(tests.addRuntimeSafetyTests(b, test_filter, modes));269 test_step.dependOn(tests.addRuntimeSafetyTests(b, test_filter, modes));
269 test_step.dependOn(tests.addTranslateCTests(b, test_filter));270 test_step.dependOn(tests.addTranslateCTests(b, test_filter));
270 test_step.dependOn(tests.addRunTranslatedCTests(b, test_filter, target));271 if (!skip_run_translated_c) {
272 test_step.dependOn(tests.addRunTranslatedCTests(b, test_filter, target));
273 }
271 // tests for this feature are disabled until we have the self-hosted compiler available274 // tests for this feature are disabled until we have the self-hosted compiler available
272 // test_step.dependOn(tests.addGenHTests(b, test_filter));275 // test_step.dependOn(tests.addGenHTests(b, test_filter));
273 if (!skip_compile_errors) {276 if (!skip_compile_errors) {
ci/drone/linux_script+5-1
...@@ -22,7 +22,11 @@ cd build...@@ -22,7 +22,11 @@ cd build
22cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$DISTDIR" -DZIG_STATIC=ON -DCMAKE_PREFIX_PATH=/deps/local -GNinja22cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$DISTDIR" -DZIG_STATIC=ON -DCMAKE_PREFIX_PATH=/deps/local -GNinja
2323
24samu install24samu install
25./zig build test -Dskip-release -Dskip-non-native -Dskip-compile-errors25./zig build test \
26 -Dskip-release \
27 -Dskip-non-native \
28 -Dskip-compile-errors \
29 -Dskip-run-translated-c # https://github.com/ziglang/zig/issues/8537
2630
27if [ -z "$DRONE_PULL_REQUEST" ]; then31if [ -z "$DRONE_PULL_REQUEST" ]; then
28 mv ../LICENSE "$DISTDIR/"32 mv ../LICENSE "$DISTDIR/"