Files
stack/agents/darkwing/work/queue-91/gate.sh
T

22 lines
1.0 KiB
Bash
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.
#!/usr/bin/env bash
# Row 91 gate on 6e1f9335 plus build.patch: the seat, cli, bus and harness node suites
# (each package's own test files, from its directory), then every
# scripts/test-*.sh, sequential, full output kept.
cd ~/darkwing-scratch/r91/wt || exit 2
W=$PWD
export TMPDIR=~/darkwing-scratch/r91/tmp
O=~/darkwing-scratch/r91/gate
mkdir -p "$O" "$TMPDIR"
echo "start $(date -u +%Y-%m-%dT%H:%M:%SZ)"
for p in seat cli bus harness; do
s=$(date -u +%T)
(cd "$W/packages/$p" && node --test tests/*.test.mjs) > $O/node-$p.txt 2>&1; rc=$?
echo "$p rc=$rc $s-$(date -u +%T) $(grep -E '^ℹ (pass|fail|skipped)' $O/node-$p.txt | tr '\n' ' ') $(grep -cE '^✖|^not ok' $O/node-$p.txt) marks"
done
for f in scripts/test-*.sh; do
n=$(basename $f .sh); s=$(date -u +%T)
if [ $n = test-task ]; then DOCKER_HOST=unix:///nonexistent bash $f > $O/$n.txt 2>&1; else bash $f > $O/$n.txt 2>&1; fi; rc=$?
echo "$n rc=$rc $s-$(date -u +%T) $(tail -1 $O/$n.txt | cut -c1-120)"
done
echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)"