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.
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).
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.
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.
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.
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.
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.
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.
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.
--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.
scripts/run_wine_tests.py is what runtime.yml's wine job runs, and it was the
only script in the tree with no test. tests/test_run_wine_tests.py drives it
with the Python interpreter as the "wine" command and tiny exit-code scripts
as build artifacts, so every status and exit code is checked without Wine.
That exposed three real defects, fixed here: a --tests file that is not JSON
(and JSON that is not ctest --show-only=json-v1 output) ended in a
JSONDecodeError/AttributeError before any test ran; a wine command that cannot
be started ended in FileNotFoundError out of subprocess.run, losing every
result; and WILL_FAIL/ctest booleans were read with Python truthiness, so the
JSON string "0" inverted the check. --timeout now refuses 0 and negatives,
which previously raised ValueError inside subprocess.run.
Negative control on main: 1 failure and 17 errors. With the change: 24/24.
Standard library only, no Wine, no game data.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
A matrix entry installs winehq-stable from WineHQ's repository next to
Ubuntu's Wine 9.0, closer to what Proton users run. The job summary
names the Wine version (run_wine_tests.py --label).
test_pe_loader_bounds maps images at 0x140000000 like loader_test, so it
links with GTA6RT_HOST_BASE too (under Wine every case was rejected with
"preferred base is taken").
run_wine_tests.py: a test whose command is a tool of the Windows runner
(gameinput's cmake -P, d3d12_trace's python) is reported as skipped with
that reason instead of failing as missing from the artifact.
The Windows job uploads its executables, DLLs and the CTest list; a new
wine job runs them with scripts/run_wine_tests.py on ubuntu-24.04
(Wine, Xvfb, llvmpipe). The loader tests and gta6rt --run tiny_game must
pass; the other tests are reported in the job summary.