Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[Cmake] Fixed wrong set() syntax in cmake files
[simgrid.git] / buildtools / Cmake / CTestConfig.cmake
1 # Configure CTest. For details, see:
2 # http://www.cmake.org/Wiki/CMake_Testing_With_CTest#Customizing_CTest
3
4 if(APPLE)
5   SET(BUILDNAME "APPLE" CACHE INTERNAL "Buildname" FORCE)
6 else()
7   SET(BUILDNAME "UNIX" CACHE INTERNAL "Buildname" FORCE)
8   if(WIN32)
9     SET(BUILDNAME "WINDOWS" CACHE INTERNAL "Buildname" FORCE)
10   endif()
11 endif()
12
13   set(DART_TESTING_TIMEOUT "300") #TIMEOUT FOR EACH TEST
14
15 if(enable_compile_warnings AND enable_compile_optimizations)
16   SET(BUILDNAME "FULL_FLAGS" CACHE INTERNAL "Buildname" FORCE)
17 endif()
18
19 if(HAVE_GTNETS)
20   SET(BUILDNAME "GTNETS" CACHE INTERNAL "Buildname" FORCE)
21 endif()
22
23 if(HAVE_MC)
24   SET(BUILDNAME "MODEL-CHECKING" CACHE INTERNAL "Buildname" FORCE)
25 endif()
26
27 if(enable_memcheck)
28   SET(BUILDNAME "MEMCHECK" CACHE INTERNAL "Buildname" FORCE)
29 endif()
30
31 set(osname ${CMAKE_SYSTEM_NAME})
32 set(cpu ${CMAKE_SYSTEM_PROCESSOR})
33 set(DISTRIB2 ${CMAKE_SYSTEM_VERSION})
34
35 SET(SITE "${osname}_${DISTRIB2}_${cpu}")
36 SET(CTEST_SITE "${osname}_${DISTRIB2}_${cpu}")
37 SET(CTEST_PROJECT_NAME "${PROJECT_NAME}")
38 SET(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE "3000000")
39 SET(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE "3000000")
40
41 set(PIPOL_IMAGE $ENV{PIPOL_IMAGE})
42 if(NOT ${PIPOL_IMAGE} MATCHES "\n")
43   set(SITE ${PIPOL_IMAGE})
44 endif()
45
46 set(PATTERN_CTEST_IGNORED "")
47 if(enable_coverage)
48     set(PATTERN_CTEST_IGNORED 
49       "/tools/"
50       "/buildtools/"
51       "/include/"
52       "/teshsuite/"
53       "/src/bindings/"
54     )
55     if(NOT release)
56        set(PATTERN_CTEST_IGNORED 
57         ${PATTERN_CTEST_IGNORED}
58         "/examples/"
59         )
60     endif()
61 endif()
62
63 CONFIGURE_FILE(${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/CTestCustom.cmake ${CMAKE_BINARY_DIR}/CTestCustom.cmake @ONLY)