From: maier Date: Fri, 6 Dec 2013 13:58:10 +0000 (+0000) Subject: Testsuite: Reenable compiler version injection on non Linux platforms X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4df2ba461aba8ea72aa142d89e0323a313659290;p=dealii-svn.git Testsuite: Reenable compiler version injection on non Linux platforms git-svn-id: https://svn.dealii.org/trunk@31909 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/scripts/run_testsuite.cmake b/deal.II/cmake/scripts/run_testsuite.cmake index f4605d6760..0657ea3e30 100644 --- a/deal.II/cmake/scripts/run_testsuite.cmake +++ b/deal.II/cmake/scripts/run_testsuite.cmake @@ -582,27 +582,21 @@ 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 + +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. +" ) - IF(NOT "${_res}" STREQUAL "0") - MESSAGE(FATAL_ERROR " - \"sed\" failed. Bailing out. - " - ) - ENDIF() ENDIF() + IF(NOT "${_svn_WC_REVISION}" STREQUAL "") FILE(WRITE ${_path}/Update.xml "