Files
stack/agents/rocko/work/queue-82/out/gate.sh
T

17 lines
658 B
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
set -u
W=/mnt/storage/scratch/rocko-r82; G=/mnt/storage/scratch/rocko-r82-out/gate
mkdir -p $G; cd $W
date -u +%Y-%m-%dT%H:%M:%SZ > $G/start.txt
: > $G/summary.txt
for p in runs tasks bus business harness cli webui seat; 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