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:
authorjustr4mzi <243612488+justr4mzi@users.noreply.github.com>2026-11-22 17:57:59 +0000
committerjustr4mzi <243612488+justr4mzi@users.noreply.github.com>2026-11-22 17:57:59 +0000
commitdf6864d4b7443aebde3fa08b3fb1ba4338dd0a69 (patch)
treeda4822c3ec6e4d60e6784ffee9b64340a9850923 /docs/testing.md
parent49475796c226c8511b9470bf97a4daf57b8af323 (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.md9
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
143WINEPREFIX="$HOME/.local/share/leonida-wine" ctest --test-dir runtime/build/windows 143WINEPREFIX="$HOME/.local/share/leonida-wine" ctest --test-dir runtime/build/windows
144``` 144```
145 145
146Use 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
147x86_64 headers for Win11SDK_10.0.26100".
148
149On a machine without a display (a server, a container, WSL without WSLg), Wine has no graphics driver to create a
150Vulkan 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,
152as CI does: `xvfb-run -a ctest --test-dir runtime/build/windows` (package `xvfb`). With Mesa installed, the tests
153then run on llvmpipe.
154
146The build type defaults to `RelWithDebInfo`: xwin leaves out the debug CRT, so `Debug` needs `--include-debug-libs`. 155The 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
148runtime/build/windows` takes a folder made by hand like a Windows build). CMake packages are 157runtime/build/windows` takes a folder made by hand like a Windows build). CMake packages are