v0.14.0
CTestScript.cmake
Go to the documentation of this file.
1 set(CTEST_PROJECT_NAME "MoFEM-UsersModules")
2 set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
3 set(CTEST_BUILD_CONFIGURATION "Debug")
4 
5 ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
6 
7 find_program(CTEST_COVERAGE_COMMAND NAMES gcov)
8 
9 set(CTEST_CONFIGURE_COMMAND "\"${CMAKE_COMMAND}\" -DCMAKE_BUILD_TYPE:STRING=${CTEST_BUILD_CONFIGURATION}")
10 set(CTEST_CONFIGURE_COMMAND "${CTEST_CONFIGURE_COMMAND} ${CTEST_BUILD_OPTIONS} -DWITHCOVERAGE=ON")
11 set(CTEST_CONFIGURE_COMMAND "${CTEST_CONFIGURE_COMMAND} \"-G${CTEST_CMAKE_GENERATOR}\"")
12 set(CTEST_CONFIGURE_COMMAND "${CTEST_CONFIGURE_COMMAND} \"${CTEST_SOURCE_DIRECTORY}\"")
13 
14 #Ctest time outr
15 set(CTEST_TEST_TIMEOUT 1200)
16 
17 # Perform the CDashTesting
18 ctest_start(${DASHBOARDTEST})
19 
20 set(CTEST_CUSTOM_MEMCHECK_IGNORE
21  ${CTEST_CUSTOM_MEMCHECK_IGNORE}
22  #compare
23 )
24 
25 ctest_configure()
26 ctest_build(TARGET checkout_CDashTesting)
27 ctest_build(TARGET update_users_modules)
28 ctest_build()
29 ctest_test()
30 if(CTEST_COVERAGE_COMMAND)
31  ctest_coverage(QUIET)
32 endif(CTEST_COVERAGE_COMMAND)
33 ctest_submit()