test: port the asm-pattern observers to ww; byteid carrier partition empty

Four ww tests carry the last eight native byteid carriers' assertions:
asmwindow (753 convwrap beta/main/alpha order + window polarity, 754
slice stride + negative scale scan, 755 amp-dot-idx four rows, 758
first-CALL-line extraction + tab-framed disp literals, direct
w6c/w6c_ww never ww build), freenoop (930 byte-id strengthened to
per-stream compare + negative 'free' grep), structabi (946 param/ret
MOVSD windows with polarity tables and SEND/RECV agreement), mangle
(989_m1mangle needles + concat byte-id, glob order strengthened to
byte-lexicographic). Dead want/stage_mask row fields documented, not
invented into runtime legs; the w6c_ww-absent skip gates drop because
the Make target declares the tools.

BYTEID_WRAPPER_SOURCES, its bins, and test-native-byteid are deleted —
the native byte/artifact partition is EMPTY (11 -> 0 this session);
docs counts move to 123 carriers.
This commit is contained in:
2026-08-08 04:41:42 +09:00
parent fa4b9a134b
commit 81e7f95548
14 changed files with 890 additions and 2297 deletions

View File

@@ -343,24 +343,18 @@ $(BIN) $(LIB) $(OBJ)/wcc $(OBJ)/ww $(OBJ)/wwdump $(OBJ)/w6c $(OBJ)/w6a $(OBJ)/w6
# per-case Make rule.
UNIT_SOURCES = test/wcc/000_smoke.c test/wcc/100_lex.c \
test/wcc/200_parse.c test/wcc/300_check.c test/wcc/400_w6c.c
# Byte/artifact residuals that the blanket test-data-byteid comparator
# cannot subsume: asm-pattern/symbol/frame observers, .wwi round-trips,
# inline sources with no corpus twin, and the wwstage-driver-leg gates.
# 61 pure data-fixture byte-id carriers were retired into test-data-byteid
# (fold-4 migrate-and-retire; audit 2026-08-07).
BYTEID_WRAPPER_SOURCES = test/wcc/753_convwrap_audit.c \
test/wcc/754_slice_of_slice_index.c test/wcc/755_amp_dot_idx.c \
test/wcc/758_cgalloc_str_field.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
# Ww-native byte/artifact observers: single-file ww tests under
# 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
# test/byteid/ on the test/testenv helper package (asm-pattern/symbol
# windows, .wwi round-trips, inline sources with no corpus twin, the
# wwstage-driver-leg gates). The native byteid carrier partition is
# EMPTY: 61 pure data-fixture carriers retired into test-data-byteid
# (fold-4, 2026-08-07) and the last 11 observers ported here
# (2026-08-08). Each test 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 \
test/byteid/asmwindow_test.ww test/byteid/freenoop_test.ww \
test/byteid/structabi_test.ww test/byteid/mangle_test.ww
BYTEID_WW_TARGETS = $(BYTEID_WW_TESTS:%=wwtest/%)
BOOTSTRAP_WRAPPER_SOURCES = test/wcc/950_selfcheck.c \
test/wcc/991_w6a_ww.c \
@@ -369,11 +363,10 @@ BOOTSTRAP_WRAPPER_SOURCES = test/wcc/950_selfcheck.c \
PLATFORM_WRAPPER_SOURCES = test/wcc/996_dyn_ww.c
ALL_WRAPPER_SOURCES = $(wildcard test/wcc/*.c)
COMPILER_WRAPPER_SOURCES = $(filter-out $(UNIT_SOURCES) \
$(BYTEID_WRAPPER_SOURCES) $(BOOTSTRAP_WRAPPER_SOURCES) \
$(BOOTSTRAP_WRAPPER_SOURCES) \
$(PLATFORM_WRAPPER_SOURCES),$(ALL_WRAPPER_SOURCES))
UNIT_BINS = $(patsubst test/wcc/%.c,$(BIN)/test_%,$(UNIT_SOURCES))
BYTEID_WRAPPER_BINS = $(patsubst test/wcc/%.c,$(BIN)/test_%,$(BYTEID_WRAPPER_SOURCES))
BOOTSTRAP_WRAPPER_BINS = $(patsubst test/wcc/%.c,$(BIN)/test_%,$(BOOTSTRAP_WRAPPER_SOURCES))
PLATFORM_WRAPPER_BINS = $(patsubst test/wcc/%.c,$(BIN)/test_%,$(PLATFORM_WRAPPER_SOURCES))
COMPILER_WRAPPER_BINS = $(patsubst test/wcc/%.c,$(BIN)/test_%,$(COMPILER_WRAPPER_SOURCES))
@@ -480,11 +473,6 @@ test-library: $(LIBRARY_TEST_TARGETS) $(BIN)/w6c $(BIN)/w6c_ww \
$(CURDIR)/$(BIN)/w6c_ww $(CURDIR)/$$f > /dev/null; \
done
test-native-byteid: $(WRAPPER_TOOLS) $(BYTEID_WRAPPER_BINS)
@set -e; for t in $(BYTEID_WRAPPER_BINS); do \
echo "byte-id $$t"; BIN=$(CURDIR)/$(BIN) $(CURDIR)/$$t; \
done
test-bootstrap-native: $(WRAPPER_TOOLS) $(BOOTSTRAP_WRAPPER_BINS)
@set -e; for t in $(BOOTSTRAP_WRAPPER_BINS); do \
echo "bootstrap $$t"; BIN=$(CURDIR)/$(BIN) $(CURDIR)/$$t; \
@@ -631,8 +619,7 @@ test-data-byteid: $(BIN)/ww $(BIN)/w6c $(BIN)/w6c_ww
fi; \
exit $$rc
test-byteid: test-lang-byteid test-data-byteid test-native-byteid \
$(BYTEID_WW_TARGETS)
test-byteid: test-lang-byteid test-data-byteid $(BYTEID_WW_TARGETS)
# Incremental == clean. The -w reuse path must be byte-identical to a
# from-scratch build, or it is not a build-graph optimization but a
@@ -837,6 +824,6 @@ nocc:
test test-unit test-compiler-smoke test-compiler test-package \
test-lang test-library test-commit test-lang-byteid \
$(LANG_TEST_TARGETS) $(LIBRARY_TEST_TARGETS) $(BYTEID_WW_TARGETS) \
test-data-byteid test-native-byteid test-byteid \
test-data-byteid test-byteid \
test-bootstrap-native test-bootstrap test-incremental \
test-platform test-all install clean bootstrap nocc bootstrap-snapshot