Skip to content

build: drop the test suite from the serial and omp presets - #5

Merged
yingyue2030699 merged 1 commit into
mainfrom
cmake-presets-no-gtest
Aug 19, 2026
Merged

build: drop the test suite from the serial and omp presets#5
yingyue2030699 merged 1 commit into
mainfrom
cmake-presets-no-gtest

Conversation

@yingyue2030699

Copy link
Copy Markdown
Member

The serial and omp presets are for building the simulation programs, but they also configured and ran the GoogleTest suite, which made GoogleTest an effective prerequisite for the ordinary build path.

Both now set SLIMED_BUILD_TESTS=OFF, so tests/CMakeLists.txt is never added and find_package(GTest) never runs -- verified by the absence of any GTest entry in either build directory's CMakeCache.txt. Their workflow presets stop after the build step, and their test presets are removed.

The coverage preset is unchanged: coverage without tests is pointless, so it still builds and runs them and still needs GoogleTest.

SLIMED_BUILD_TESTS still defaults to ON, so a plain cmake -S . -B build-test includes the tests as before. The README's test instructions now use that directory rather than build/, which the serial preset populates without a test target.

The serial and omp presets are for building the simulation programs, but
they also configured and ran the GoogleTest suite, which made GoogleTest
an effective prerequisite for the ordinary build path.

Both now set SLIMED_BUILD_TESTS=OFF, so tests/CMakeLists.txt is never
added and find_package(GTest) never runs -- verified by the absence of
any GTest entry in either build directory's CMakeCache.txt. Their
workflow presets stop after the build step, and their test presets are
removed.

The coverage preset is unchanged: coverage without tests is pointless,
so it still builds and runs them and still needs GoogleTest.

SLIMED_BUILD_TESTS still defaults to ON, so a plain `cmake -S . -B
build-test` includes the tests as before. The README's test instructions
now use that directory rather than build/, which the serial preset
populates without a test target.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@yingyue2030699
yingyue2030699 merged commit 0c76a69 into main Aug 19, 2026
3 checks passed
@yingyue2030699
yingyue2030699 deleted the cmake-presets-no-gtest branch August 19, 2026 18:32
@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant