#!/usr/bin/env bash # tests/fix-round-4-5b-part-3-regression.sh # The Regression: of fix round 4-5b, part 3: the whole suite (npm test), # part 2's end to end (tests/e2e-fix-round-4-5b-part-2.sh, which drives the # arg parser and the args-heredoc guard, both changed by part 3), part 1's # end to end (tests/e2e-fix-round-4-5b.sh, which drives the arg parser) and # part 3's red proof (tests/fix-round-4-5b-part-3-red.sh). The 4-5a, part-1 # and part-2 red proofs are not run here: one Regression command has the # criteria runner's 15-minute cap; they run as their own Verification lines. # All four run; the script prints each exit and exits with the first non-zero # status, or 0 when all four 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-part-2.sh rc=$? echo "regression: tests/e2e-fix-round-4-5b-part-2.sh 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-3-red.sh rc=$? echo "regression: tests/fix-round-4-5b-part-3-red.sh exited $rc" [ "$FIRST" -eq 0 ] && FIRST=$rc exit "$FIRST"