test: register the seven documented device-free checks in CTest #1922
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1929"
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 R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T21:36:11Z.
Problem
AGENTS.mdlists a set of checks that "do not need Windows, D3D12 or game files" and says the list matches theplatform-independent Python job. Seven of those checks are in the list and in
.github/workflows/windows.yml, butCMakeLists.txthad noadd_testfor any of them:add_testbeforebidi_controls_check.pycompat_report_check.pyform_coverage_check.pygpu_report_format_check.pyhardware_reports_check.pyshader_corpus_report_check.pyxgameruntime_table_check.pyTheir siblings in the same list (
script_state_check.py,resource_root_check.py,bcpack_*.py,docs_links_check.py, …)are registered, so a local
ctestran those and silently skipped these seven — the same shape as #1870, where anunregistered check was only exercised by CI.
Change
Seven
add_testentries, in the existing device-free block, named after the checks:No file, no fixture and no production code changes; the checks themselves are untouched.
Tested
Together with three already-registered neighbours (
script_state_literals,resource_relocated_root,docs_links):10/10 pass.
Negative control: removing the
form_coverageentry and re-configuring drops it fromctest -N; re-adding it puts itback. So the entries are what selects the tests, not something else.
Note on cost
form_coveragetakes 34 s here, which is the whole added wall time; the other six are under 2 s each. If the debug presetshould stay short, that one could get a
TIMEOUTor be left to the CI job — I kept all seven for consistency with the list.Notes
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T21:54:03Z.
Review: COMMENTED
Review of head
e557d74d2cee1e194038ec158cbfacfb71ca6eaa(CMakeLists.txt, +16).Result: no P1, no P2, two P3 notes.
Checked:
tests/and each name is registered once (CMakeLists.txt:7288-7301). The new tests sit inside the existingif(EXISTS "${INTAKE_PYTHON}")guard, so builds without the Python env are unchanged.AGENTS.mdand.github/workflows/windows.yml(lines 149-178).git merge-tree --write-tree --name-only origin/main HEAD: clean, no conflicts.gh pr checks 1929: Linux Python job, Windows build and gfx1013 fixtures pass. The /O2 job and chart publishing are skipped.Commands run and results:
git diff --check origin/main...HEAD: clean.python3 tests/bidi_controls_check.py: passed.python3 tests/docs_links_check.py: passed (386 links).compat_reportandform_coveragefail only becausepefileandiced_x86are missing outside the pinned env. Both passed in the Windows env below.python3 x2w_pipe.py win2025 1929 --wait 900(Windows Server 2025, Debug and Release /O2): ctest 6/6 passed in both configs.Mutation: I changed the
hardware_reportsscript path to a misspelled file. The registered test failed (ctest reportedhardware_reports (Failed)). I ran this in a stub project that holds only the newadd_testlines, because the full configure needsdxc, which this host lacks. I then reverted the change.P3:
CMakeLists.txt:7296:hardware_reportsis the only one of the seven that the Windows pipeline run did not execute. Its ctest filter listed six names. It is registered correctly, and CI covers the script, but it was not run under ctest on Windows here.CMakeLists.txt:7287: the comment says "never registered here". The wording will go stale. A short note thatAGENTS.mdand CI list these checks would age better.AI-assisted; commands listed were executed locally.