Files
stack/agents/darkwing/work/queue-48-review/r1/gate.sh
T
2026-10-10 03:49:12 -05:00

17 lines
744 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Row 48 gate: queue node suite, then every scripts/test-*.sh with Docker unreachable.
export TMPDIR=~/darkwing-scratch/r48a/tmp DOCKER_HOST=unix:///nonexistent.sock
cd ~/darkwing-scratch/r48a/wt
O=~/darkwing-scratch/r48a/out
: > $O/summary.txt
echo "start $(date -u +%FT%TZ)" >> $O/summary.txt
node --test packages/queue/tests/*.test.mjs > $O/node-queue.txt 2>&1; e=$?
echo "node-queue exit=$e $(grep -E '^ℹ (pass|fail)' $O/node-queue.txt | tr '\n' ' ')" >> $O/summary.txt
for f in scripts/test-*.sh; do
s=$(basename $f .sh)
$f > $O/$s.txt 2>&1; e=$?
echo "$s exit=$e $(grep -E 'passed, [0-9]+ failed' $O/$s.txt | tail -1)" >> $O/summary.txt
done
echo "end $(date -u +%FT%TZ)" >> $O/summary.txt
echo DONE >> $O/summary.txt