Commit Graph

69 Commits

Author SHA1 Message Date
35159222a4 Merge pull request #919 from TuroYT/fix/wine-drive-map-oserror
run_wine_tests: keep going when the drive cannot be mapped (WINE-DRIVE-MAP-OSERROR)
2026-11-29 02:32:13 +01:00
5fe330015d Merge pull request #1946 from lgr123/wine-fixture-cleanup
Honor CTest fixture cleanup ordering in the Wine runner
2026-11-29 00:49:28 +01:00
e0a0e69891 Merge pull request #1015 from TheGeogeo/fix/wine-timeout-overflow
run_wine_tests: reject overflowing timeouts (WINE-TIMEOUT-OVERFLOW)
2026-11-28 20:34:45 +01:00
88fb79ab30 Merge pull request #1845 from delysidemanYT1/wine-resource-lock-shape
WINE-RESOURCE-LOCK-SHAPE: Validate CTest resource locks before scheduling Wine tests
2026-11-28 20:29:21 +01:00
0ad0325b03 Merge pull request #1964 from lgr123/lgr123/wine-prefix-ownership
Keep Wine runner resources scoped to one prefix owner
2026-11-28 15:49:50 +01:00
0aa161d334 Merge pull request #1402 from Okachamie/tests/wine-warm-existing
run_wine_tests: warm an adopted persistent server (TEST-WINE-WARM-EXISTING)
2026-11-28 15:37:51 +01:00
b70bde278b run_wine_tests: reject overflowing process timeouts 2026-11-25 20:33:39 +01:00
59a51c2c79 run_wine_tests: retain results for repeated test names 2026-11-25 20:33:37 +01:00
7bb023788b Keep Wine runner resources scoped to one prefix owner 2026-11-25 10:51:22 -06:00
4d05364902 Honor CTest fixture cleanup ordering in the Wine runner 2026-11-25 10:24:21 -06:00
0f71fcbcb1 WINE-RESOURCE-LOCK-SHAPE: Validate CTest resource locks before scheduling Wine tests 2026-11-25 13:59:52 +01:00
8dd20f6a80 tests: warm an adopted persistent wineserver 2026-11-24 18:29:13 -05:00
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
3de809cf6d run_wine_tests: note and carry on when the drive cannot be mapped (WINE-DRIVE-MAP-OSERROR)
DriveMap.__enter__ handled only FileExistsError. A prefix whose dosdevices
folder cannot be written aborted the run with a traceback before any test.
Any OSError while mapping now sets a note and leaves the drive unmapped; the
scratch folder is removed as before.
Tests: the old drive-setup test asserted the traceback; it now checks the note,
the cleanup and that __enter__ does not raise. A second test covers a scratch
folder that cannot be created.
2026-11-24 16:11:09 +01: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