test: add resumable isolated test harness

This commit is contained in:
2026-08-31 08:32:23 +00:00
parent 31a1314470
commit d6d93f3d98
11 changed files with 837 additions and 19 deletions
+9 -2
View File
@@ -1,6 +1,13 @@
#!/bin/sh
set -eu
echo "integration harness is not implemented yet; use scripts/test-unit for the current Phase 0/1 scope" >&2
exit 2
repo_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
toolchain_image=$(docker compose -f "$repo_root/deploy/compose.yaml" images -q toolchain 2>/dev/null || true)
if [ -z "$toolchain_image" ]; then
toolchain_image=$(docker image inspect rvbox-dev-toolchain --format '{{.Id}}' 2>/dev/null || true)
fi
cd "$repo_root"
exec docker compose -f deploy/compose.yaml run --rm \
-e "RVBOX_TOOLCHAIN_IMAGE=$toolchain_image" \
toolchain go run ./test/harness integration "$@"