Skip to content

Gate tests and benchmarks subdirs on BUILD_TESTING / BUILD_BENCHMARKS#54

Merged
vadimskipin merged 1 commit into
mainfrom
vskipin/add-testing-gate
May 28, 2026
Merged

Gate tests and benchmarks subdirs on BUILD_TESTING / BUILD_BENCHMARKS#54
vadimskipin merged 1 commit into
mainfrom
vskipin/add-testing-gate

Conversation

@vadimskipin
Copy link
Copy Markdown
Collaborator

Switches enable_testing() to include(CTest) so BUILD_TESTING becomes a cache option (default ON via CTest). Wraps the four add_subdirectory(tests) calls in if(BUILD_TESTING) and the two add_subdirectory(benchmarks) calls in if(BUILD_BENCHMARKS) (new option, default ON). Default behavior is unchanged - silk's tests and benchmarks still build out of the box - but downstream embedders can now opt out by setting either variable OFF before consuming silk's subdirs.

Switches enable_testing() to include(CTest) so BUILD_TESTING becomes a
cache option (default ON via CTest). Wraps the four add_subdirectory(tests)
calls in if(BUILD_TESTING) and the two add_subdirectory(benchmarks) calls
in if(BUILD_BENCHMARKS) (new option, default ON). Default behavior is
unchanged - silk's tests and benchmarks still build out of the box - but
downstream embedders can now opt out by setting either variable OFF
before consuming silk's subdirs.
@vadimskipin vadimskipin merged commit 3ac994a into main May 28, 2026
14 checks passed
@vadimskipin vadimskipin deleted the vskipin/add-testing-gate branch May 28, 2026 19:05
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