18 lines
1.1 KiB
Bash
18 lines
1.1 KiB
Bash
#!/bin/sh
|
|
set -eu
|
|
out=evidence/grade5/checks
|
|
mkdir -p "$out"
|
|
make check validate > "$out/checks.txt" 2>&1
|
|
make test BASE_URL=http://api:8080 > "$out/smoke.txt" 2>&1
|
|
python student-tests/grade4.py core > "$out/core.txt" 2>&1
|
|
python student-tests/grade4.py expiry --base-url http://api-expiry:8080 > "$out/expiry.txt" 2>&1
|
|
python student-tests/grade4.py migrations > "$out/migrations.txt" 2>&1
|
|
python student-tests/grade4.py explain > "$out/explain.txt" 2>&1
|
|
python student-tests/grade4.py failures > "$out/failures.txt" 2>&1
|
|
docker compose ps -q api postgres valkey | xargs docker inspect --format '{{.Name}} {{.State.StartedAt}} {{.Image}}' > "$out/persistence.txt"
|
|
chmod +x scripts/restart.sh
|
|
make test-persistence BASE_URL=http://api:8080 ACTION_SCRIPT=scripts/restart.sh >> "$out/persistence.txt" 2>&1
|
|
docker compose ps -q api postgres valkey | xargs docker inspect --format '{{.Name}} {{.State.StartedAt}} {{.Image}}' >> "$out/persistence.txt"
|
|
python student-tests/grade4.py persistence_meta > "$out/session-persistence.txt" 2>&1
|
|
printf 'PASS: all public and grade4 tests; isolated Compose project only\n'
|