mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #1384] Review/1348 ctest dependency tests #1414
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#1414
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/1384
Author: @xel1uz
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:review/1348-ctest-dependency-tests📝 Commits (2)
e0c8c85WINE-CTEST-DEPENDENCY-LISTS: Validate CTest dependency lists before building the Wine test graph8be6484Cover malformed CTest dependency lists before launching Wine tests📊 Changes
2 files changed (+15 additions, -0 deletions)
View changed files
📝
scripts/run_wine_tests.py(+2 -0)📝
tests/test_run_wine_tests.py(+13 -0)📄 Description
Claimed in the coordination issue as: WINE-CTEST-DEPENDENCY-LISTS (original claim by @delysidemanYT1).
Depends on: #1348. This branch includes @delysidemanYT1's input validation. The follow-up commit adds regression coverage.
What and why
The Wine runner reads
DEPENDS,FIXTURES_SETUP, andFIXTURES_REQUIREDfrom CTest's JSON inventory. Each property must be a list of strings. Malformed values could reach the dependency graph, where a string could be treated as individual characters or a non-iterable value could raise an exception.The new test supplies four invalid values for each property:
"setup",null,7, and["setup", 7]. For all 12 combinations, it checks that the runner exits with code 2, prints the invalid-inventory diagnostic, and stops before setting up a drive mapping or launching a test.Tested
4a50cafc, the new test exposed all 12 cases: six assertion failures and six errors.8be6484f, all 12 subcases passed.python -I tests/test_run_wine_tests.pyon Windows with Python 3.14.6: 55 passed, 9 skipped, 0 failed. The tests used synthetic CTest input; Wine itself was not run.git diff --checkandscripts/check_no_game_data.pypassed for both changed files.GPUs tested: n/a (runner input validation).
AI-assisted: yes, OpenAI Codex.
Checklist
mainat28a32e19.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.