27 lines
1.8 KiB
Bash
Executable File
27 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
||
# Row 94 round 2 review run (Dewey), started after Researcher's "slot clear": the full gate on the candidate
|
||
# (build.patch on e918a915 in ~/dewey-scratch/r94), each package's node suite and every scripts/test-*.sh,
|
||
# sequential, output kept per suite; then my eight mutants in ~/dewey-scratch/r94mut and its manifest check.
|
||
O=$HOME/dewey-scratch/r94r2-out; M=$HOME/dewey-scratch/r94r2-packet/candidate-manifest.sha256
|
||
export TMPDIR=$HOME/dewey-scratch/tmp
|
||
busy(){ for p in $(pgrep -f -- --test) $(pgrep -f "scripts/test-"); do [ "$p" = "$$" ] && continue; c=$(readlink /proc/$p/cwd 2>/dev/null) || continue; case "$(cat /proc/$p/comm 2>/dev/null)" in node*|bash) ;; *) continue;; esac; case "$c" in $HOME/dewey-scratch/*) ;; *) return 0;; esac; done; return 1; }
|
||
while busy || { sleep 15; busy; }; do sleep 15; done
|
||
cd $HOME/dewey-scratch/r94 || exit 9
|
||
S=$O/summary.txt
|
||
echo "start $(date -u +%Y-%m-%dT%H:%M:%SZ) base $(git rev-parse HEAD)" > $S
|
||
echo "manifest $(sha256sum -c $M 2>&1 | grep -c ': OK$')/$(wc -l < $M) OK" >> $S
|
||
for p in tasks bus harness webui cli business seat control-board; do
|
||
case $p in seat|webui) a=(tests/);; *) a=(tests/*.test.mjs);; esac
|
||
(cd packages/$p && node --test "${a[@]}") > $O/gate/node-$p.log 2>&1; rc=$?
|
||
echo "node $p rc=$rc $(grep -E '^ℹ (tests|pass|fail)' $O/gate/node-$p.log | tr '\n' ' ')" >> $S
|
||
done
|
||
for f in scripts/test-*.sh; do
|
||
n=$(basename $f .sh)
|
||
DOCKER_HOST=unix:///nonexistent.sock bash $f > $O/gate/$n.log 2>&1; rc=$?
|
||
echo "$n rc=$rc $(tail -1 $O/gate/$n.log | cut -c1-120)" >> $S
|
||
done
|
||
echo "suites end $(date -u +%Y-%m-%dT%H:%M:%SZ)" >> $S
|
||
python3 -I $O/mutants.py > $O/mutants.txt 2>&1; echo "mutants rc=$? end $(date -u +%Y-%m-%dT%H:%M:%SZ)" >> $S
|
||
(cd $HOME/dewey-scratch/r94mut && sha256sum -c --quiet $M && echo "mut copy restored, manifest OK" >> $S)
|
||
echo "done $(date -u +%Y-%m-%dT%H:%M:%SZ)" >> $S
|