#!/usr/bin/env bash # Regenerates every file under output/. # # ./scripts/run-all.sh # # Needs JDK 25 and Maven 3.9. Nothing else: GreenMail runs inside the tests, and the "no mail host" failure comes # from starting the packaged jar. Transcripts 01-09 come out of the test suite, so each line in them is an assertion # that fails the build when it stops being true. Timings in 04 depend on the machine; ports in 06 change per run. set -euo pipefail cd "$(dirname "$0")/.." mkdir -p output echo "== test suite (transcripts 01-09)" mvn -B test | tee /tmp/email-mvn.log | grep -E '^\[(INFO|WARNING|ERROR)\] Tests run:' | sed 's/^\[[A-Z]*\] //' > output/11-test-summary.txt echo "== application without spring.mail.host (transcript 10)" ./scripts/no-mail-host.sh >/dev/null || true echo echo "output:" ls -1 output