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

@@ -2,13 +2,13 @@
* 974_getenv_run — execute the lib/os getenv smoke fixture under the
* C-side `ww run` driver and assert exit 0.
*
* Pre-arranges the environment that lib/os/ostest.ww asserts against:
* Pre-arranges the environment that lib/os/os_test.ww asserts against:
*
* WW_TEST_GETENV = "hello-world" (set, non-empty)
* WW_TEST_EMPTY = "" (set, empty value)
* WW_TEST_NOT_SET unset (unsetenv-cleared)
*
* The child `ww run` process inherits this env, so ostest.ww's
* The child `ww run` process inherits this env, so os_test.ww's
* `os.getenv` calls see exactly the state we configured here. This
* is the "C-side env arrangement" pattern (parent sets, child reads)
* — proper POSIX shape for stdlib testing without a `setenv` ww
@@ -46,12 +46,12 @@ main(void)
char cwd[1024];
if (getcwd(cwd, sizeof cwd) == NULL) return 1;
/* Pre-arrange the env state ostest.ww asserts against. */
/* Pre-arrange the env state os_test.ww asserts against. */
setenv("WW_TEST_GETENV", "hello-world", 1);
setenv("WW_TEST_EMPTY", "", 1);
unsetenv("WW_TEST_NOT_SET");
const char *src = "lib/os/ostest.ww";
const char *src = "lib/os/os_test.ww";
char path[1024], cmd[2048];
snprintf(path, sizeof path, "%s/%s", cwd, src);
snprintf(cmd, sizeof cmd, "%s/ww test %s", bin, path);