T-1
|
Install fixture-cli into a private directory <sandbox>/apps/fixture-v1.2.3/ and diff HKCU\Environment\Path (Windows) or shell profile (Unix) before vs. after. |
Zero private app directories added to PATH. Canonical shim directory (~/.local/bin) is at index 0 and its auto subfolder (~/.local/bin/auto) is at index 1 (each present once, highest priority). |
SH-1, SH-2
|
T-2
|
Invoke fixture-cli --load-sibling-dll from an unrelated working directory (<sandbox>/work). |
Target loads fixture-helper.dll from <sandbox>/apps/fixture-v1.2.3/, prints cwd=<sandbox>/work, exits 0. |
SH-3, SH-8
|
T-3
|
Inspect <shim-dir>/fixture-cli.shim.kdl (Windows) or .osh-shims/fixture-cli.shim.kdl (Unix). |
Valid KDL v1 manifest declaring command, absolute target, owner, package, package-version, and working-dir. No version/arch suffix in exposed command name. |
SH-6, SH-7
|
T-4
|
Pass tricky arguments: "hello world", a"b\c, --flag=val, and Unicode (日本語  ), plus pipe stdin and capture stdout/stderr separately. |
Target receives identical argv, reads exact stdin bytes, writes stdout and stderr to separate streams without corruption. |
SH-8
|
T-5
|
Invoke fixture-cli --exit 0, --exit 2, and --exit 42. |
Shim exits with 0, 2, and 42 respectively. |
SH-9
|
T-6
|
Start fixture-cli --sleep 30 in a Windows console and send CTRL_C_EVENT. |
Child terminates promptly; no Terminate batch job (Y/N)? prompt; no orphaned fixture-cli process remains. |
SH-5, SH-10
|
T-7
|
Attempt to register fixture-cli from a second publisher (owner "other-pkg") without -force. |
Registration fails with non-zero exit code naming the existing owner; original shim and manifest remain intact. |
SH-11
|
T-8
|
Upgrade fixture-cli from v1.2.3 to v1.3.0 under the same owner + package. |
Manifest target and package-version update atomically; invoking fixture-cli --version reports 1.3.0; zero leftover old entries in PATH. |
SH-11
|
T-9
|
Uninstall fixture-cli via its owning publisher. |
<shim-dir>/fixture-cli.exe (or symlink) and fixture-cli.shim.kdl are removed; unrelated shims in ~/.local/bin remain untouched.
|
SH-12
|
T-10
|
(Windows Strict) Compare SHA-256 hash of two shims (fixture-cli.exe and other-cli.exe) deployed by the publisher. |
Hashes match the publisher’s single immutable signed osh-shim.exe stub (zero per-app unsigned PE generation). |
SH-3
|
T-11
|
Seed PATH with <shim-dir> buried at the end and an overflowed directory past 2,047 characters containing a unique binary and a duplicate of an earlier non-overflowed binary; run register-osh-shim / pathman extend sync. |
<shim-dir> and <shim-dir>/auto are promoted to positions 0 and 1 with zero duplicates; only the non-shadowed overflow binary is shimmed into <shim-dir>/auto; the duplicate is skipped and recorded rather than hijacking the higher-priority command.
|
SH-1, SH-17
|