diff --git a/Makefile b/Makefile index 3856ecfc..f2b286a3 100644 --- a/Makefile +++ b/Makefile @@ -3675,6 +3675,17 @@ RUNWW_CASES = $(wildcard test/wcc/data/*/case.ww) test-run: all @BIN=$(BIN) $(BIN)/ww run test/runww.ww $(RUNWW_CASES) +# ---- test-lang: in-language @test behavior corpus (fold 2) ------------- +# Runs each test/lang/*_test.ww through the cstage `ww test` subcommand. +# Each file is its own package, so one file per invocation. A failing +# @test exits non-zero and fails the target. Imports (rt/strings) resolve +# via the driver's self_dir/../../lib fallback, so no lib env is needed. +# NOT yet wired into `make test` (fold 6, gated on the T1 corpus). +test-lang: all + @set -e; for f in $(wildcard test/lang/*_test.ww); do \ + echo "ww test $$f"; $(BIN)/ww test $$f; \ + done; echo "test-lang: all ok" + # ---- test-commit: per-commit default (task #10 T1) --------------------- # Full suite, but content-key-SKIPS the expensive wwstage byte-id / # self-compile gates (950/989_lib_byteid/990-997) when their input set is @@ -3865,4 +3876,4 @@ nocc: @echo @echo "NOCC OK: $(STAGE0)/* reproduces itself from source. cc not invoked." -.PHONY: all cstage wwstage test test-unit test-commit test-run smoke sizelint peellint install clean bootstrap nocc bootstrap-snapshot +.PHONY: all cstage wwstage test test-unit test-commit test-run test-lang smoke sizelint peellint install clean bootstrap nocc bootstrap-snapshot