1 # Configure CTest. For details, see:
2 # http://www.cmake.org/Wiki/CMake_Testing_With_CTest#Customizing_CTest
4 #Get the hostname of current machine :
5 exec_program(${HOSTNAME_CMD} OUTPUT_VARIABLE HOSTNAME)
6 set(SITE "${HOSTNAME}")
7 MARK_AS_ADVANCED(HOSTNAME_CMD)
9 #Get the system information of current machine
10 macro(getuname name flag)
11 exec_program("${UNAME}" ARGS "${flag}" OUTPUT_VARIABLE "${name}")
13 MARK_AS_ADVANCED(UNAME)
15 exec_program("${CAT}" ARGS "version" OUTPUT_VARIABLE VERSION)
17 if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
19 else(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
20 #Try to get the distrib
21 exec_program("${CAT}" ARGS " /etc/issue" OUTPUT_VARIABLE DISTRIB)
23 STRING(REPLACE " \\n \\l" "" DISTRIB2 ${DISTRIB})
24 endif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
33 SET(BUILDNAME "${osname}_${DISTRIB2}_${cpu}")
34 SET(CTEST_SITE "${node}")
35 SET(CTEST_PROJECT_NAME "${PROJECT_NAME}")
36 SET(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE "3000000")
37 SET(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE "3000000")