#!/bin/bash export TMPDIR=~/darkwing-scratch/r62/tmp G=~/darkwing-scratch/r62/gate; O=~/darkwing-scratch/r62/out; mkdir -p $O; rm -f $O/summary.txt; cd $G # node_modules is a link to the main checkout's, as in the row 55 gate; test-discord needs node_modules/.bin/pi. [ -x node_modules/.bin/pi ] || { echo "node_modules not linked" >> $O/summary.txt; exit 1; } for s in tasks business bus cli; do env -u NODE_TEST_CONTEXT node --test "packages/$s/tests/*.test.mjs" > $O/$s-tests.log 2>&1; echo "$s rc=$?" >> $O/summary.txt done for s in scripts/test-*.sh; do n=$(basename $s .sh) if [ $n = test-task ]; then DOCKER_HOST=unix:///nonexistent bash $s > $O/$n.log 2>&1; else bash $s > $O/$n.log 2>&1; fi echo "$n rc=$?" >> $O/summary.txt done echo DONE >> $O/summary.txt