#!/bin/bash cd ~/darkwing-scratch/r40/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