test: port the .wwi observers to ww; retire 989_m2wwi + 989_wwileaf

test/byteid/wwi_test.ww carries every assertion of both carriers: the
M2 producer gate (ascii/strings/getopt driver-combined positives with
byte-id + wwdump -a re-parse, the synth decl-kind/type-node sweep with
the #47 @symbol round-trip, the #48 types export-def gate, and the
negative private-nominal leak with both-stage identical reject
diagnostics), plus the #11 wwileaf decl-less-leaf rows (package-line
leaf, cross-stage .wwi byte-id, importer resolution + .s byte-id).
Byteid carriers 10 -> 8; docs counts move; the byteid ww target gains
the wwdump prereq its re-parse legs invoke.
This commit is contained in:
2026-08-08 04:25:34 +09:00
parent cf80c603a8
commit 634f7a2b3f
5 changed files with 316 additions and 716 deletions

View File

@@ -354,15 +354,13 @@ BYTEID_WRAPPER_SOURCES = test/wcc/753_convwrap_audit.c \
test/wcc/930_free_noop_run.c \
test/wcc/946_structparam_run.c \
test/wcc/946_structret_run.c \
test/wcc/989_m1mangle_sym.c \
test/wcc/989_m2wwi_run.c \
test/wcc/989_wwileaf_run.c
test/wcc/989_m1mangle_sym.c
# Ww-native byte/artifact observers: single-file ww tests under
# test/byteid/ on the test/testenv helper package. Each drives both
# driver stages itself, so the build needs only cstage plus the two
# stage frontends it launches.
BYTEID_WW_TESTS = test/byteid/libbyteid_test.ww
# test/byteid/ on the test/testenv helper package. Each drives the
# stage tools it observes itself, so the build needs only cstage plus
# the wwstage binaries it launches.
BYTEID_WW_TESTS = test/byteid/libbyteid_test.ww test/byteid/wwi_test.ww
BYTEID_WW_TARGETS = $(BYTEID_WW_TESTS:%=wwtest/%)
BOOTSTRAP_WRAPPER_SOURCES = test/wcc/950_selfcheck.c \
test/wcc/991_w6a_ww.c \
@@ -463,7 +461,8 @@ $(LIBRARY_TEST_TARGETS): wwtest/%: $(BIN)/ww \
-I $(CURDIR)/lib/ww $*
$(BYTEID_WW_TARGETS): wwtest/%: $(BIN)/ww $(BIN)/w6c $(BIN)/w6a \
$(BIN)/w6l $(LIB)/libwwrt.a $(BIN)/ww_ww $(BIN)/w6c_ww
$(BIN)/w6l $(BIN)/wwdump $(LIB)/libwwrt.a \
$(BIN)/ww_ww $(BIN)/w6c_ww
@echo "ww test $*"
@mkdir -p $(WWBUILD)/wwtest/$(subst /,_,$*)
@WW_TEST_REPO=$(CURDIR) $(BIN)/ww test \