Enhance CMake configuration for test suite options#4
Merged
ajeetsinghyadav merged 14 commits intomainfrom Feb 14, 2026
Merged
Conversation
Member
ajeetsinghyadav
commented
Feb 14, 2026
- Added a new option, VNE_LOGGING_TESTS, to control the inclusion of the vnelogging test suite, allowing it to be turned off when used as a submodule.
- Updated the test inclusion condition to check both BUILD_TESTS and VNE_LOGGING_TESTS, ensuring tests are only enabled when both options are set to ON.
- Added a new option, VNE_LOGGING_TESTS, to control the inclusion of the vnelogging test suite, allowing it to be turned off when used as a submodule. - Updated the test inclusion condition to check both BUILD_TESTS and VNE_LOGGING_TESTS, ensuring tests are only enabled when both options are set to ON.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the CMake configuration to provide fine-grained control over test suite inclusion when vnelogging is used as a submodule. It introduces a new CMake option VNE_LOGGING_TESTS that works alongside the existing BUILD_TESTS option, allowing parent projects to disable vnelogging tests while keeping their own tests enabled.
Changes:
- Added
VNE_LOGGING_TESTSoption (default: ON) to control vnelogging test suite inclusion - Updated test inclusion logic to require both
BUILD_TESTSandVNE_LOGGING_TESTSto be ON - Updated comment to clarify the dual-condition requirement for test building
- Introduced options for DEV and CI build presets in CMake, allowing for more flexible build configurations. - Updated CI workflow to utilize the new VNE_LOGGING_CI option, ensuring tests are enabled in CI builds while examples are disabled. - Added logic to apply build settings based on the selected preset, improving clarity and control over the build process.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.