tests: name the host GPU adapter and make skipped shader tests explicit #43
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/43"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from uiliannn/VItoriaBr. Originally posted by LouisRiverstone on 2026-11-25T20:16:37Z.
Closes #32
Why
Host GPU tests passed without saying which adapter ran them (card or WARP), and tests missing a compiler or device returned early, so the harness reported
okfor runs that checked nothing.What changed
emit::host::Hostgets anadapterfield (name (vendor 0x....)) and logsVICTORY HOST GPU: ...once per adapter per process.emit::test_skip::skip(reason): printsVICTORY TEST SKIPPED: <reason>for every skip. WithVICTORY_STRICT_TESTS=1it panics instead, for machines where the compilers and devices are expected.eprintln!("... skipped")/"... not run"site in the shader emit tests (diff, valu, intersect, waterfall, wave64, rect, mod, shader) goes through it, as do the previously silentHost::newfallbacks.Behavior without
VICTORY_STRICT_TESTSis unchanged: same early returns, louder output.Strict mode fails on any skip, including a missing hardware adapter in the tests that also try WARP, so use it only where a card is present.
Verify
cargo clippy -p victory-shader --tests --target x86_64-pc-windows-msvcis clean.cfg(windows)) and did not run them. Please runcargo test -p victory-shaderon Windows, with and withoutVICTORY_STRICT_TESTS=1.🤖 Generated with Claude Code