diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2024-10-22 11:04:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 11:04:17 -0400 |
commit | 7729d546d2dbda85ca1d86a913e97b51487355ba (patch) | |
tree | e9a0e7f9f2069ecd9e718dd66d3e11fa7a80722d /CMakeLists.txt | |
parent | 8edc87d51900ccf7d1d67ad3647a4b8fa2d9b7ae (diff) | |
parent | 30f48145d1a1c747c40f94e2a7314d4bdf61cf55 (diff) | |
download | stasis-7729d546d2dbda85ca1d86a913e97b51487355ba.tar.gz |
Merge pull request #63 from jhunkeler/update-tests
Update tests / Bug fixes
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index caed929..6558205 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,14 +26,30 @@ endif() add_subdirectory(src) +# Toggle extremely verbose output option(BUILD_TESTING_DEBUG OFF) if (BUILD_TESTING_DEBUG) add_compile_options(-DDEBUG) endif() + +# Toggle regression testing on/off +option(BUILD_TESTING_RT ON) + +# Toggle testing option(BUILD_TESTING OFF) +message(CHECK_START "Run unit tests") if (BUILD_TESTING) + message(CHECK_PASS "yes") enable_testing() + message(CHECK_START "Run regression tests") + if (BUILD_TESTING_RT) + message(CHECK_PASS "yes") + else() + message(CHECK_PASS "no") + endif() add_subdirectory(tests) +else() + message(CHECK_PASS "no") endif() set(SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_SYSCONFDIR}") |