Commit Graph

56 Commits

Author SHA1 Message Date
de3027cff4 run_wine_tests: keep one wineserver, disable winedbg, add --jobs
Run one after another, each Windows test under Wine took several seconds,
most of it a wineserver starting and stopping around every test. The
runner now keeps one wineserver alive for the run (`wineserver -p`, the
one $WINESERVER or the --wine command uses) and stops it at the end,
also after a failure or Ctrl+C. It starts the prefix's services first
with `wine wineboot` and no output: the first program a server runs
starts them, they inherit its output pipe, and with a kept server they
hold it open until the timeout.

Each test's WINEDLLOVERRIDES gains winedbg.exe=d (a crash fails at once
instead of waiting in the debugger) and winemenubuilder.exe=d (no menu
entries or file associations in the user's profile); an entry of the
caller's or the test's for the same program wins.

--jobs N (default 1) runs N tests at a time, keeping RUN_SERIAL tests
alone, tests that share a RESOURCE_LOCK apart and DEPENDS in order, and
reports them in the same order as --jobs 1.

docs/testing.md gains the fast local recipe for the cross-build with
measured times, the menu-builder note and --jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 17:15:53 -05:00
e6b8e21d3e Merge remote-tracking branch 'origin/pr/9705' 2026-11-23 17:24:37 -05:00
f475ea37f1 Merge PR #9581 2026-11-23 17:08:22 -05:00
e688f7df1c Merge PR #9548 2026-11-23 17:07:12 -05:00
75e158bfc3 run_wine_tests: name missing required tests in the summary table
A required test the Windows build never listed fails the job, but the
--summary table only iterated the results, so the step summary showed no
row explaining the failure. Add one 'missing' row per such test, once
even when --require repeats it.
2026-11-23 16:58:21 -05:00
2471e0487f run_wine_tests: map checkouts at the Windows drive root 2026-11-23 16:33:34 -05:00
9a71bb4b2a run_wine_tests: resolve a relative Wine executable before changing directories 2026-11-23 16:23:12 -05:00
c18faa47d5 run_wine_tests: give test processes EOF on stdin 2026-11-23 16:22:59 -05:00
3997f54004 Merge pull request #4589 from ligmaSec
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:16:12 -05:00
3d713526ea Merge pull request #4547 from AGInformatique81
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:15:48 -05:00
05345bedc8 Merge pull request #4034 from Stalkerino
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:10:37 -05:00
64f3dc1a6d Merge pull request #4020 from bbareth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:10:27 -05:00
3baa73a913 Merge pull request #3899 from bbareth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:09:22 -05:00
21c1d00b0f Merge pull request #3792 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:29 -05:00
b353e81bc7 Merge pull request #3354 from Matheus Gomes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:07:21 -05:00
2810e9127c Keep the timeout helper clear of adjacent Wine runner changes 2026-11-23 02:51:52 +00:00
59879f2347 Stop timed-out Wine test process groups
Run each POSIX test in its own session and stop the group on timeout or interruption. A helper that inherits the output pipe must be stopped even when the launcher already exited.
2026-11-23 02:50:05 +00:00
26d2473378 Fail Wine tests when the mapped working directory is invalid 2026-11-23 03:20:46 +01:00
1d4d4c6185 fix(tests): keep Wine fixture setup verdicts by occurrence
A later setup with the same listed name could hide a failed setup from a required consumer. Keep fixture verdicts keyed by the same test index as their dependencies.
2026-11-23 02:42:01 +01:00
3c7b0403c3 Validate CTest working directory and output expression value types
Merge upstream main and reject malformed paths or output expressions before drive mapping. Preserve CTest's lists, the existing string form, and arbitrary values on properties the runner does not consume. Five new bad-value cases fail before the change. All 53 runner tests pass on Debian, and the reader accepts an actual CTest 3.31.6 JSON listing.

AI-assisted (Codex).
2026-11-22 22:19:42 -03:00
3ff2bfe819 Preserve CTest DEPENDS order in the Wine runner 2026-11-22 23:11:50 +00:00
e8ea6447f5 Resolve relative checkout paths before launching Wine tests 2026-11-23 00:00:56 +01:00
6d3b3f9f4e Handle malformed CTest skip codes in the Wine runner 2026-11-22 23:56:00 +01:00
62bce63d1c Clean up failed Wine drive setup 2026-11-22 23:21:17 +01:00
8a109eb7c5 Merge pull request #3792 from Vonsek 2026-11-22 17:03:50 -05:00
f040a95422 Merge pull request #3354 from Matheus Gomes 2026-11-22 17:01:38 -05:00
ba02066af9 fix(tests): honor CTest fixture setup in the Wine runner
A required Wine test can pass before its CTest fixture setup has run. Schedule the named setup tests first and withhold consumers when setup fails so the required-test result reflects whether the fixture was usable.
2026-11-22 22:39:40 +01:00
35f28b2f18 Merge pull request #3247 from Kam471 2026-11-22 15:16:09 -05:00
220b786966 Merge pull request #3195 from Max Hurst 2026-11-22 15:15:37 -05:00
507657c285 fix(ci): reject malformed commands and properties in CTest listings
Validate test rows before mapping a Wine prefix. Accept a missing command for an unbuilt target, while rejecting invalid arguments or property records before launching any tests.
2026-11-22 17:12:32 -03:00
1bc49f49ce Merge pull request #2357 from Matheus Gomes 2026-11-22 15:10:36 -05:00
fd426ec2ad fix: normalize Windows paths before Wine mapping 2026-11-22 19:48:54 +00:00
f039403efe Honor CTest output-based skips in the Wine runner 2026-11-22 19:33:20 +00:00
54e13c51b7 Merge upstream main into the Wine timeout fix
Keep the per-test CTest environment and pass its subprocess the more restrictive deadline.
2026-11-22 16:27:39 -03:00
d097528984 Merge pull request #2479 from bbareth 2026-11-22 13:15:36 -05:00
2e4c86c2d2 run_wine_tests: reject malformed CTest inventories before launching 2026-11-22 18:11:11 +01:00
03d9ce780d fix(ci): honor shorter CTest deadlines in the Wine runner
Use the shorter of the configured runner limit and a test's positive CTest TIMEOUT. A late expected failure remains a timeout, while a long or disabled CTest deadline cannot raise the runner cap.
2026-11-22 13:43:50 -03:00
d5f6eaf6f4 Merge pull request #2154 from Vonsek 2026-11-22 11:42:19 -05:00
bdfe5f88ec fix(wine): apply each CTest test environment
A test-specific setting can select a different adapter or feature. Pass the CTest environment to its subprocess so Wine covers the same settings and sibling tests still inherit the runner environment.
2026-11-22 17:08:47 +01:00
194dad2f4b fix(wine): honor disabled CTest entries
CTest marks disabled entries as skipped even when the command is unavailable. Check the property before resolving or starting the Windows test so the Wine report gives the same result.
2026-11-22 16:46:14 +01:00
ec9b6cf22b tools: text reports are written with LF line ends on every platform (BUILD-468)
open(path, "w") without newline= turns each \n into \r\n on Windows, so the same JSON report, manifest or assembly
listing was CRLF there and LF elsewhere. 91 text-mode writes (open, os.fdopen, Path.write_text) under tools/, scripts/,
make_game.py and runtime/test/shaders/ now pass newline="\n". tests/test_text_write_line_endings.py reads the source
with ast and fails for a writer that forgets it; CONTRIBUTING.md names the convention.

AI-assisted (Claude), on behalf of dev-ewann.
2026-11-22 14:20:30 +00:00
61a8499b85 Merge pull request #1701 from Jolymmiles 2026-11-22 08:38:34 -05:00
b0c587ea27 Wine tests: ship generated test shaders and map the build checkout's drive
d3d12_compute, d3d12_draw, d3d12_r9g9b9e5_uav, d3d12_descriptor and d3d12_indirect_rt open their GLSL test
shaders through absolute paths compiled into them (LEONIDA_TEST_*_SPV, D:/a/Leonida/Leonida/runtime/build/
generated/*.spv). The runtime-windows artifact didn't carry generated/*.spv and Wine has no such D: drive, so
they failed under Wine (copy_file threw, exit 3, or the shader read failed).

The artifact now includes runtime/build/generated/*.spv, and run_wine_tests.py points the drive of
--windows-root at --root in the Wine prefix for the run (a dosdevices link to a scratch folder), leaving a
drive the prefix already has untouched and removing both links afterwards.
2026-11-22 17:15:41 +04:00
36dbff0049 Merge pull request #1561 from Zebraine 2026-11-22 08:08:04 -05:00
19fcbb2027 Treat scalar CTest output expressions as single patterns 2026-11-22 20:45:05 +08:00
cdbacc418d Merge pull request #1571 from liang-kai-shui 2026-11-22 07:38:17 -05:00
622d58b763 Merge pull request #1561 from Zebraine 2026-11-22 07:38:12 -05:00
07aac8aa68 run_wine_tests: create the summary folder and report an unwritable summary
--summary was opened after the whole run, so a missing folder ended the
job in a FileNotFoundError and an unwritable path raised as well. Create
the folder before writing and report an unwritable summary as one ERROR
line with exit 1 after the results, as the other report writers do.
Extend tests/test_run_wine_tests.py with both cases.
2026-11-22 20:19:11 +08:00
47e1ea7393 Honor CTest output expressions in the Wine test runner 2026-11-22 20:14:39 +08:00
33985fc88e Merge pull request #1481 from bbareth 2026-11-22 07:07:50 -05:00