Semantic Diff

#9445 Run all build system tests from make test-build

4 commits

55344bdfdeaca930e73e362c8197a9e1741a4727..pr-9445

bab23ad6b · cknitt + Claude · Nov 27, 2026, 06:16 UTC

Run all build system tests from make test-build

make test-build ran only the integration suite. The unit tests and the isolated scripts ran only in CI, where each command was spelled out in ci.yml. tests/build_tests/Makefile now has a target per suite (unit, snapshots, verbose, interactive, isolated, integration) and test for all of them; make test-build runs that after building the runtime, and CI calls the single targets. scripts/test.js -build, which runs the projects and the error tests, is now -projects.

The integration suite's check for leftover processes matched any process that named the executable in its arguments. Started from make with an absolute path, it found make and itself. It now counts only processes that run the executable.

f19ec2412 · cknitt + Claude · Nov 27, 2026, 06:34 UTC

Keep the integration suite running when no process matches on Windows

Git for Windows' ps has no -o, so the leftover-process check falls back to grep, which exits 1 when it finds nothing. Under set -e that ended the suite before its first test.

7bdd4e035 · cknitt + Claude · Nov 27, 2026, 09:03 UTC

Let the integration suite run alongside the other build tests

Its check for leftover processes aborts when another process runs its executable. With make -j, the suites of make test-build (or other make targets) could run at the same time on the same binary. The integration target now runs a copy of the binaries, as CI did by hand, and CI no longer makes its own copy.

Answers the Codex review on #9445.

8e7278472 · cknitt + Claude · Nov 27, 2026, 09:36 UTC

Catch leftover watchers again in the integration target

Each run copied the binaries to a new temporary directory, so the suite's check for leftover processes could never match a watcher from an interrupted earlier run, and the copies piled up after Ctrl-C. The copy now always goes to tmp/integration-bin. The check also counts node running the cli/rescript.js script, the default RESCRIPT is resolved through a relative path that node understands under an MSYS make, and the docs no longer say that make test-build runs the projects.

Answers the Fable review of stack #9449.