From: Matthias Maier Date: Wed, 18 Sep 2013 17:39:57 +0000 (+0000) Subject: Update X-Git-Tag: v8.1.0~570^2~286 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5eb8ba4df8a3a141e050dacdce48c0f54829b02;p=dealii.git Update git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30804 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/CTestConfig.cmake b/deal.II/CTestConfig.cmake index b76fa0f08d..24cd0fc423 100644 --- a/deal.II/CTestConfig.cmake +++ b/deal.II/CTestConfig.cmake @@ -44,18 +44,3 @@ SET(CTEST_CUSTOM_COVERAGE_EXCLUDE "/contrib" ) -SET(CTEST_USE_LAUNCHERS 1) - - -######################################################################## -# # -# Site and Build configuration: # -# # -######################################################################## - -FIND_PROGRAM(HOSTNAME_COMMAND NAMES hostname) -EXEC_PROGRAM(${HOSTNAME_COMMAND} OUTPUT_VARIABLE _hostname) -SET(CTEST_SITE "${_hostname}") - -SET(CTEST_BUILD_NAME "${CMAKE_SYSTEM}-${CMAKE_SYSTEM_PROCESSOR}-todo") - diff --git a/deal.II/run_testsuite.cmake b/deal.II/run_testsuite.cmake index 9a8a13f4c7..961a121985 100644 --- a/deal.II/run_testsuite.cmake +++ b/deal.II/run_testsuite.cmake @@ -114,6 +114,62 @@ ENDIF() MESSAGE("-- NO_JOBS: ${NO_JOBS}") + +# +# CTEST_SITE: +# + +FIND_PROGRAM(HOSTNAME_COMMAND NAMES hostname) +EXEC_PROGRAM(${HOSTNAME_COMMAND} OUTPUT_VARIABLE _hostname) +SET(CTEST_SITE "${_hostname}") + +# +# CTEST_UPDATE_COMMAND +# + +FIND_PACKAGE(Subversion QUIET) +IF(SUBVERSION_FOUND) + SET(CTEST_UPDATE_COMMAND ${Subversion_SVN_EXECUTABLE}) +ENDIF() + +# +# CTEST_BUILD_NAME +# + +SET(CTEST_BUILD_NAME + "${CMAKE_SYSTEM_PROCESSOR}-${CMAKE_SYSTEM_NAME}" + ) + +# Append compiler information: +IF(EXISTS ${CTEST_BINARY_DIRECTORY}/detailed.log) + FILE(STRINGS ${CTEST_BINARY_DIRECTORY}/detailed.log _compiler_id + REGEX "CMAKE_CXX_COMPILER:" + ) + STRING(REGEX REPLACE + "^.*CMAKE_CXX_COMPILER: \(.*\) on platform.*$" "\\1" + _compiler_id ${_compiler_id} + ) + STRING(REGEX REPLACE " " "-" _compiler_id ${_compiler_id}) + IF( NOT "${_compiler_id}" STREQUAL "" OR + _compiler_id MATCHES "CMAKE_CXX_COMPILER" ) + SET(CTEST_BUILD_NAME "${CTEST_BUILD_NAME}-${_compiler_id}") + ENDIF() +ENDIF() + +IF(NOT TRACK MATCHES "Foobar") #TODO: Exclude Continuous TRACKS + #Append subversion revision: + IF(SUBVERSION_FOUND) + EXECUTE_PROCESS(COMMAND ${Subversion_SVN_EXECUTABLE} info + ${CTEST_SOURCE_DIRECTORY} OUTPUT_VARIABLE _tmp RESULT_VARIABLE _result + ) + IF(${_result} EQUAL 0) + Subversion_WC_INFO(${CTEST_SOURCE_DIRECTORY} _svn) + SET(CTEST_BUILD_NAME "${CTEST_BUILD_NAME}-r${_svn_WC_REVISION}") + ENDIF() + ENDIF() +ENDIF() + + # # Finalize: # @@ -124,6 +180,7 @@ SET(CTEST_NOTES_FILES ) + ######################################################################## # # # Run the testsuite: # @@ -145,6 +202,11 @@ IF("${TRACK}" STREQUAL "Experimental") CTEST_START(Experimental TRACK Experimental) + # quick test: + #IF(NOT "${CTEST_UPDATE_COMMAND}" STREQUAL "") + # CTEST_UPDATE() + #ENDIF() + IF(NOT "${CONFIG_FILE}" STREQUAL "") CTEST_CONFIGURE(OPTIONS -C"${CONFIG_FILE}") ELSE() @@ -154,7 +216,7 @@ IF("${TRACK}" STREQUAL "Experimental") CTEST_BUILD(TARGET setup_test) # setup tests CTEST_BUILD(TARGET) # builds the "all" target - CTEST_TEST(PARALLEL_LEVEL ${DEAL_II_NO_JOBS}) + CTEST_TEST(PARALLEL_LEVEL ${NO_JOBS}) CTEST_SUBMIT()