Fail host CI when CTest finds no tests #30

Open
github-bot wants to merge 1 commit from github-bot/gh-30 into main AGit
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-26 05:28 UTC · original
RavenCurseBurg:ci/require-host-tests → main · +2 −2 · 1 files · 1 commits · open

The 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 printed No tests were found and exited 0. The patched commands exited 8. With tests enabled, both patched commands ran all three CTests and exited 0. CTest 3.21 option reference

AI-assisted with Codex + GPT-6.2 Astra (xhigh).

**@⁠RavenCurseBurg** on GitHub · 2026-11-26 05:28 UTC · [original](https://github.com/JamesCicada/GTAVI-Recomp/pull/30) `RavenCurseBurg:ci/require-host-tests` → `main` · +2 −2 · 1 files · 1 commits · open The 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 printed `No tests were found` and exited 0. The patched commands exited 8. With tests enabled, both patched commands ran all three CTests and exited 0. [CTest 3.21 option reference](https://cmake.org/cmake/help/v3.21/manual/ctest.1.html#options) AI-assisted with Codex + GPT-6.2 Astra (xhigh).
AI-assisted with Codex + GPT-6.2 Astra (xhigh).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:44:45 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/30/head:github-bot/gh-30'
git switch 'github-bot/gh-30'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-30'
git switch 'github-bot/gh-30'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-30'
git switch 'github-bot/gh-30'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-30'
git switch 'main'
git merge --squash 'github-bot/gh-30'
git switch 'main'
git merge --ff-only 'github-bot/gh-30'
git switch 'main'
git merge 'github-bot/gh-30'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.