lib: migrate every test file to the canonical *_test.ww name

25 renames (git mv, content untouched). _test.ww is what the package
coordinator's test detection and the sep loader's canonical exclusion
key on; the old *test.ww spellings survived only through the
line-leading-@test compatibility scan. Consumers updated in place:
LIBRARY_TESTS, the libbyteid roster, the 901/974/975/976 carriers that
copy or invoke these files, and the check.c/check.ww + path/ftos
comments that cite them. Closes the open-driver-work migration bullet.
This commit is contained in:
2026-08-08 04:29:31 +09:00
parent 634f7a2b3f
commit fa4b9a134b
34 changed files with 52 additions and 55 deletions

View File

@@ -104,12 +104,12 @@ fn corpus() []ent = {
for (z < es.len) { zeroent(&es[z]); z += 1; };
let n: i32 = 0;
let k: *i32 = &n;
fx(es, k, "lib/bytes/bytestest.ww");
fx(es, k, "lib/dirs/dirstest.ww");
fx(es, k, "lib/bytes/bytes_test.ww");
fx(es, k, "lib/dirs/dirs_test.ww");
fx(es, k, "lib/encoding/base32/base32_test.ww");
fx(es, k, "lib/encoding/hex/hextest.ww");
fx(es, k, "lib/encoding/utf8/utf8test.ww");
fx(es, k, "lib/getopt/getopttest.ww");
fx(es, k, "lib/encoding/hex/hex_test.ww");
fx(es, k, "lib/encoding/utf8/utf8_test.ww");
fx(es, k, "lib/getopt/getopt_test.ww");
fx(es, k, "lib/hash/adler32/adler32_test.ww");
fx(es, k, "lib/hash/crc16/crc16_test.ww");
fx(es, k, "lib/hash/crc32/crc32_test.ww");
@@ -117,19 +117,19 @@ fn corpus() []ent = {
fx(es, k, "lib/hash/siphash/siphash_test.ww");
fx(es, k, "lib/math/checked/checked_test.ww");
fx(es, k, "lib/math/random/random_test.ww");
fx(es, k, "lib/memio/memiotest.ww");
fx(es, k, "lib/os/ostest.ww");
fx(es, k, "lib/memio/memio_test.ww");
fx(es, k, "lib/os/os_test.ww");
pr(es, k, "package main;\nimport os.exec;\nfn main() i32 = { return 0; };\n",
"package exec;", "lib/os/exec");
fx(es, k, "lib/regex/regex_test.ww");
fx(es, k, "lib/strconv/test/ftostest.ww");
fx(es, k, "lib/strconv/test/stoftest.ww");
fx(es, k, "lib/strconv/test/inttest.ww");
fx(es, k, "lib/strings/stringstest.ww");
fx(es, k, "lib/temp/temptest.ww");
fx(es, k, "lib/time/timetest.ww");
fx(es, k, "lib/bufio/bufiotest.ww");
fx(es, k, "lib/fmt/fmttest.ww");
fx(es, k, "lib/strconv/test/ftos_test.ww");
fx(es, k, "lib/strconv/test/stof_test.ww");
fx(es, k, "lib/strconv/test/int_test.ww");
fx(es, k, "lib/strings/strings_test.ww");
fx(es, k, "lib/temp/temp_test.ww");
fx(es, k, "lib/time/time_test.ww");
fx(es, k, "lib/bufio/bufio_test.ww");
fx(es, k, "lib/fmt/fmt_test.ww");
pr(es, k, "package main;\nimport sort;\nfn main() i32 = { return 0; };\n",
"package sort;", "lib/sort");
pr(es, k, "package main;\nimport path;\nfn main() i32 = { return 0; };\n",
@@ -154,17 +154,17 @@ fn corpus() []ent = {
// from the retired 815/940/951 driver-parity carriers. No
// sentinel: there is no dep unit to prove.
pr(es, k, "package main;\nfn main() i32 = { return 0; };\n", "", "");
fx(es, k, "lib/ascii/asciitest.ww");
fx(es, k, "lib/ascii/ascii_test.ww");
fx(es, k, "lib/encoding/base64/base64_test.ww");
fx(es, k, "lib/errors/errnotest.ww");
fx(es, k, "lib/log/logtest.ww");
fx(es, k, "lib/os/stattest.ww");
fx(es, k, "lib/errors/errno_test.ww");
fx(es, k, "lib/log/log_test.ww");
fx(es, k, "lib/os/stat_test.ww");
// toktest/asttest resolve `import syntax` via -I lib/ww, cf 905
fxi(es, k, "lib/ww/syntax/toktest.ww", "lib/ww");
fxi(es, k, "lib/ww/syntax/asttest.ww", "lib/ww");
fxi(es, k, "lib/ww/syntax/tok_test.ww", "lib/ww");
fxi(es, k, "lib/ww/syntax/ast_test.ww", "lib/ww");
fx(es, k, "lib/crypto/sha256/sha256_test.ww");
fx(es, k, "lib/fnmatch/fnmatchtest.ww");
fx(es, k, "lib/shlex/shlextest.ww");
fx(es, k, "lib/fnmatch/fnmatch_test.ww");
fx(es, k, "lib/shlex/shlex_test.ww");
assert(n == NENTEXPECT);
return es;
};