authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-22 14:40:54-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-22 14:40:54-04:00
log786052c7d33973bf0bb34483301142b07bd48880
tree93e9259ddaa85c2f33c9c8db5fd7684a44b8ed10
parent9627a75b071787d49c10c45bd2d8e83423b988fe

disable running cross compiled macos tests

due to #3295

1 files changed, 11 insertions(+), 0 deletions(-)

test/tests.zig+11
...@@ -28,6 +28,7 @@ const TestTarget = struct {...@@ -28,6 +28,7 @@ const TestTarget = struct {
28 mode: builtin.Mode = .Debug,28 mode: builtin.Mode = .Debug,
29 link_libc: bool = false,29 link_libc: bool = false,
30 single_threaded: bool = false,30 single_threaded: bool = false,
31 disable_native: bool = false,
31};32};
3233
33const test_targets = [_]TestTarget{34const test_targets = [_]TestTarget{
...@@ -175,6 +176,8 @@ const test_targets = [_]TestTarget{...@@ -175,6 +176,8 @@ const test_targets = [_]TestTarget{
175 .abi = .gnu,176 .abi = .gnu,
176 },177 },
177 },178 },
179 // TODO https://github.com/ziglang/zig/issues/3295
180 .disable_native = true,
178 },181 },
179182
180 TestTarget{183 TestTarget{
...@@ -365,6 +368,14 @@ pub fn addPkgTests(...@@ -365,6 +368,14 @@ pub fn addPkgTests(
365 if (skip_single_threaded and test_target.single_threaded)368 if (skip_single_threaded and test_target.single_threaded)
366 continue;369 continue;
367370
371 const ArchTag = @TagType(builtin.Arch);
372 if (test_target.disable_native and
373 test_target.target.getOs() == builtin.os and
374 ArchTag(test_target.target.getArch()) == ArchTag(builtin.arch))
375 {
376 continue;
377 }
378
368 const want_this_mode = for (modes) |m| {379 const want_this_mode = for (modes) |m| {
369 if (m == test_target.mode) break true;380 if (m == test_target.mode) break true;
370 } else false;381 } else false;