diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-23 17:08:28 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-23 17:08:28 -0500 |
| commit | d0c05fbd6a59d4712340cfad9b85f59ff9ff0722 (patch) | |
| tree | 3e27fd53e9b58d38c53948d0d78f0ec549964d87 /docs/testing.md | |
| parent | c4a4696207b4aa8337add1e5976799cb5f7fd5a8 (diff) | |
| parent | c25891d61baff5fe70c890d6fb1dd21ba40c3b06 (diff) | |
Merge PR #9584
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 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 ` | |||
| 278 | A few still compare with the host (`root_sig`, `device_proxy`, and some of `d3d12_vulkan_device`'s cases), so some | 278 | A few still compare with the host (`root_sig`, `device_proxy`, and some of `d3d12_vulkan_device`'s cases), so some |
| 279 | of those fail for that reason. | 279 | of those fail for that reason. |
| 280 | 280 | ||
| 281 | ### Run a Windows CI artifact under Wine | ||
| 282 | |||
| 283 | The `Runtime` workflow uploads `runtime-windows` for seven days. It contains the Windows executables, DLLs, | ||
| 284 | synthetic test shaders, CTest inventory and the path of the Windows checkout. From a clean checkout of the commit | ||
| 285 | used by the Windows job, set `run_id` to the Actions run ID and download the artifact to `runtime/build`: | ||
| 286 | |||
| 287 | ```sh | ||
| 288 | gh run download "$run_id" --repo ItsNotRexed/Leonida --name runtime-windows --dir runtime/build | ||
| 289 | |||
| 290 | WINE=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 | |||
| 298 | The session script initializes a dedicated prefix and stops its Wine processes at exit. On a headless host, | ||
| 299 | put `xvfb-run -a` before `bash` so prefix initialization and the tests share one virtual display. The test runner | ||
| 300 | maps the recorded Windows drive to the Linux checkout for shaders referenced by absolute Windows paths. It prints | ||
| 301 | every verdict and returns a failure status if any required test fails, skips or is missing. Check the printed | ||
| 302 | verdicts 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 | ||
| 283 | The game's shaders are mostly wave64. A GPU that can't run 64-wide compute subgroups skips the wave64 tests | 306 | The game's shaders are mostly wave64. A GPU that can't run 64-wide compute subgroups skips the wave64 tests |