Files
stack/agents/darkwing/work/s40-review/r3/gate.sh
T

14 lines
650 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
cd ~/darkwing-scratch/r40c/wt
export TMPDIR=~/darkwing-scratch/tmp DOCKER_HOST=unix:///nonexistent.sock
O=../out; : > $O/summary.txt
for p in webui conversation control-board; do
s=$(date +%s); node --test "packages/$p/tests/*.test.mjs" > $O/node-$p.txt 2>&1; rc=$?
echo "node-$p rc=$rc $(grep -E '^ℹ (pass|fail)' $O/node-$p.txt | tr '\n' ' ') $(( $(date +%s)-s ))s" >> $O/summary.txt
done
for t in scripts/test-*.sh; do n=$(basename $t .sh)
s=$(date +%s); bash $t > $O/$n.txt 2>&1; rc=$?
echo "$n rc=$rc $(tail -3 $O/$n.txt | tr '\n' ' ' | cut -c1-160) $(( $(date +%s)-s ))s" >> $O/summary.txt
done
echo DONE >> $O/summary.txt