Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use correct type for variables, and avoid loosing precision.
[simgrid.git] / tools / 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 if(NOT enable_memcheck)
14   set(DART_TESTING_TIMEOUT "500") #TIMEOUT FOR EACH TEST
15 else()
16   set(DART_TESTING_TIMEOUT "3000") #TIMEOUT FOR EACH TEST
17 endif()
18
19 if(enable_compile_warnings AND enable_compile_optimizations)
20   SET(BUILDNAME "FULL_FLAGS" CACHE INTERNAL "Buildname" FORCE)
21 endif()
22
23 if(SIMGRID_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(PATTERN_CTEST_IGNORED "")
42 if(enable_coverage)
43     set(PATTERN_CTEST_IGNORED
44       "/tools/"
45       "/buildtools/"
46       "/include/"
47       "/teshsuite/"
48       "/src/bindings/"
49       "/examples/"
50     )
51 endif()
52
53 CONFIGURE_FILE(${CMAKE_HOME_DIRECTORY}/tools/cmake/CTestCustom.cmake ${CMAKE_BINARY_DIR}/CTestCustom.cmake @ONLY)