a33238ab
test: e2e pins that both binaries report one version
a73x 2026-08-09 11:44
Commit message
test/e2e.sh
| Old | New | ||
|---|---|---|---|
| @@ -101,6 +101,11 @@ trap cleanup EXIT INT TERM | |||
| 101 | # --- M10: --version answers "did the scp land" without a daemon anywhere. | 101 | # --- M10: --version answers "did the scp land" without a daemon anywhere. |
| 102 | "$MUXD" --version | grep -q '^muxd 0\.' || { echo "e2e FAIL: muxd --version"; exit 1; } | 102 | "$MUXD" --version | grep -q '^muxd 0\.' || { echo "e2e FAIL: muxd --version"; exit 1; } |
| 103 | "$MUX" --version | grep -q '^mux 0\.' || { echo "e2e FAIL: mux --version"; exit 1; } | 103 | "$MUX" --version | grep -q '^mux 0\.' || { echo "e2e FAIL: mux --version"; exit 1; } |
| 104 | # Both must report the SAME version: the greps above pass just as happily for | ||
| 105 | # a binary that re-hardcoded a literal instead of reading build.zig's constant, | ||
| 106 | # which is exactly the drift --version exists to rule out. | ||
| 107 | [ "$("$MUXD" --version | cut -d' ' -f2)" = "$("$MUX" --version | cut -d' ' -f2)" ] || { | ||
| 108 | echo "e2e FAIL: version drift between binaries"; exit 1; } | ||
| 104 | echo "e2e OK: --version on both binaries" | 109 | echo "e2e OK: --version on both binaries" |
| 105 | 110 | ||
| 106 | "$MUXD" run --sock "$SOCK" --shell /bin/sh & | 111 | "$MUXD" run --sock "$SOCK" --shell /bin/sh & |