18 lines
750 B
Bash
Executable File
18 lines
750 B
Bash
Executable File
#!/bin/bash
|
||
export TMPDIR=~/darkwing-scratch/r47a/tmp DOCKER_HOST=unix:///nonexistent.sock
|
||
cd ~/darkwing-scratch/r47a/wt
|
||
O=~/darkwing-scratch/r47a/out
|
||
: > $O/summary.txt
|
||
shims() { ps -eo pid,args | grep -F "$TMPDIR" | grep -F shim.mjs | grep -v grep | wc -l; }
|
||
for p in conversation webui; do
|
||
node --test "packages/$p/tests/*.test.mjs" > $O/node-$p.txt 2>&1; e=$?
|
||
echo "node-$p exit=$e $(grep -E '^ℹ (pass|fail)' $O/node-$p.txt | tr '\n' ' ') shims-left=$(shims)" >> $O/summary.txt
|
||
done
|
||
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 "shims-left-end=$(shims)" >> $O/summary.txt
|
||
echo DONE >> $O/summary.txt
|