Tests: xcl inspect reads the test title's console imports #912

Open
github-bot wants to merge 1 commit from github-bot/gh-912 into main AGit
Owner

@⁠Koro4e on GitHub · 2026-11-24 08:07 UTC · original
Koro4e:inspect-e2e → main · +50 −0 · 1 files · 1 commits · open

xcl inspect had no end-to-end coverage. This runs it on the fake console title the repo already builds (xcl_testtitle.exe + testgame_mw.dll, same fixture as the xcl run e2e tests): a real x64 PE whose import table mixes console DLLs and Windows ones, with the game's DLL beside it for the game-DLL status.

Tests only - no code touched.

What is in it

  • crates/xcl/tests/e2e.rs: inspect_reports_the_fake_titles_console_imports - --json reports is_dll: false and the imports with their sources (one STUB, HLE (kernelx.dll) and HLE (xgameruntime.dll) entries present); the plain text mode recognizes the file as a console title ("Console game: yes (imports kernelx.dll, xgameruntime.dll)")

Tested

  • cargo test -p xcl --test e2e inspect_reports: 1 passed, 0 failed (the three existing tests in this file are untouched; this PR only appends a test)
  • the whole suite was not rerun on this PR: the GPU is busy with another process on this machine and this file's other tests draw through it. The last full-suite run on this machine, on main earlier today: cargo test --workspace --no-fail-fast -- --test-threads=1: 708 passed, 5 failed, 41 ignored, 17 test binaries; the 5 failures are the GPU tests' VRM/device-removed cascade on this 12 GiB RTX 3060 (driver 617.14), each passes when run on its own. Environmental, unrelated to this change.
  • Windows 11 build 26200, Rust 1.100.0 (stable-x86_64-pc-windows-msvc)

Regression run

  • not needed: no change to crates/xcl/src (the test calls the shipped xcl inspect through a fresh debug build)

Not tested

  • AMD GPUs; the retail title

AI use

  • AI-assisted: yes. Written with an AI agent (DeepAI Code) with GLM 5.3 Flash (Z.ai): found the gap, wrote the test and this description.
**@⁠Koro4e** on GitHub · 2026-11-24 08:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/912) `Koro4e:inspect-e2e` → `main` · +50 −0 · 1 files · 1 commits · open `xcl inspect` had no end-to-end coverage. This runs it on the fake console title the repo already builds (`xcl_testtitle.exe` + `testgame_mw.dll`, same fixture as the `xcl run` e2e tests): a real x64 PE whose import table mixes console DLLs and Windows ones, with the game's DLL beside it for the game-DLL status. Tests only - no code touched. **What is in it** - crates/xcl/tests/e2e.rs: `inspect_reports_the_fake_titles_console_imports` - `--json` reports `is_dll: false` and the imports with their sources (one `STUB`, `HLE (kernelx.dll)` and `HLE (xgameruntime.dll)` entries present); the plain text mode recognizes the file as a console title ("Console game: yes (imports kernelx.dll, xgameruntime.dll)") **Tested** - `cargo test -p xcl --test e2e inspect_reports`: 1 passed, 0 failed (the three existing tests in this file are untouched; this PR only appends a test) - the whole suite was not rerun on this PR: the GPU is busy with another process on this machine and this file's other tests draw through it. The last full-suite run on this machine, on main earlier today: `cargo test --workspace --no-fail-fast -- --test-threads=1`: 708 passed, 5 failed, 41 ignored, 17 test binaries; the 5 failures are the GPU tests' VRM/device-removed cascade on this 12 GiB RTX 3060 (driver 617.14), each passes when run on its own. Environmental, unrelated to this change. - Windows 11 build 26200, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`) **Regression run** - not needed: no change to `crates/xcl/src` (the test calls the shipped `xcl inspect` through a fresh debug build) **Not tested** - AMD GPUs; the retail title **AI use** - AI-assisted: yes. Written with an AI agent (DeepAI Code) with GLM 5.3 Flash (Z.ai): found the gap, wrote the test and this description.
inspect had no end-to-end coverage. This runs it on the fake
console title: the JSON mode reports the imports with their sources
(a stub, kernelx and xgameruntime HLE entries) and the text mode
recognizes the file as a console title.

Assisted-by: DeepAI Code (GLM 5.3 Flash)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:36:41 +00:00
Author
Owner

@⁠SlopTart on GitHub · 2026-11-24 09:34 UTC · original

Linux / AMD RDNA3 datapoint.

Merged state: head fae817f onto main 09940bb, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 710 passed, 7 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows. inspect console-imports 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.

**@⁠SlopTart** on GitHub · 2026-11-24 09:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/912#issuecomment-7127606534) Linux / AMD RDNA3 datapoint. **Merged state:** head `fae817f` onto main `09940bb`, clean merge. **Full suite, `cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4`:** **710 passed, 7 failed, 41 ignored**; failures are the known Wine-lane set from my #42 rows. inspect console-imports 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 09:31 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 09:31 UTC · [original](https://github.com/xcl-dev/xcl/pull/912#issuecomment-7158437500) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/912/head:github-bot/gh-912'
git switch 'github-bot/gh-912'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-912'
git switch 'github-bot/gh-912'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-912'
git switch 'github-bot/gh-912'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-912'
git switch 'main'
git merge --squash 'github-bot/gh-912'
git switch 'main'
git merge --ff-only 'github-bot/gh-912'
git switch 'main'
git merge 'github-bot/gh-912'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.