-
Notifications
You must be signed in to change notification settings - Fork 1
/
.g4perf.cmake
59 lines (47 loc) · 1.8 KB
/
.g4perf.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
set(CTEST_BUILD_NAME "Geant4 Performance Monitor")
set(ENV{LANG} "C")
set(ENV{LC_ALL} "C")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "cdash.cern.ch")
set(CTEST_DROP_LOCATION "/submit.php?project=Geant4")
set(CTEST_DROP_SITE_CDASH TRUE)
set(CTEST_SOURCE_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
set(CTEST_BINARY_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/build)
set(CTEST_USE_LAUNCHERS 1)
set(CTEST_TEST_TIMEOUT 1200)
set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE "100000")
set(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE "100000")
if(NOT DEFINED CTEST_SITE)
site_name(CTEST_SITE)
endif()
if(NOT DEFINED CTEST_CONFIGURATION_TYPE)
set(CTEST_CONFIGURATION_TYPE RelWithDebInfo)
endif()
if(NOT DEFINED ENV{CTEST_PARALLEL_LEVEL})
cmake_host_system_information(RESULT CTEST_PARALLEL_LEVEL
QUERY NUMBER_OF_PHYSICAL_CORES)
endif()
if(DEFINED ENV{CMAKE_GENERATOR})
set(CTEST_CMAKE_GENERATOR $ENV{CMAKE_GENERATOR})
else()
execute_process(COMMAND ${CMAKE_COMMAND} --system-information
OUTPUT_VARIABLE CMAKE_SYSTEM_INFORMATION ERROR_VARIABLE ERROR)
if(ERROR)
message(FATAL_ERROR "Could not detect default CMake generator")
endif()
string(REGEX REPLACE ".+CMAKE_GENERATOR \"([-0-9A-Za-z ]+)\".*$" "\\1"
CTEST_CMAKE_GENERATOR "${CMAKE_SYSTEM_INFORMATION}")
endif()
set(CTEST_USE_LAUNCHERS 1)
set(CTEST_BUILD_OPTIONS -DBUILD_TESTING=ON $ENV{CTEST_BUILD_OPTIONS})
if(EXISTS ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt)
execute_process(COMMAND ${CMAKE_COMMAND} --build ${CTEST_BINARY_DIRECTORY} --target clean)
file(REMOVE ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt)
endif()
list(APPEND CTEST_NOTES_FILES ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt)
ctest_start(Experimental)
ctest_configure(OPTIONS "${CTEST_BUILD_OPTIONS}")
ctest_read_custom_files(${CTEST_BINARY_DIRECTORY})
ctest_build()
ctest_test()
ctest_submit()