Run the Windows helper’s tests when reusing a tools-only build #16

Manually merged
github merged 1 commit from gh-pr/16/head into gh-pr/16/base 2026-11-26 20:44:23 +00:00
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 05:40 UTC · original
RavenCurseBurg:fix/windows-helper-tests → main · +2 −2 · 1 files · 1 commits · merged 2026-11-25 12:51 UTC

scripts/build-windows.bat promises to build and run the tests. If build/windows was first configured with GTAVI_BUILD_TESTS=OFF, the helper reused that setting. CTest reported No tests were found!!! and returned zero, so the script printed OK: Release build and tests passed.

The helper now enables GTAVI_BUILD_TESTS when it configures the build and passes --no-tests=error to CTest. Other CMake entry points still support tools-only builds.

Verification

A Windows runner using MSVC 19.52 and Ninja ran the original script against a tools-only cache and reproduced the false success. The fixed script reused that same cache, built the tests, and ran both gtavi_tests and gtavi_probe_mounts successfully. The job log contains both outcomes. Windows comparison run

I also verified on Windows with MinGW GCC 15.2 that the stricter CTest invocation failed on the empty test inventory and passed after both tests were restored.

All six standard CI jobs also passed on the PR commit aa546d1. Fork CI run

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

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 05:40 UTC · [original](https://github.com/JamesCicada/GTAVI-Recomp/pull/16) `RavenCurseBurg:fix/windows-helper-tests` → `main` · +2 −2 · 1 files · 1 commits · merged 2026-11-25 12:51 UTC `scripts/build-windows.bat` promises to build and run the tests. If `build/windows` was first configured with `GTAVI_BUILD_TESTS=OFF`, the helper reused that setting. CTest reported `No tests were found!!!` and returned zero, so the script printed `OK: Release build and tests passed`. The helper now enables `GTAVI_BUILD_TESTS` when it configures the build and passes `--no-tests=error` to CTest. Other CMake entry points still support tools-only builds. ### Verification A Windows runner using MSVC 19.52 and Ninja ran the original script against a tools-only cache and reproduced the false success. The fixed script reused that same cache, built the tests, and ran both `gtavi_tests` and `gtavi_probe_mounts` successfully. The job log contains both outcomes. [Windows comparison run](https://github.com/RavenCurseBurg/GTAVI-Recomp/actions/runs/45551970433/job/138995006665) I also verified on Windows with MinGW GCC 15.2 that the stricter CTest invocation failed on the empty test inventory and passed after both tests were restored. All six standard CI jobs also passed on the PR commit `aa546d1`. [Fork CI run](https://github.com/RavenCurseBurg/GTAVI-Recomp/actions/runs/45555215373) AI-assisted with Codex + GPT-6.2 Astra (xhigh).
Explicitly enable the suite when configuring the Windows build helper and make CTest fail if it discovers no tests.

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:20 +00:00
github manually merged commit aa546d1f12 into gh-pr/16/base 2026-11-26 20:44:23 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.