#!/usr/bin/env bash # tests/fix-round-4-5b-part-2-regression.sh # The Regression: of fix round 4-5b, part 2 (decision 88): the whole suite # (npm test), part 1's end to end (tests/e2e-fix-round-4-5b.sh, which drives # the arg parser and `recurrence.mjs apply`, both changed by part 2) and # part 2's red proof (tests/fix-round-4-5b-part-2-red.sh). The 4-5a and # part-1 red proofs are not run here: part 1's alone re-runs its base and its # mutations, and one Regression command has the criteria runner's 15-minute # cap; they run as their own Verification lines. All three run; the script # prints each exit and exits with the first non-zero status, or 0 when all # three exit 0. # bash 3.2 compatible, ASCII only, no arrays. set -u cd "$(dirname "$0")/.." || { echo "regression: cannot cd to the repo root" >&2; exit 2; } FIRST=0 npm test rc=$? echo "regression: npm test exited $rc" [ "$FIRST" -eq 0 ] && FIRST=$rc /bin/bash tests/e2e-fix-round-4-5b.sh rc=$? echo "regression: tests/e2e-fix-round-4-5b.sh exited $rc" [ "$FIRST" -eq 0 ] && FIRST=$rc /bin/bash tests/fix-round-4-5b-part-2-red.sh rc=$? echo "regression: tests/fix-round-4-5b-part-2-red.sh exited $rc" [ "$FIRST" -eq 0 ] && FIRST=$rc exit "$FIRST"