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:
authorTauwni <102470988+Tauwni@users.noreply.github.com>2026-11-26 16:39:54 +0100
committerTauwni <102470988+Tauwni@users.noreply.github.com>2026-11-26 16:39:54 +0100
commite3ee01dcde46090b605ea4c5fed64d4cca6ea1b5 (patch)
treee0bb7a54097097cbca95c2651d03f0fc29371c9a /docs/testing.md
parentfbf100b1b10e391625585fe6a8bf4e653662ca9a (diff)
docs/testing.md: the Windows runtime tests under Wine on a Mac (WineHQ build, ROSETTA_ADVERTISE_AVX)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md
index 671c5548c..766942c81 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -226,6 +226,18 @@ WINEPREFIX="$HOME/.local/share/leonida-wine" ctest --test-dir runtime/build/wind
226Use 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 226Use 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
227x86_64 headers for Win11SDK_10.0.26100". 227x86_64 headers for Win11SDK_10.0.26100".
228 228
229On a Mac (Apple Silicon) the same steps work with Homebrew's LLVM and lld (`brew install llvm lld xwin`; the cross
230tools are `clang-cl`, `lld-link`, `llvm-lib`, `llvm-rc` and `llvm-mt` under `$(brew --prefix)/opt/llvm/bin` and
231`$(brew --prefix)/opt/lld/bin`) and the WineHQ macOS build, an x86-64 Wine that runs under Rosetta. Homebrew's
232`wine-stable` cask is disabled (it does not pass Gatekeeper), so take the archive the cask names from its
233`url` and check it against the cask's `sha256`. Configure with `-DCMAKE_CROSSCOMPILING_EMULATOR=<path to its wine>`
234when `wine` is not on `PATH`; a path with spaces (`Wine Stable.app`) is easiest behind a small wrapper script. Run
235`ctest` with `ROSETTA_ADVERTISE_AVX=1`: without it Rosetta hides AVX from Wine, and the `run_tiny_*` loader tests stop
236with "the game's code needs AVX, and this CPU or OS lacks AVX, OSXSAVE". Measured on an Apple M3 (macOS 26.5.1,
237Wine 11.0, its bundled MoltenVK 1.4.1) at `main` `fbf100b1b`: 1084 targets build, and `ctest -j 6 --timeout 120`
238gives 461 of 482 passed (440 without `ROSETTA_ADVERTISE_AVX`). The display is the Mac's own, so no virtual X server
239is needed.
240
229On a machine without a display (a server, a container, WSL without WSLg), Wine has no graphics driver to create a 241On a machine without a display (a server, a container, WSL without WSLg), Wine has no graphics driver to create a
230Vulkan instance with, so every Vulkan test fails with `vkCreateInstance failed (VkResult -3)` and, with 242Vulkan instance with, so every Vulkan test fails with `vkCreateInstance failed (VkResult -3)` and, with
231`WINEDEBUG=+vulkan`, "Failed to load Wine graphics driver supporting Vulkan". Run the tests under a virtual X server, 243`WINEDEBUG=+vulkan`, "Failed to load Wine graphics driver supporting Vulkan". Run the tests under a virtual X server,