4 set(CTEST_SOURCE_DIRECTORY ${US_SOURCE_DIR})
5 set(CTEST_BINARY_DIRECTORY
"${CTEST_DASHBOARD_ROOT}/${CTEST_PROJECT_NAME}_${CTEST_DASHBOARD_NAME}")
7 #if(NOT CTEST_BUILD_NAME)
8 # set(CTEST_BUILD_NAME "${CMAKE_SYSTEM}_${CTEST_COMPILER}_${CTEST_DASHBOARD_NAME}")
11 ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
13 ctest_start(
"Experimental")
15 if(NOT EXISTS "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt
")
16 file(WRITE "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt
" "${CTEST_INITIAL_CACHE}
")
19 ctest_configure(RETURN_VALUE res)
21 message(FATAL_ERROR "CMake configure error
")
23 ctest_build(RETURN_VALUE res)
25 message(FATAL_ERROR "CMake build error
")
28 ctest_test(RETURN_VALUE res PARALLEL_LEVEL ${CTEST_PARALLEL_LEVEL})
34 if(WITH_MEMCHECK AND CTEST_MEMORYCHECK_COMMAND)
38 if(WITH_COVERAGE AND CTEST_COVERAGE_COMMAND)
46 function(create_initial_cache var _shared _threading _autoload)
49 US_BUILD_TESTING:BOOL=ON
50 US_BUILD_SHARED_LIBS:BOOL=${_shared}
51 US_ENABLE_THREADING_SUPPORT:BOOL=${_threading}
52 US_ENABLE_AUTOLOADING_SUPPORT:BOOL=${_autoload}
55 set(_initial_cache "${_initial_cache} US_BUILD_EXAMPLES:BOOL=ON
59 set(${var} ${_initial_cache} PARENT_SCOPE)
62 set(CTEST_DASHBOARD_NAME "shared
")
64 set(CTEST_DASHBOARD_NAME "static")
68 set(CTEST_DASHBOARD_NAME "${CTEST_DASHBOARD_NAME}-threading
")
71 set(CTEST_DASHBOARD_NAME "${CTEST_DASHBOARD_NAME}-autoloading
")
74 set(CTEST_DASHBOARD_NAME "${CTEST_DASHBOARD_NAME} (${_generator})
" PARENT_SCOPE)
78 #=========================================================
80 set(CTEST_PROJECT_NAME CppMicroServices)
82 if(NOT CTEST_PARALLEL_LEVEL)
83 set(CTEST_PARALLEL_LEVEL 1)
87 # SHARED THREADING AUTOLOAD
98 if(NOT US_CMAKE_GENERATOR)
99 set(US_CMAKE_GENERATOR "Unix Makefiles
")
102 foreach (_generator ${US_CMAKE_GENERATOR})
103 set(CTEST_CMAKE_GENERATOR ${_generator})
104 foreach(i ${US_BUILD_CONFIGURATION})
105 create_initial_cache(CTEST_INITIAL_CACHE ${config${i}})
106 message("Testing build configuration: ${CTEST_DASHBOARD_NAME}
")
Follow Up Storage - Class to facilitate loading/accessing structured follow-up data.