18 lines
746 B
Bash
Executable File
18 lines
746 B
Bash
Executable File
#!/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
|
|
# One file at a time: every harness builds and runs the same real binary (run/test/server) and
|
|
# starts real servers; serialising removes build/write races. Ports and state dirs are isolated.
|
|
node --test --test-concurrency=1 tools/*.test.mjs > results/node-test.log 2>&1
|
|
rc=$?
|
|
cat results/node-test.log
|
|
exit $rc
|