tests: name the host GPU adapter and make skipped shader tests explicit #43

Manually merged
github merged 1 commit from gh-pr/43/head into gh-pr/43/base 2026-11-26 03:42:24 +00:00
Owner

@⁠LouisRiverstone on GitHub · 2026-11-25 20:16 UTC · original
LouisRiverstone:test/explicit-skips-and-adapter-log → main · +105 −30 · 10 files · 1 commits · merged 2026-11-25 20:33 UTC

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 ok for runs that checked nothing.

What changed

  • emit::host::Host gets an adapter field (name (vendor 0x....)) and logs VICTORY HOST GPU: ... once per adapter per process.
  • New test-only emit::test_skip::skip(reason): prints VICTORY TEST SKIPPED: <reason> for every skip. With VICTORY_STRICT_TESTS=1 it panics instead, for machines where the compilers and devices are expected.
  • Every 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 silent Host::new fallbacks.

Behavior without VICTORY_STRICT_TESTS is 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-msvc is clean.
  • I built for the Windows target only (the tests are cfg(windows)) and did not run them. Please run cargo test -p victory-shader on Windows, with and without VICTORY_STRICT_TESTS=1.

🤖 Generated with Claude Code

**@⁠LouisRiverstone** on GitHub · 2026-11-25 20:16 UTC · [original](https://github.com/uiliannn/VItoriaBr/pull/43) `LouisRiverstone:test/explicit-skips-and-adapter-log` → `main` · +105 −30 · 10 files · 1 commits · merged 2026-11-25 20:33 UTC 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 `ok` for runs that checked nothing. ## What changed - `emit::host::Host` gets an `adapter` field (`name (vendor 0x....)`) and logs `VICTORY HOST GPU: ...` once per adapter per process. - New test-only `emit::test_skip::skip(reason)`: prints `VICTORY TEST SKIPPED: <reason>` for every skip. With `VICTORY_STRICT_TESTS=1` it panics instead, for machines where the compilers and devices are expected. - Every `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 silent `Host::new` fallbacks. Behavior without `VICTORY_STRICT_TESTS` is 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-msvc` is clean. - I built for the Windows target only (the tests are `cfg(windows)`) and did not run them. Please run `cargo test -p victory-shader` on Windows, with and without `VICTORY_STRICT_TESTS=1`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Host::new logs the DXGI adapter (name, vendor) once per adapter. Tests that
lack a compiler or device now go through test_skip::skip, which prints a
VICTORY TEST SKIPPED line and, with VICTORY_STRICT_TESTS=1, fails instead.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:42:24 +00:00
github manually merged commit f6fc771822 into gh-pr/43/base 2026-11-26 03:42:24 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.