test: banner purge + WHY-only comment sweep (rule 8)
Every section banner dies (103 -> 0) across test/lang, the observer suites, the C carriers, and the five comment-heavy corpus fixtures; banner provenance (#N cites, carrier numbers, repair-cluster labels) folded into headers or adjacent WHY comments. Narration deleted; row provenance, ref cites, divergence pins, and layout contracts kept (fwd-ref decl-order guards and bootstrap-gate corpus rationale restored where the sweep over-cut). Comment-only proven: all 3742 wwbuild workdir .s byte-identical before/after; test-commit and test-byteid (161 lang + 1399 data, 0 pinned-divergent) green.
This commit is contained in:
@@ -70,8 +70,6 @@ fn compile(td: str, stem: str, body: str) void = {
|
||||
};
|
||||
};
|
||||
|
||||
// ---- selectivity (610) -------------------------------------------------
|
||||
|
||||
@test fn selectivity() void = {
|
||||
let td: str = testenv.fresh();
|
||||
compile(td, "lib_good", strings.concat("package main;\n",
|
||||
@@ -112,8 +110,6 @@ fn compile(td: str, stem: str, body: str) void = {
|
||||
testenv.clean(td);
|
||||
};
|
||||
|
||||
// ---- manyflags (632) ---------------------------------------------------
|
||||
|
||||
fn linkwith(td: str, lnk: str, n: i32) void = {
|
||||
let tag: str = strings.concat(lnk, "_", dec(n));
|
||||
let exe: str = strings.concat(td, "/x_", tag);
|
||||
|
||||
@@ -52,8 +52,6 @@ fn assemble(td: str, tool: str, tag: str, src: str, obj: str) i32 = {
|
||||
return runcode(td, tag, av);
|
||||
};
|
||||
|
||||
// ---- parsenum (530) ----------------------------------------------------
|
||||
|
||||
@test fn parsenum() void = {
|
||||
let td: str = testenv.fresh();
|
||||
let labels: []str = ["ws_after_dollar", "leading_zero",
|
||||
@@ -108,8 +106,6 @@ fn assemble(td: str, tool: str, tag: str, src: str, obj: str) i32 = {
|
||||
testenv.clean(td);
|
||||
};
|
||||
|
||||
// ---- datargate (989) ---------------------------------------------------
|
||||
|
||||
@test fn datargate() void = {
|
||||
let td: str = testenv.fresh();
|
||||
let bads: str = strings.concat(td, "/bad.s");
|
||||
|
||||
@@ -147,8 +147,6 @@ fn iself64(o: str) bool = {
|
||||
&& o[3] == 0x46u8 && o[4] == 2u8;
|
||||
};
|
||||
|
||||
// ---- elf64header (500) -------------------------------------------------
|
||||
|
||||
@test fn elf64header() void = {
|
||||
let td: str = testenv.fresh();
|
||||
let programs: []str = [
|
||||
@@ -184,8 +182,6 @@ fn iself64(o: str) bool = {
|
||||
testenv.clean(td);
|
||||
};
|
||||
|
||||
// ---- dataw (510) -------------------------------------------------------
|
||||
|
||||
@test fn dataw() void = {
|
||||
let td: str = testenv.fresh();
|
||||
let src: str = strings.concat(td, "/dataw.s");
|
||||
@@ -246,8 +242,6 @@ fn iself64(o: str) bool = {
|
||||
testenv.clean(td);
|
||||
};
|
||||
|
||||
// ---- nodataw (510) -----------------------------------------------------
|
||||
|
||||
@test fn nodataw() void = {
|
||||
let td: str = testenv.fresh();
|
||||
let src: str = strings.concat(td, "/nodataw.s");
|
||||
@@ -272,8 +266,6 @@ fn iself64(o: str) bool = {
|
||||
testenv.clean(td);
|
||||
};
|
||||
|
||||
// ---- datar (520) -------------------------------------------------------
|
||||
|
||||
@test fn datar() void = {
|
||||
let td: str = testenv.fresh();
|
||||
let src: str = strings.concat(td, "/datar.s");
|
||||
|
||||
@@ -8,9 +8,9 @@ package link_test;
|
||||
// proxy for staticness is replaced by a direct scan of every program
|
||||
// header asserting no PT_INTERP.
|
||||
//
|
||||
// readglobal / writeglobal (620) — a DATAW global is readable (exit
|
||||
// 42) and the R+W mapping truly writable (store 99, read back, exit
|
||||
// 99).
|
||||
// readglobal / writeglobal (620 test_read / test_write) — a DATAW
|
||||
// global is readable (exit 42) and the R+W mapping truly writable
|
||||
// (store 99, read back, exit 99).
|
||||
//
|
||||
// twoloads (620) — a DATAW input links to exactly 2 program headers,
|
||||
// both PT_LOAD, exactly one R+X and one R+W (exact p_flags equality;
|
||||
@@ -73,7 +73,6 @@ fn iself64(o: str) bool = {
|
||||
&& o[3] == 0x46u8 && o[4] == 2u8;
|
||||
};
|
||||
|
||||
// assemble+link a hand-written .s; returns the exe path.
|
||||
fn build(td: str, tag: str, body: str) str = {
|
||||
let src: str = strings.concat(td, "/", tag, ".s");
|
||||
let obj: str = strings.concat(td, "/", tag, ".o");
|
||||
@@ -95,8 +94,6 @@ fn runexit(td: str, tag: str, exe: str) i32 = {
|
||||
return runcode(td, strings.concat("run_", tag), rav);
|
||||
};
|
||||
|
||||
// ---- staticexec (600) --------------------------------------------------
|
||||
|
||||
@test fn staticexec() void = {
|
||||
let td: str = testenv.fresh();
|
||||
let src: str = strings.concat(td, "/m.ww");
|
||||
@@ -129,8 +126,6 @@ fn runexit(td: str, tag: str, exe: str) i32 = {
|
||||
testenv.clean(td);
|
||||
};
|
||||
|
||||
// ---- readglobal (620 test_read) ----------------------------------------
|
||||
|
||||
@test fn readglobal() void = {
|
||||
let td: str = testenv.fresh();
|
||||
let exe: str = build(td, "rd", strings.concat(
|
||||
@@ -145,8 +140,6 @@ fn runexit(td: str, tag: str, exe: str) i32 = {
|
||||
testenv.clean(td);
|
||||
};
|
||||
|
||||
// ---- writeglobal (620 test_write) --------------------------------------
|
||||
|
||||
@test fn writeglobal() void = {
|
||||
let td: str = testenv.fresh();
|
||||
let exe: str = build(td, "wr", strings.concat(
|
||||
@@ -163,8 +156,6 @@ fn runexit(td: str, tag: str, exe: str) i32 = {
|
||||
testenv.clean(td);
|
||||
};
|
||||
|
||||
// ---- twoloads (620 test_two_loads) -------------------------------------
|
||||
|
||||
@test fn twoloads() void = {
|
||||
let td: str = testenv.fresh();
|
||||
let exe: str = build(td, "tl", strings.concat(
|
||||
@@ -197,8 +188,6 @@ fn runexit(td: str, tag: str, exe: str) i32 = {
|
||||
testenv.clean(td);
|
||||
};
|
||||
|
||||
// ---- nodatasingleload (620 test_no_data_single_load) -------------------
|
||||
|
||||
@test fn nodatasingleload() void = {
|
||||
let td: str = testenv.fresh();
|
||||
let exe: str = build(td, "nd", strings.concat(
|
||||
@@ -214,8 +203,6 @@ fn runexit(td: str, tag: str, exe: str) i32 = {
|
||||
testenv.clean(td);
|
||||
};
|
||||
|
||||
// ---- bssfilesz (620 test_bss_filesz) -----------------------------------
|
||||
|
||||
@test fn bssfilesz() void = {
|
||||
let td: str = testenv.fresh();
|
||||
// nz = \x07 + 7 zeros, zlong = 24 zeros: memsz covers all 32B,
|
||||
|
||||
Reference in New Issue
Block a user