17 lines
775 B
Bash
Executable File
17 lines
775 B
Bash
Executable File
#!/bin/bash
|
||
# Row 56 gate: packages/runs node suite, then every scripts/test-*.sh with Docker unreachable.
|
||
export TMPDIR=~/darkwing-scratch/r56b/tmp DOCKER_HOST=unix:///nonexistent.sock
|
||
cd ~/darkwing-scratch/r56b/cand
|
||
O=~/darkwing-scratch/r56b/out
|
||
: > $O/summary.txt
|
||
echo "start $(date -u +%FT%TZ)" >> $O/summary.txt
|
||
env -u NODE_TEST_CONTEXT node --test packages/runs/tests/*.test.mjs > $O/node-runs.txt 2>&1; e=$?
|
||
echo "node-runs exit=$e $(grep -E '^ℹ (pass|fail)' $O/node-runs.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
|