Skip to content

Run CTest CMake fixtures from Windows artifacts under Wine - #4041

Open
ligmaSec wants to merge 2 commits into
ItsNotRexed:mainfrom
ligmaSec:ci/wine-ctest-cmake
Open

ligmaSec wants to merge 2 commits into
ItsNotRexed:mainfrom
ligmaSec:ci/wine-ctest-cmake

Conversation

@ligmaSec

@ligmaSec ligmaSec commented Nov 22, 2026 •

Copy link
Copy Markdown

Claim in coordination #3918. Supersedes #3961.

What and why

The Windows CTest inventory records CMake script tests as commands for the Windows build runner. run_wine_tests.py skipped them all, and the workflow separately reconstructed the async loader command. That left the other loader checks and the pipeline-checker CLI outside the normal Wine test report.

Recognize the repository's loader and pipeline-checker CMake fixtures in the inventory. Invoke the Linux CMake with the corresponding checkout script and mapped artifact paths, and have the fixture use the configured Wine command. The results use the same timeout, status and summary handling as the direct executable tests. The workflow now requires the async, dynamic GDK and bundled-DLL checks through this path. The testing guide includes the command for a downloaded Windows CI artifact.

Tested

  • Debian 13, Wine 10.0, Xvfb, Python 3.13.5 and CMake 3.31.6. The Windows artifact from 49475796 and its matching scripts gave 16 passed, 0 failed, 0 skipped in a selected loader and CLI run. The artifact root contained spaces. The same inventory's four CMake fixtures were skipped by the old runner and all passed with this change: async, dynamic GDK, bundled DLL, and pipeline-checker CLI.
  • Ran the 55 Wine-runner tests, 12 CI/CTest registration tests, documentation link and path checks, line-ending checks, and actionlint with ShellCheck. The runner suite exercises native CMake with a synthetic child command, including spaces and a literal semicolon.
  • The local artifact predates the newer startup command-line, Unicode path, and game-directory fixtures. Those need the current hosted build to verify their Windows binaries under Wine.

Synthetic fixtures only. AI-assisted (Codex).

Integration with Wine timeouts

The CMake launch assertion now checks the subprocess handle, so it works with both launch paths. All 55 standalone runner tests passed and all 56 passed in a clean trial merge with #4589. On Wine 10.0, a timed-out CMake fixture from that combined runner stopped its Windows helper before the next test, which passed under the same prefix. Synthetic fixtures only.

@Vonsek

Vonsek commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Independent check of 22788c9 against aa2988c. The three focused Python tests passed with synthetic artifact metadata. They covered skipping unrelated commands, diagnosing missing inputs, and passing the mapped pipeline tool and test directory to the stubbed launcher with the CTest timeout. The Windows artifact includes the executable and DLL paths used by the loader checks. The hosted Runtime run is awaiting action, so this does not verify the new required Wine cases end to end.

This complements #3792. This PR runs known CMake script commands with locally mapped paths. #3792 orders CTest FIXTURES_SETUP and FIXTURES_REQUIRED tests and reports setup failures to consumers. Both touch run_test, so the branches should preserve both behaviors when combined.

AI-assisted.

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran this at 22788c9a on Windows 11: python -I tests/test_run_wine_tests.py -> 55 tests, OK (5 skipped); compileall and git diff --check clean.

The new cases recognize the loader and pipeline-checker CMake fixtures from the Windows CTest inventory and keep the non-fixture commands unchanged; the skips are the host-only Wine cases. The workflow no longer reconstructs the async loader command separately, so the Wine report and the Windows report now cover the same fixture set. No blocking issue; this supersedes #3961 as stated.

@ligmaSec

Copy link
Copy Markdown
Author

I checked the interaction with #3792 at 3ff2bfe8 and #4034 at e8ea6447 in a local integration checkout on Debian 13. #4034 merged cleanly. #3792 overlaps in run_test. Keeping the CMake command builder and applying the failed-setup check after command selection preserves both paths.

The combined runner passed all 56 runner tests and all five fixture-order tests. I also exercised an actual local CMake consumer listed ahead of its setup in the inventory, using --root . in a checkout path containing spaces. With a passing setup, it ran the setup first and then CMake. With a failed setup, it reported the required consumer failure and never launched CMake. Synthetic inputs, AI-assisted (Codex).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants