authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-12-16 00:42:21+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-12-16 18:05:58+01:00
logb1f874c78a847d591d9f14e67e181d5f3e5e7105
treec0e2fa6211380729e83993a924b248ee8409fabc
parent585c21e54d339f207028d871a45546da2d1b6871

enable testing for stage3 and stage4 being byte-for-byte identical


2 files changed, 32 insertions(+), 0 deletions(-)

ci/aarch64-macos.sh+16
......@@ -52,3 +52,19 @@ stage3-release/bin/zig build test docs \
5252
5353# Produce the experimental std lib documentation.
5454stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
55
56# Ensure that stage3 and stage4 are byte-for-byte identical.
57stage3-release/bin/zig build \
58 --prefix stage4-release \
59 -Denable-llvm \
60 -Dno-lib \
61 -Drelease \
62 -Dstrip \
63 -Dtarget=$TARGET \
64 -Duse-zig-libcxx \
65 -Dversion-string="$(stage3-release/bin/zig version)"
66
67# diff returns an error code if the files differ.
68echo "If the following command fails, it means nondeterminism has been"
69echo "introduced, making stage3 and stage4 no longer byte-for-byte identical."
70diff stage3-release/bin/zig stage4-release/bin/zig
ci/x86_64-macos.sh+16
......@@ -60,3 +60,19 @@ stage3-release/bin/zig build test docs \
6060
6161# Produce the experimental std lib documentation.
6262stage3-release/bin/zig test ../lib/std/std.zig -femit-docs -fno-emit-bin --zig-lib-dir ../lib
63
64# Ensure that stage3 and stage4 are byte-for-byte identical.
65stage3-release/bin/zig build \
66 --prefix stage4-release \
67 -Denable-llvm \
68 -Dno-lib \
69 -Drelease \
70 -Dstrip \
71 -Dtarget=$TARGET \
72 -Duse-zig-libcxx \
73 -Dversion-string="$(stage3-release/bin/zig version)"
74
75# diff returns an error code if the files differ.
76echo "If the following command fails, it means nondeterminism has been"
77echo "introduced, making stage3 and stage4 no longer byte-for-byte identical."
78diff stage3-release/bin/zig stage4-release/bin/zig