Fail host CI when CTest finds no tests #30
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/JamesCicada--GTAVI-Recomp!30
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-30"
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?
@RavenCurseBurg on GitHub · 2026-11-26 05:28 UTC · original
RavenCurseBurg:ci/require-host-tests→main· +2 −2 · 1 files · 1 commits · openThe Windows/MSVC and Linux/GCC/Clang jobs can report success when CMake registers zero host tests. The pinned AnyPS5 job and the Windows build helper already treat an empty suite as an error. This adds the same CTest flag to the two host workflow commands.
I configured two Release build trees with CMake 3.21.4 and GCC 15.2 on Windows, then ran the commands extracted from the parent and patched workflow YAML against each. With
GTAVI_BUILD_TESTS=OFF, both parent commands printedNo tests were foundand exited 0. The patched commands exited 8. With tests enabled, both patched commands ran all three CTests and exited 0. CTest 3.21 option referenceAI-assisted with Codex + GPT-6.2 Astra (xhigh).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.