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