2020-12-20 15:57:37 -05:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2021-10-08 15:06:02 -04:00
|
|
|
@@ -60,10 +60,6 @@ ExternalProject_Add(BearSource
|
2020-12-20 15:57:37 -05:00
|
|
|
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
|
|
|
|
-DENABLE_UNIT_TESTS:BOOL=${ENABLE_UNIT_TESTS}
|
2021-10-08 15:06:02 -04:00
|
|
|
-DENABLE_FUNC_TESTS:BOOL=${ENABLE_FUNC_TESTS}
|
2020-12-20 15:57:37 -05:00
|
|
|
- TEST_BEFORE_INSTALL
|
|
|
|
- 1
|
|
|
|
- TEST_COMMAND
|
|
|
|
- ctest # or `ctest -T memcheck`
|
|
|
|
)
|
|
|
|
|
|
|
|
# Run the functional tests
|
2021-10-08 15:06:02 -04:00
|
|
|
@@ -77,12 +73,8 @@ if (ENABLE_FUNC_TESTS)
|
|
|
|
-DCMAKE_INSTALL_LIBDIR:PATH=${CMAKE_INSTALL_LIBDIR}
|
|
|
|
-DCMAKE_INSTALL_BINDIR:PATH=${CMAKE_INSTALL_BINDIR}
|
2020-12-20 15:57:37 -05:00
|
|
|
-DSTAGED_INSTALL_PREFIX:PATH=${STAGED_INSTALL_PREFIX}
|
|
|
|
- TEST_BEFORE_INSTALL
|
|
|
|
- 1
|
|
|
|
INSTALL_COMMAND
|
|
|
|
""
|
|
|
|
- TEST_COMMAND
|
|
|
|
- ctest --verbose
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|