Packet agents/rocko/work/queue-78/ (packet manifest 9e067f40, 32 files, candidate manifest 3016dbf1), Rocko's BUILD-LOG and SESSIONS appends. Committed by Sage for Rocko, who has no credential. Co-Authored-By: Claude Opus 5.5 <[email protected]>
17 lines
615 B
Bash
Executable File
17 lines
615 B
Bash
Executable File
#!/usr/bin/env bash
|
||
set -u
|
||
W=/mnt/storage/scratch/rocko-r78; G=/mnt/storage/scratch/rocko-r78-out/gate
|
||
mkdir -p $G; cd $W
|
||
date -u +%Y-%m-%dT%H:%M:%SZ > $G/start.txt
|
||
: > $G/summary.txt
|
||
for p in cli; do
|
||
node --test "packages/$p/tests/*.test.mjs" > $G/$p.log 2>&1; rc=$?
|
||
echo "$p rc=$rc $(grep -E '^ℹ (pass|fail|skipped)' $G/$p.log | tr '\n' ' ')" >> $G/summary.txt
|
||
done
|
||
for s in scripts/test-*.sh; do
|
||
n=$(basename $s .sh)
|
||
bash $s > $G/$n.log 2>&1; rc=$?
|
||
echo "$n rc=$rc $(grep -iE '[0-9]+ passed|passed.*failed|failed' $G/$n.log | tail -1)" >> $G/summary.txt
|
||
done
|
||
date -u +%Y-%m-%dT%H:%M:%SZ > $G/end.txt
|