diff options
| author | SkippySteve <69158610+SkippySteve@users.noreply.github.com> | 2026-11-23 16:33:59 -0500 |
|---|---|---|
| committer | SkippySteve <69158610+SkippySteve@users.noreply.github.com> | 2026-11-23 16:33:59 -0500 |
| commit | c25891d61baff5fe70c890d6fb1dd21ba40c3b06 (patch) | |
| tree | aa244888165113421f69e02efb4c58ecca5375b8 /docs/testing.md | |
| parent | 5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff) | |
docs: run Windows CI artifacts under Wine
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md index 34cb420af..04c57b200 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -267,6 +267,29 @@ against Microsoft's answers recorded in the test (`d3d12_subresource_copy` and ` | |||
| 267 | A few still compare with the host (`root_sig`, `device_proxy`, and some of `d3d12_vulkan_device`'s cases), so some | 267 | A few still compare with the host (`root_sig`, `device_proxy`, and some of `d3d12_vulkan_device`'s cases), so some |
| 268 | of those fail for that reason. | 268 | of those fail for that reason. |
| 269 | 269 | ||
| 270 | ### Run a Windows CI artifact under Wine | ||
| 271 | |||
| 272 | The `Runtime` workflow uploads `runtime-windows` for seven days. It contains the Windows executables, DLLs, | ||
| 273 | synthetic test shaders, CTest inventory and the path of the Windows checkout. From a clean checkout of the commit | ||
| 274 | used by the Windows job, set `run_id` to the Actions run ID and download the artifact to `runtime/build`: | ||
| 275 | |||
| 276 | ```sh | ||
| 277 | gh run download "$run_id" --repo ItsNotRexed/Leonida --name runtime-windows --dir runtime/build | ||
| 278 | |||
| 279 | WINE=wine WINEPREFIX="$(mktemp -d)" WINEDLLOVERRIDES="mscoree,mshtml=" WINEDEBUG=-all \ | ||
| 280 | bash scripts/run_wine_session.sh python3 -I scripts/run_wine_tests.py \ | ||
| 281 | --tests runtime/build/ctest.json \ | ||
| 282 | --windows-root "$(cat runtime/build/windows-root.txt)" \ | ||
| 283 | --require loader --require pe_loader --require loader_tls --require unimplemented_policy \ | ||
| 284 | --require run_tiny_game --require run_tiny_game_exit_code | ||
| 285 | ``` | ||
| 286 | |||
| 287 | The session script initializes a dedicated prefix and stops its Wine processes at exit. On a headless host, | ||
| 288 | put `xvfb-run -a` before `bash` so prefix initialization and the tests share one virtual display. The test runner | ||
| 289 | maps the recorded Windows drive to the Linux checkout for shaders referenced by absolute Windows paths. It prints | ||
| 290 | every verdict and returns a failure status if any required test fails, skips or is missing. Check the printed | ||
| 291 | verdicts for failures outside the required set. | ||
| 292 | |||
| 270 | ## GPUs with 32-wide subgroups (NVIDIA, Intel, Apple) | 293 | ## GPUs with 32-wide subgroups (NVIDIA, Intel, Apple) |
| 271 | 294 | ||
| 272 | The game's shaders are mostly wave64. A GPU that can't run 64-wide compute subgroups skips the wave64 tests | 295 | The game's shaders are mostly wave64. A GPU that can't run 64-wide compute subgroups skips the wave64 tests |