aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-10-21 11:40:09 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-10-21 11:40:51 -0400
commit265f4e249da104c964e15ab004b48ca1f47feec5 (patch)
tree1ab963c9edba6143d58515d5333ee6f5af68bc57 /CMakeLists.txt
parent744e47f9ce87ada87bbb5ba16170c341bab3c580 (diff)
downloadstasis-265f4e249da104c964e15ab004b48ca1f47feec5.tar.gz
Add BUILD_TESTING_RT build option
* The user can choose to (not) run the long scripted statis test(s)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
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}")