| author | |
| committer | |
| log | f7a607ef68c96cb6c5b68cbf762e621aaed95caf |
| tree | 589db3584c8a04493b35e9bccf3c4b88eaa3be03 |
| parent | 5d55999d20c4d856ad9e0bd35a939e4aa3be3d0d |
| parent | 8eafca4c9bbe38dc194b0cf02db96afcb7dd0494 |
| signature |
5 files changed, 19 insertions(+), 11 deletions(-)
ci/aarch64-macos-release.sh-3| ... | @@ -55,9 +55,6 @@ stage3-release/bin/zig build test docs \ | ... | @@ -55,9 +55,6 @@ stage3-release/bin/zig build test docs \ |
| 55 | stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=ReleaseSafe | 55 | stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=ReleaseSafe |
| 56 | stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug | 56 | stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug |
| 57 | 57 | ||
| 58 | # Ensure that reduce compiles | ||
| 59 | stage3-release/bin/zig reduce -h | ||
| 60 | |||
| 61 | # Ensure that stage3 and stage4 are byte-for-byte identical. | 58 | # Ensure that stage3 and stage4 are byte-for-byte identical. |
| 62 | stage3-release/bin/zig build \ | 59 | stage3-release/bin/zig build \ |
| 63 | --maxrss ${ZSF_MAX_RSS:-0} \ | 60 | --maxrss ${ZSF_MAX_RSS:-0} \ |
ci/x86_64-linux-release.sh-3| ... | @@ -77,9 +77,6 @@ stage3-release/bin/zig build test docs \ | ... | @@ -77,9 +77,6 @@ stage3-release/bin/zig build test docs \ |
| 77 | stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=ReleaseSafe | 77 | stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=ReleaseSafe |
| 78 | stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug | 78 | stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug |
| 79 | 79 | ||
| 80 | # Ensure that reduce compiles | ||
| 81 | stage3-release/bin/zig reduce -h | ||
| 82 | |||
| 83 | # Ensure that stage3 and stage4 are byte-for-byte identical. | 80 | # Ensure that stage3 and stage4 are byte-for-byte identical. |
| 84 | stage3-release/bin/zig build \ | 81 | stage3-release/bin/zig build \ |
| 85 | --prefix stage4-release \ | 82 | --prefix stage4-release \ |
ci/x86_64-windows-release.ps1-4| ... | @@ -61,10 +61,6 @@ CheckLastExitCode | ... | @@ -61,10 +61,6 @@ CheckLastExitCode |
| 61 | # stage3-release\bin\zig.exe build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug | 61 | # stage3-release\bin\zig.exe build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug |
| 62 | # CheckLastExitCode | 62 | # CheckLastExitCode |
| 63 | 63 | ||
| 64 | # Ensure that reduce compiles | ||
| 65 | stage3-release\bin\zig.exe build reduce -h | ||
| 66 | CheckLastExitCode | ||
| 67 | |||
| 68 | # Ensure that stage3 and stage4 are byte-for-byte identical. | 64 | # Ensure that stage3 and stage4 are byte-for-byte identical. |
| 69 | Write-Output "Build and compare stage4..." | 65 | Write-Output "Build and compare stage4..." |
| 70 | stage3-release\bin\zig.exe build ` | 66 | stage3-release\bin\zig.exe build ` |
lib/compiler/std-docs.zig+1-1| ... | @@ -18,7 +18,7 @@ fn usage(io: Io) noreturn { | ... | @@ -18,7 +18,7 @@ fn usage(io: Io) noreturn { |
| 18 | \\ By default, enabled unless a port is specified. | 18 | \\ By default, enabled unless a port is specified. |
| 19 | \\ | 19 | \\ |
| 20 | ) catch {}; | 20 | ) catch {}; |
| 21 | std.process.exit(1); | 21 | std.process.exit(0); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | pub fn main(init: std.process.Init) !void { | 24 | pub fn main(init: std.process.Init) !void { |
test/tests.zig+18| ... | @@ -2237,6 +2237,24 @@ pub fn addCliTests(b: *std.Build) *Step { | ... | @@ -2237,6 +2237,24 @@ pub fn addCliTests(b: *std.Build) *Step { |
| 2237 | const step = b.step("test-cli", "Test the command line interface"); | 2237 | const step = b.step("test-cli", "Test the command line interface"); |
| 2238 | const s = std.fs.path.sep_str; | 2238 | const s = std.fs.path.sep_str; |
| 2239 | 2239 | ||
| 2240 | { | ||
| 2241 | // Test that all JIT'd commands compile. | ||
| 2242 | for (&[_][]const u8{ | ||
| 2243 | "libc", | ||
| 2244 | "objcopy", | ||
| 2245 | "objdump", | ||
| 2246 | "rc", | ||
| 2247 | "reduce", | ||
| 2248 | "std", | ||
| 2249 | }) |cmd| { | ||
| 2250 | const run_help = b.addSystemCommand(&.{ b.graph.zig_exe, cmd, "--help" }); | ||
| 2251 | run_help.setName(b.fmt("zig {s} --help", .{cmd})); | ||
| 2252 | run_help.expectStdErrEqual(""); | ||
| 2253 | run_help.expectExitCode(0); | ||
| 2254 | step.dependOn(&run_help.step); | ||
| 2255 | } | ||
| 2256 | } | ||
| 2257 | |||
| 2240 | { | 2258 | { |
| 2241 | // Test `zig init`. | 2259 | // Test `zig init`. |
| 2242 | const tmp_path = b.tmpPath(); | 2260 | const tmp_path = b.tmpPath(); |