forked from mtusi2026/mtusi2026lab3
20 lines
765 B
Bash
Executable File
20 lines
765 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
mkdir -p evidence
|
|
exec 3>&1
|
|
exec > evidence/checks.txt 2>&1
|
|
date -u '+Verified: %Y-%m-%d %H:%M:%S UTC'
|
|
for target in build check validate test student-test test-auth test-ui test-persistence restore-api test-failover restore-api test-idempotency-modes test-expiry test-grade4 research-grade5 test student-test test-ui; do
|
|
printf '\n$ make %s\n' "$target"
|
|
printf 'Running: %s\n' "$target" >&3
|
|
./scripts/compose.sh ps --all
|
|
if ! make "$target" BASE_URL="${BASE_URL:-http://127.0.0.1:18080}"; then
|
|
tail -n 35 evidence/checks.txt >&3
|
|
exit 1
|
|
fi
|
|
done
|
|
git diff --exit-code -- contracts tests README.md COURSE.md
|
|
printf '\nPASS: Lab3 checks completed\n'
|
|
printf 'PASS: evidence/checks.txt\n' >&3
|