diff options
| author | justr4mzi <243612488+justr4mzi@users.noreply.github.com> | 2026-11-22 17:57:59 +0000 |
|---|---|---|
| committer | justr4mzi <243612488+justr4mzi@users.noreply.github.com> | 2026-11-22 17:57:59 +0000 |
| commit | df6864d4b7443aebde3fa08b3fb1ba4338dd0a69 (patch) | |
| tree | da4822c3ec6e4d60e6784ffee9b64340a9850923 /docs/testing.md | |
| parent | 49475796c226c8511b9470bf97a4daf57b8af323 (diff) | |
docs/testing.md: xwin version and Xvfb for the Wine runtime tests
Two things that stop the documented Linux cross-build and Wine run:
- xwin 0.6.5 cannot lay out SDK 10.0.26100 with the documented command
("unable to find x86_64 headers"); 0.10.0 can.
- Without a display, Wine has no graphics driver for Vulkan, so every Vulkan
test fails with vkCreateInstance -3. Run ctest under xvfb-run, as CI does.
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md index 175e4b2bc..e34547374 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -143,6 +143,15 @@ cmake --build runtime/build/windows --parallel | |||
| 143 | WINEPREFIX="$HOME/.local/share/leonida-wine" ctest --test-dir runtime/build/windows | 143 | WINEPREFIX="$HOME/.local/share/leonida-wine" ctest --test-dir runtime/build/windows |
| 144 | ``` | 144 | ``` |
| 145 | 145 | ||
| 146 | Use a recent xwin: 0.10.0 lays out SDK 10.0.26100 with the command above, while 0.6.5 stops with "unable to find | ||
| 147 | x86_64 headers for Win11SDK_10.0.26100". | ||
| 148 | |||
| 149 | On a machine without a display (a server, a container, WSL without WSLg), Wine has no graphics driver to create a | ||
| 150 | Vulkan instance with, so every Vulkan test fails with `vkCreateInstance failed (VkResult -3)` and, with | ||
| 151 | `WINEDEBUG=+vulkan`, "Failed to load Wine graphics driver supporting Vulkan". Run the tests under a virtual X server, | ||
| 152 | as CI does: `xvfb-run -a ctest --test-dir runtime/build/windows` (package `xvfb`). With Mesa installed, the tests | ||
| 153 | then run on llvmpipe. | ||
| 154 | |||
| 146 | The build type defaults to `RelWithDebInfo`: xwin leaves out the debug CRT, so `Debug` needs `--include-debug-libs`. | 155 | The build type defaults to `RelWithDebInfo`: xwin leaves out the debug CRT, so `Debug` needs `--include-debug-libs`. |
| 147 | `make_game.py`'s `runtime` stage makes this same build on Linux when the tools and the SDK are there (`--runtime-build | 156 | `make_game.py`'s `runtime` stage makes this same build on Linux when the tools and the SDK are there (`--runtime-build |
| 148 | runtime/build/windows` takes a folder made by hand like a Windows build). CMake packages are | 157 | runtime/build/windows` takes a folder made by hand like a Windows build). CMake packages are |