]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update
authorMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 18 Sep 2013 17:39:57 +0000 (17:39 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 18 Sep 2013 17:39:57 +0000 (17:39 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30804 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/CTestConfig.cmake
deal.II/run_testsuite.cmake

index b76fa0f08d2172aa966867d65cc1549bed4bf8c8..24cd0fc423f026763f58f0aee533f2467ad901f3 100644 (file)
@@ -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")
-
index 9a8a13f4c79b2afc96c9b58d9b3a8727b5494424..961a121985f0a01459c0b9baf95a2ee045f795e1 100644 (file)
@@ -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()
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.