]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CTest: Do not try to manipulate xml submission files with sed 2825/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 14 Jul 2016 15:46:06 +0000 (10:46 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 14 Jul 2016 15:46:06 +0000 (10:46 -0500)
Due to this sed magic we might end up with two identical keys in
Configure.xml. Unfortunately, this terribly confuses CDash.

tests/run_testsuite.cmake

index d31bd451c342fd3b769679aee86876bc94d66bb6..4d0b2825edfbfe1bfadc1782118889a5c7b21f6e 100644 (file)
@@ -523,27 +523,6 @@ Unable to determine test submission files from TAG. Bailing out.
     )
 ENDIF()
 
-IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
-  #
-  # Only use the following sed command on GNU userlands:
-  #
-  # TODO: Come up with a more robust way to inject this that also works on
-  # BSD and Mac
-  #
-  FILE(GLOB _xml_files ${_path}/*.xml)
-  EXECUTE_PROCESS(COMMAND sed -i -e
-    s/CompilerName=\\"\\"/CompilerName=\\"${_compiler_name}\\"\\n\\tCompilerVersion=\\"${_compiler_version}\\"/g
-    ${_xml_files}
-    OUTPUT_QUIET RESULT_VARIABLE  _res
-    )
-  IF(NOT "${_res}" STREQUAL "0")
-    MESSAGE(FATAL_ERROR "
-  \"sed\" failed. Bailing out.
-  "
-      )
-  ENDIF()
-ENDIF()
-
 FILE(WRITE ${_path}/Update.xml
 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
 <Update mode=\"Client\" Generator=\"ctest-${CTEST_VERSION}\">

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.