Add run-tests.sh unified test runner; register log-info/log-warn as PRIMITIVES

run-tests.sh runs all suites: JS (standard + full), Python, OCaml,
Playwright (isomorphic + demos). deploy.sh calls it as gate.

Register log-info and log-warn as PRIMITIVES so runtime-eval'd SX code
(init-client.sx.txt) can use them.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-24 13:31:35 +00:00
parent ee868f686b
commit aa88c06c00
4 changed files with 178 additions and 64 deletions

View File

@@ -53,16 +53,10 @@ fi
echo "Building: ${BUILD[*]}"
echo ""
# --- Run unit tests before deploying ---
echo "=== Running unit tests ==="
docker build -f test/Dockerfile.unit -t rose-ash-test-unit:latest . -q
if ! docker run --rm rose-ash-test-unit:latest; then
echo ""
echo "Unit tests FAILED — aborting deploy."
# --- Run all tests before deploying ---
if ! ./run-tests.sh; then
exit 1
fi
echo "Unit tests passed."
echo ""
for app in "${BUILD[@]}"; do
dir=$(_app_dir "$app")