#!/usr/bin/env bash # Regenerates every file under docs/output/. Nothing in this module's documentation, or in the # article it accompanies, is typed by hand. # # scripts/run-all.sh set -euo pipefail cd "$(dirname "$0")/.." mkdir -p docs/output mvn -B test > /tmp/awaitility-run.log 2>&1 || { cat /tmp/awaitility-run.log; exit 1; } grep -E 'Running |Tests run:|BUILD ' /tmp/awaitility-run.log > docs/output/00-full-test-run.txt echo "wrote docs/output/00-full-test-run.txt" echo "the rest of docs/output/*.txt is written by the tests themselves (see Capture.java)"