mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1354] [MERGED] run_wine_tests: keep one wineserver, disable winedbg, add --jobs (TEST-WINE-FAST) #1384
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1384
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1354
Author: @aslan2142
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142
Base:
main← Head:wine-tests-fast📝 Commits (1)
de3027crun_wine_tests: keep one wineserver, disable winedbg, add --jobs📊 Changes
3 files changed (+432 additions, -18 deletions)
View changed files
📝
docs/testing.md(+49 -1)📝
scripts/run_wine_tests.py(+211 -17)📝
tests/test_run_wine_tests.py(+172 -0)📄 Description
Claimed in the coordination issue as: TEST-WINE-FAST (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145659035)
Depends on: none. #919, #999 and #1015 also change
scripts/run_wine_tests.py: #919 merges cleanly with this branch; #999 (the docstring, the results loop inmain()) and #1015 (the imports,positive_seconds/--timeout) give small textual conflicts.What and why
Under Wine, each Windows test took several seconds, most of it a wineserver starting and stopping around every test.
wineserver -p;$WINESERVER, else the one next to--wine, else the one on PATH) and stops it with-kat the end, also after a failure or Ctrl+C. If a server is still shutting down, it waits for it first. A server someone else started with-pis used and left running. With no wineserver found, it prints one line and carries on.winebootwarm-up. After starting the server it runswine winebootwith no output. The first program a server runs starts the prefix's services, which inherit its stdout. With a kept server they hold the first test's pipe open until the timeout (measured: 120 s).WINEDLLOVERRIDESgetswinedbg.exe=d(a crash fails at once instead of waiting in the debugger) andwinemenubuilder.exe=d(no.desktopfiles or MIME entries in the user's profile). An entry of the caller's or of the test's CTestENVIRONMENTfor the same program wins.--jobs N(default 1, output unchanged).RUN_SERIALtests run alone, tests sharing aRESOURCE_LOCKnever overlap, andDEPENDSand fixtures are kept. Verdicts and the summary come out in the same order as with--jobs 1.docs/testing.md: the fast local recipe for the cross-build, the measured times, the menu-builder note, a pointer to "Known problems" for tests that share temp files, and--jobs.Tested
Wine 11.22 (Staging) on Linux under
xvfb-run, llvmpipe only, with a clang-cl (xwin) build of recentmain. No game files.| 40 tests with
ctest(-R '^(d3d12_[a-c]|vk_[a-d]|xg)'), one setting added at a time | Seconds ||---|---|
| one test after another, as the docs say today | 179 |
|
wineserver -pwithout the warm-up (the first test hung for 120 s) | 155 ||
wineserver -pwith thewinebootwarm-up | 35 || and
WINEDEBUG=-all, thenwinedbg.exe=d(no test crashed, so no change) | 35 || and
ctest -j 6| 5.6 |--jobs 1and 6.2 s with--jobs 6for those 40 tests, with the same verdicts in the same order. All 312 tests took 19 s with--jobs 6.tests/test_run_wine_tests.py: 72 tests pass; the 9 new ones each fail or error againstmain's script.test_text_write_line_endings,test_tool_stdout_encoding, all 12test_docs_*andcheck_no_game_data.pyon the changed files pass.winejob itself (it runs the MSVC build's artifact), and Wine versions other than 11.22.GPUs tested: n/a (Mesa llvmpipe, software Vulkan)
AI-assisted: yes (Claude Code, Claude Opus 5.5)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (No translator rule.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.