authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-09-07 19:16:54+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-09-07 22:42:59+02:00
loga226aef36cc441be4af675e24b3e672fe3fe2d5a
tree69821008ae49b3d69e4bdd8c2518e6993d4f468c
parent678e07b924a717e79f412b78895ead1136a722bc

test-cases: enable stage2 tests on Windows


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

ci/azure/pipelines.yml+1-2
...@@ -73,8 +73,7 @@ jobs:...@@ -73,8 +73,7 @@ jobs:
73 & "$ZIGINSTALLDIR\bin\zig.exe" build test docs `73 & "$ZIGINSTALLDIR\bin\zig.exe" build test docs `
74 --search-prefix "$ZIGPREFIXPATH" `74 --search-prefix "$ZIGPREFIXPATH" `
75 -Dstatic-llvm `75 -Dstatic-llvm `
76 -Dskip-non-native `76 -Dskip-non-native
77 -Dskip-stage2-tests
78 CheckLastExitCode77 CheckLastExitCode
79 name: test78 name: test
80 displayName: 'Test'79 displayName: 'Test'
src/test.zig+9
...@@ -177,6 +177,8 @@ const TestManifestConfigDefaults = struct {...@@ -177,6 +177,8 @@ const TestManifestConfigDefaults = struct {
177 inline for (&[_][]const u8{ "x86_64", "aarch64" }) |arch| {177 inline for (&[_][]const u8{ "x86_64", "aarch64" }) |arch| {
178 defaults = defaults ++ arch ++ "-macos" ++ ",";178 defaults = defaults ++ arch ++ "-macos" ++ ",";
179 }179 }
180 // Windows
181 defaults = defaults ++ "x86_64-windows" ++ ",";
180 // Wasm182 // Wasm
181 defaults = defaults ++ "wasm32-wasi";183 defaults = defaults ++ "wasm32-wasi";
182 return defaults;184 return defaults;
...@@ -1546,6 +1548,13 @@ pub const TestContext = struct {...@@ -1546,6 +1548,13 @@ pub const TestContext = struct {
1546 .self_exe_path = std.testing.zig_exe_path,1548 .self_exe_path = std.testing.zig_exe_path,
1547 // TODO instead of turning off color, pass in a std.Progress.Node1549 // TODO instead of turning off color, pass in a std.Progress.Node
1548 .color = .off,1550 .color = .off,
1551 // TODO: We set these to no so that we don't fallback to LLD for incremental linking context. This is because
1552 // our own COFF linker doesn't yet support these options.
1553 .want_unwind_tables = switch (case.backend) {
1554 .stage2 => if (target.os.tag == .windows) false else null,
1555 else => null,
1556 },
1557 .emit_implib = null,
1549 });1558 });
1550 defer comp.destroy();1559 defer comp.destroy();
15511560