upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/testing.md
diff options
context:
space:
mode:
authorSkippySteve <69158610+SkippySteve@users.noreply.github.com>2026-11-23 16:33:59 -0500
committerSkippySteve <69158610+SkippySteve@users.noreply.github.com>2026-11-23 16:33:59 -0500
commitc25891d61baff5fe70c890d6fb1dd21ba40c3b06 (patch)
treeaa244888165113421f69e02efb4c58ecca5375b8 /docs/testing.md
parent5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff)
docs: run Windows CI artifacts under Wine
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md23
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 `
267A few still compare with the host (`root_sig`, `device_proxy`, and some of `d3d12_vulkan_device`'s cases), so some 267A few still compare with the host (`root_sig`, `device_proxy`, and some of `d3d12_vulkan_device`'s cases), so some
268of those fail for that reason. 268of those fail for that reason.
269 269
270### Run a Windows CI artifact under Wine
271
272The `Runtime` workflow uploads `runtime-windows` for seven days. It contains the Windows executables, DLLs,
273synthetic test shaders, CTest inventory and the path of the Windows checkout. From a clean checkout of the commit
274used by the Windows job, set `run_id` to the Actions run ID and download the artifact to `runtime/build`:
275
276```sh
277gh run download "$run_id" --repo ItsNotRexed/Leonida --name runtime-windows --dir runtime/build
278
279WINE=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
287The session script initializes a dedicated prefix and stops its Wine processes at exit. On a headless host,
288put `xvfb-run -a` before `bash` so prefix initialization and the tests share one virtual display. The test runner
289maps the recorded Windows drive to the Linux checkout for shaders referenced by absolute Windows paths. It prints
290every verdict and returns a failure status if any required test fails, skips or is missing. Check the printed
291verdicts 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
272The game's shaders are mostly wave64. A GPU that can't run 64-wide compute subgroups skips the wave64 tests 295The game's shaders are mostly wave64. A GPU that can't run 64-wide compute subgroups skips the wave64 tests