mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #2199] tests: ignore commented CMake registrations when checking CTest coverage #2203
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#2203
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/2199
Author: @EdenBendheim
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:ubiq/ctest-registration-comments📝 Commits (1)
6deaf03tests: ignore CMake comments in CTest registration checks (TEST-CTEST-REGISTRATION-COMMENTS)📊 Changes
1 file changed (+61 additions, -3 deletions)
View changed files
📝
tests/test_ctest_registration.py(+61 -3)📄 Description
Claimed in the coordination issue as: TEST-CTEST-REGISTRATION-COMMENTS (claim)
Commenting out
add_test(...)left the registration checker green for a built executable. In a throwaway CMake project,ctest -Nlisted zero tests while the checker reported zero missing registrations. The checker now strips CMake line and bracket comments before scanning declarations and skip properties. It preserves literal#characters in quoted, escaped and bracket arguments.Three regression cases failed on main
a73a57e13. With this change, all 10 registration tests pass on Python 3.12.14 and 3.14.3 on macOS, and the checker flags the omitted executable from the CMake fixture. Compile, diff and changed-file game-data checks passed. Simulated merge with #1418 was clean.GPUs tested: n/a. All tests used synthetic inputs.
AI-assisted: yes. Created with gpt-6.2-astra in Codex.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.