#!/usr/bin/env bash # devbox run test: Nim in-process tests first, then the Node black-box harnesses (DESIGN 10.4). # Nim gates Node: a red Nim suite stops the run (the Node stage takes seconds, but no point). # Logs land in results/ like the other gates. cd "$(dirname "$0")/.." || exit 1 mkdir -p results if ! nimble test -y > results/nimble-test.log 2>&1; then cat results/nimble-test.log exit 1 fi cat results/nimble-test.log node --test tools/*.test.mjs > results/node-test.log 2>&1 rc=$? cat results/node-test.log exit $rc