#!/bin/bash # Row 89 gate: sequential, in the candidate worktree, output teed per suite. cd $HOME/dewey-scratch/r89 || exit 9 export TMPDIR=$HOME/dewey-scratch/tmp OUT=$HOME/dewey-scratch/r89-out/gate mkdir -p $OUT S=$OUT/../gate-summary.txt echo "start $(date -u +%Y-%m-%dT%H:%M:%SZ) HEAD-base $(git rev-parse HEAD)" > $S for p in bus harness webui cli tasks control-board; do node --test "packages/$p/tests/*.test.mjs" > $OUT/node-$p.log 2>&1; rc=$? echo "node $p rc=$rc $(grep -E '^ℹ (tests|pass|fail)' $OUT/node-$p.log | tr '\n' ' ')" >> $S done for f in scripts/test-*.sh; do n=$(basename $f .sh) if [ "$n" = test-task ]; then DOCKER_HOST=unix:///nonexistent bash $f > $OUT/$n.log 2>&1; else bash $f > $OUT/$n.log 2>&1; fi; rc=$? echo "$n rc=$rc $(grep -iE '[0-9]+ (passed|failed)|pass(ed)?:|fail(ed)?:' $OUT/$n.log | tail -2 | tr '\n' ' ')" >> $S done echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)" >> $S