]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Update CTest configuration 8344/head
authorMatthias Maier <tamiko@43-1.org>
Fri, 5 Jul 2019 12:43:59 +0000 (07:43 -0500)
committerMatthias Maier <tamiko@43-1.org>
Fri, 5 Jul 2019 12:49:17 +0000 (07:49 -0500)
 * Change server name to the new variant ctest.43-1.org

 * Use the CTEST_UPDATE mechanism instead of handwriting an Update.xml.
   This is necessary for cdash-2.6.0 support...

CTestConfig.cmake
tests/run_testsuite.cmake

index 034e3820e0a679951129e24fe26f1e07c80f5d3f..ffaada9e6524c707b0bd72a730268dd788fcb5be 100644 (file)
 SET(CTEST_PROJECT_NAME "deal.II")
 
 SET(CTEST_DROP_METHOD "http")
-SET(CTEST_DROP_SITE "cdash.kyomu.43-1.org")
+SET(CTEST_DROP_SITE "cdash.43-1.org")
 SET(CTEST_DROP_LOCATION "/submit.php?project=deal.II")
 SET(CTEST_DROP_SITE_CDASH TRUE)
 
+#
+# We use the CTEST_UPDATE routine to query information about the repository
+# but we don't want to actually perform an update. Thus, replace the update
+# by a noop:
+#
+SET(CTEST_GIT_COMMAND "git")
+SET(CTEST_UPDATE_VERSION_ONLY true)
+
 SET(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS   100)
 SET(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 300)
 
index 688ae9da65007398b46414aaecb10b1c453a37e6..45ca1211af83b527d4cc52764fd946207565180f 100644 (file)
@@ -504,6 +504,9 @@ ENDIF()
 
 CTEST_START(Experimental TRACK ${TRACK})
 
+MESSAGE("-- Running CTEST_UPDATE() to query git information")
+CTEST_UPDATE(SOURCE ${CTEST_SOURCE_DIRECTORY})
+
 MESSAGE("-- Running CTEST_CONFIGURE()")
 CTEST_CONFIGURE(OPTIONS "${_options}" RETURN_VALUE _res)
 
@@ -574,18 +577,6 @@ Unable to determine test submission files from TAG. Bailing out.
     )
 ENDIF()
 
-FILE(WRITE ${_path}/Update.xml
-"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
-<Update mode=\"Client\" Generator=\"ctest-${CTEST_VERSION}\">
-<Site>${CTEST_SITE}</Site>
-<BuildName>${CTEST_BUILD_NAME}</BuildName>
-<BuildStamp>${_tag}-${TRACK}</BuildStamp>
-<UpdateType>GIT</UpdateType>
-<Revision>${_git_WC_SHORTREV}</Revision>
-<Path>${_git_WC_BRANCH}</Path>
-</Update>"
-  )
-
 #
 # And finally 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.