Repository navigation
Tests: format debug-layer SKIPPED lines in e2e.rs for scripts/test.ps1 - #2489
microwave805 wants to merge 1 commit into
Conversation
`scripts/test.ps1` counts skipped tests with `^SKIPPED \S+: (.+)$`,
expecting a single non-whitespace test identifier before `: ` (as
`runner::skip_test` and `texture_states.rs` emit).
`crates/xcl/tests/e2e.rs` printed
`SKIPPED the title under the debug layer (dred: {dred}): no {dll}` when
`d3d12SDKLayers.dll` or `xgameruntime.dll` was absent, which contains
spaces before `:` and was silently missed by `scripts/test.ps1`'s
skipped-test summary.
Use the current test thread name (matching `runner::skip_test`) in
`SKIPPED <test>: no <dll>` and add a regression test for the format.
Assisted-by: Antigravity (Gemini 4 Neon)
|
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
I replayed the parent and PR message formats through the actual
All six input lines appeared in the raw log in both cases. Both summaries were identical for child exit 0 and 101, and the runner returned the original exit code in all eight runs. Standalone replay script. From a checkout containing this PR and its parent, run Windows 11, Core i7-13700, Windows PowerShell 5.1 and PowerShell 7.6.9, Python 3.14.3. The test replays the formatted Rust messages. It does not execute the Rust e2e binary or remove either system DLL. OpenAI Codex (GPT-6) prepared the script and ran it. |
scripts/test.ps1counts skipped tests using^SKIPPED \S+: (.+)$, which requires a single non-whitespace token before:(matchingrunner::skip_testandtexture_states.rs). Incrates/xcl/tests/e2e.rs,title_under_the_debug_layerprintedSKIPPED the title under the debug layer (dred: {dred}): no {dll}, whose spaces before:causedscripts/test.ps1to silently drop those skips from its summary on machines withoutd3d12SDKLayers.dllorxgameruntime.dll.What is in it
crates/xcl/tests/e2e.rs(title_under_the_debug_layer) to emitSKIPPED <test>: no <dll>using the current test thread name (falling back totitle_under_the_debug_layer), matchingrunner::skip_testandscripts/test.ps1.debug_layer_skip_line_matches_test_ps1_patternverifying theSKIPPED \S+: <reason>format.Tested
32.0.16.1742, wave32 + SM 6.6, no native wave64), DXC1.9.2602.17(Windows SDK10.0.26100.0), Rust1.100.0(stable-x86_64-pc-windows-msvc), debug profile, tested on commit9a85479b74c6.cargo test -p xcl --test e2e -- --nocapture: 5 passed, 0 failed, 0 ignored..\scripts\test.ps1(withXCL_DXIL_CACHE=%TEMP%\xcl-test-dxil-cache): 1418 passed, 0 failed, 46 ignored (26SKIPPEDlines on this adapter: 21no wave64, 3 per-lane wave32 unsupported-op skips, 1no heap windows, 1cannot disable the driver cache (Windows Developer Mode is required)).Regression run
Not needed: test-only change under
crates/xcl/tests/(no runtime files modified).Not tested
d3d12SDKLayers.dllorxgameruntime.dll(both DLLs are installed on this host, so both debug-layer e2e tests ran to completion; the skip formatting helper is verified bydebug_layer_skip_line_matches_test_ps1_pattern).XCL_SAMPLE_*game-data tests (no unpacked Xbox Series game files available).AI use
Gemini 4 Neon).crates/xcl/tests/e2e.rs, ran the targeted and full workspace test suites on commit9a85479b74c6, and drafted this PR description.