README builds windows-release but runs the game tests from windows-debug #3

Open
opened 2026-11-26 20:48:04 +00:00 by github-bot · 0 comments
Owner

@⁠Bennet0k on GitHub · 2026-11-24 22:21 UTC · original

Following the three commands in the README’s local game-file build example configures and builds windows-release, then runs ctest --preset windows-debug -L "^game$".

I checked the preset mappings in CMakePresets.json. The two test presets use different configure presets, and the inherited binaryDir includes ${presetName}. That makes the final command look in out/windows-debug even though the preceding commands populated out/windows-release. On a machine with both trees, a developer could end up testing an older Debug build.

Suggested one-line fix in the Release example:

ctest --preset windows-release -L "^game$"

The earlier Debug/nogame example already uses a consistent preset. The equivalent commands in CLAUDE.md could also say which build tree the game tests are intended to exercise.

Verified by resolving the checked-in build and test presets. I did not run the Windows build or game-file tests.

**@⁠Bennet0k** on GitHub · 2026-11-24 22:21 UTC · [original](https://github.com/Kajcsi/G6Recomp/issues/3) Following the three commands in the README’s local game-file build example configures and builds `windows-release`, then runs `ctest --preset windows-debug -L "^game$"`. I checked the preset mappings in `CMakePresets.json`. The two test presets use different configure presets, and the inherited `binaryDir` includes `${presetName}`. That makes the final command look in `out/windows-debug` even though the preceding commands populated `out/windows-release`. On a machine with both trees, a developer could end up testing an older Debug build. Suggested one-line fix in the Release example: ```sh ctest --preset windows-release -L "^game$" ``` The earlier Debug/`nogame` example already uses a consistent preset. The equivalent commands in `CLAUDE.md` could also say which build tree the game tests are intended to exercise. Verified by resolving the checked-in build and test presets. I did not run the Windows build or game-file tests.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:48:04 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.