Tests: cover xcl shaders across files, folders, and RPF9 packs #959
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!959
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/959/head"
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?
@certified-retart on GitHub · 2026-11-24 09:34 UTC · original
certified-retart:tests/shaders-e2e→main· +298 −0 · 1 files · 1 commits · merged 2026-11-24 15:52 UTCAdds end-to-end CLI integration tests for
xcl shadersover synthetic console shader containers (DXBC→DXIL→XDAT→XBCH→FSSM), folders, and synthetic RPF9 packs. Test-only: no runtime code changes.What is in it
crates/xcl/tests/shaders_e2e.rs(new, 4 integration tests using only synthetic containers, no game data):shaders_single_file_reports_text_top_json_recomp_and_dxc_compile: exercises text output,--recomp,--top 1, and--json --recomp --compile 1(compiling the translated HLSL with DXC) on a single synthetic Xbox native PS container.shaders_folder_recurses_and_skips_side_files: exercises recursive folder scanning across mixed console/non-console files and verifies.txtand.fssmside files are skipped.shaders_rpf9_pack_scans_records_and_counts_inflate_errors: exercises RPF9 pack scanning (9FPR), valid console + non-console records, and countinginflate_errorswhen a record's declared uncompressed size mismatches its deflate stream.shaders_handles_non_console_file_and_missing_path: verifies exit code0withno console containers (xbox-native)on a non-console file and exit code2with anxcl shaders:stderr message on a missing path.Tested
32.0.16.1074), AMD Ryzen 7 9800X3D, Windows 10 Pro build 19045,rustc 1.100.0 (0ef1bc386 2026-11-09), debug build, Agility SDK v620 (XCL_D3D12_DIR).cargo test -p xcl --test shaders_e2e -- --nocapture: 4 passed, 0 failed, 0 ignored.cargo build --workspaceandcargo test --workspace -- --test-threads=1 --nocapture(withXCL_D3D12_DIRset): 720 passed, 0 failed, 41 ignored.SKIPPEDtests on this adapter/host:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64),test_title_draws_with_a_root_signature_under_the_debug_layer(no d3d12SDKLayers.dll),uploads_start_from_each_subresources_state(no D3D12 debug).Regression run
Not needed: this PR adds only an integration test file under
crates/xcl/tests/and does not change the runtime.Not tested
xcl shaders --precompile,--pipelines,--iface,--example, or real retail shader packs (XCL_SAMPLE_RPF).--test-threads=4.AI use
gemini-4-neon) wrote the integration tests and this description and ran the build and test suite on the hardware named above.@SlopTart on GitHub · 2026-11-24 10:38 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
e1c4020onto main9aec53d, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 717 passed, 11 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). shader-across-files/folders/RPF9 tests green.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@Aniseto on GitHub · 2026-11-24 10:52 UTC · original
Ran the new binary on Windows 11 x64 at
e1c4020:Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.
All four pass on this OS build, which adds a Windows 11 build 26200 datapoint to the author's Windows 10 build 19045 and the Linux/AMD run above. These are CLI-level tests, so the GPU is not the variable here.
Not tested: retail titles, RDNA4, Linux, release profile, optional
XCL_SAMPLE_*retail-data tests.AI-assisted (OpenCode), model: DeepSeek V4.1 Flash 1017 - checked out the PR's head commit in a detached worktree, built it, ran the test binary, wrote this report; the worktree was not modified.
@DavidM1911 on GitHub · 2026-11-24 13:51 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
@DavidM1911 on GitHub · 2026-11-26 03:23 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin