Changeset: cdbc5b6125a9 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cdbc5b6125a9
Modified Files:
        cmake/monetdb-options.cmake
        ctest/CMakeLists.txt
        ctest/cmake/CMakeLists.txt
Branch: mbedded
Log Message:

add option and disable cmake unittests by default


diffs (37 lines):

diff --git a/cmake/monetdb-options.cmake b/cmake/monetdb-options.cmake
--- a/cmake/monetdb-options.cmake
+++ b/cmake/monetdb-options.cmake
@@ -141,3 +141,7 @@ option(WITH_ZLIB
 option(CMAKE_SUMMARY
   "Show a summary of the cmake configuration (for debug purposes)"
   OFF)
+
+option(CMAKE_UNITTESTS
+  "Build and run the unittest for the build system"
+  OFF)
diff --git a/ctest/CMakeLists.txt b/ctest/CMakeLists.txt
--- a/ctest/CMakeLists.txt
+++ b/ctest/CMakeLists.txt
@@ -10,7 +10,9 @@ if(BUILD_TESTING)
   add_test(NAME TestEcho
     COMMAND ${CMAKE_COMMAND} -E echo 'MonetDB Testing')
 
-  add_subdirectory(cmake)
+  if(CMAKE_UNITTESTS)
+    add_subdirectory(cmake)
+  endif()
   add_subdirectory(monetdb5)
   add_subdirectory(tools)
 endif()
diff --git a/ctest/cmake/CMakeLists.txt b/ctest/cmake/CMakeLists.txt
--- a/ctest/cmake/CMakeLists.txt
+++ b/ctest/cmake/CMakeLists.txt
@@ -6,6 +6,8 @@
 # Copyright 1997 - July 2008 CWI, August 2008 - 2020 MonetDB B.V.
 #]]
 
+# For now these tests only work on special docker containers.
+
 project(MonetDB-unittest LANGUAGES C)
 
 include(os_release_info)
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to