Files
mtusi2026lab4/student-tests/run_grade3.sh
T
2026-10-30 21:09:56 +03:00

24 lines
587 B
Bash
Executable File

#!/bin/sh
# Run grade-3 attachment student tests (+ drain / compensation dry-run).
set -eu
DIR=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
ROOT=$(CDPATH= cd -- "$DIR/.." && pwd)
for t in \
test_attachment_upload_ok.sh \
test_attachment_too_large.sh \
test_attachment_corrupted.sh \
test_attachment_mime_spoof.sh \
test_attachment_foreign.sh \
test_attachment_wrong_chat.sh \
test_graceful_drain.sh
do
echo "=== $t ==="
sh "$DIR/$t"
done
echo "=== tools/gc_orphans.sh (dry-run) ==="
sh "$ROOT/tools/gc_orphans.sh"
echo "ALL grade3 student-tests PASS"