forked from mtusi2026/mtusi2026lab4
24 lines
587 B
Bash
Executable File
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"
|