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:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-23 17:08:28 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-23 17:08:28 -0500
commitd0c05fbd6a59d4712340cfad9b85f59ff9ff0722 (patch)
tree3e27fd53e9b58d38c53948d0d78f0ec549964d87 /docs/testing.md
parentc4a4696207b4aa8337add1e5976799cb5f7fd5a8 (diff)
parentc25891d61baff5fe70c890d6fb1dd21ba40c3b06 (diff)
Merge PR #9584
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 1fce647c6..777490454 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -278,6 +278,29 @@ against Microsoft's answers recorded in the test (`d3d12_subresource_copy` and `
278A few still compare with the host (`root_sig`, `device_proxy`, and some of `d3d12_vulkan_device`'s cases), so some 278A few still compare with the host (`root_sig`, `device_proxy`, and some of `d3d12_vulkan_device`'s cases), so some
279of those fail for that reason. 279of those fail for that reason.
280 280
281### Run a Windows CI artifact under Wine
282
283The `Runtime` workflow uploads `runtime-windows` for seven days. It contains the Windows executables, DLLs,
284synthetic test shaders, CTest inventory and the path of the Windows checkout. From a clean checkout of the commit
285used by the Windows job, set `run_id` to the Actions run ID and download the artifact to `runtime/build`:
286
287```sh
288gh run download "$run_id" --repo ItsNotRexed/Leonida --name runtime-windows --dir runtime/build
289
290WINE=wine WINEPREFIX="$(mktemp -d)" WINEDLLOVERRIDES="mscoree,mshtml=" WINEDEBUG=-all \
291 bash scripts/run_wine_session.sh python3 -I scripts/run_wine_tests.py \
292 --tests runtime/build/ctest.json \
293 --windows-root "$(cat runtime/build/windows-root.txt)" \
294 --require loader --require pe_loader --require loader_tls --require unimplemented_policy \
295 --require run_tiny_game --require run_tiny_game_exit_code
296```
297
298The session script initializes a dedicated prefix and stops its Wine processes at exit. On a headless host,
299put `xvfb-run -a` before `bash` so prefix initialization and the tests share one virtual display. The test runner
300maps the recorded Windows drive to the Linux checkout for shaders referenced by absolute Windows paths. It prints
301every verdict and returns a failure status if any required test fails, skips or is missing. Check the printed
302verdicts for failures outside the required set.
303
281## GPUs with 32-wide subgroups (NVIDIA, Intel, Apple) 304## GPUs with 32-wide subgroups (NVIDIA, Intel, Apple)
282 305
283The game's shaders are mostly wave64. A GPU that can't run 64-wide compute subgroups skips the wave64 tests 306The game's shaders are mostly wave64. A GPU that can't run 64-wide compute subgroups skips the wave64 tests