]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Testsuite: Do not write revision.log, this is now done in setup_git.cmake
authorMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 2 Jan 2015 01:58:32 +0000 (02:58 +0100)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Sat, 3 Jan 2015 14:56:09 +0000 (15:56 +0100)
tests/run_testsuite.cmake

index 1bc5a9a6ccc8e4678a5c78e41807982830a78be1..7339eaa1d5bb633aef5c381424dfad9bd906a0ee 100644 (file)
@@ -1,6 +1,6 @@
 ## ---------------------------------------------------------------------
 ##
-## Copyright (C) 2013 - 2014 by the deal.II authors
+## Copyright (C) 2013 - 2015 by the deal.II authors
 ##
 ## This file is part of the deal.II library.
 ##
@@ -335,7 +335,7 @@ IF(NOT GIT_FOUND)
 ENDIF()
 
 EXECUTE_PROCESS(
-   COMMAND ${GIT_EXECUTABLE} log -n 1 --pretty=format:"%H %h %ae"
+   COMMAND ${GIT_EXECUTABLE} log -n 1 --pretty=format:"%h"
    WORKING_DIRECTORY ${CTEST_SOURCE_DIRECTORY}
    OUTPUT_VARIABLE _git_WC_INFO
    RESULT_VARIABLE _result
@@ -346,14 +346,8 @@ IF(NOT ${_result} EQUAL 0)
   MESSAGE(FATAL_ERROR "\nCould not retrieve git information. Bailing out.\n")
 ENDIF()
 
-STRING(REGEX REPLACE "^\"([^ ]+) ([^ ]+) ([^\"]+)\""
-         "\\1" _git_WC_REV "${_git_WC_INFO}")
-
-STRING(REGEX REPLACE "^\"([^ ]+) ([^ ]+) ([^\"]+)\""
-         "\\2" _git_WC_SHORTREV "${_git_WC_INFO}")
-
-STRING(REGEX REPLACE "^\"([^ ]+) ([^ ]+) ([^\"]+)\""
-         "\\3" _git_WC_AUTHOR "${_git_WC_INFO}")
+STRING(REGEX REPLACE "^\"([^ ]+)\""
+         "\\1" _git_WC_SHORTREV "${_git_WC_INFO}")
 
 EXECUTE_PROCESS(
    COMMAND ${GIT_EXECUTABLE} symbolic-ref HEAD
@@ -366,21 +360,6 @@ EXECUTE_PROCESS(
 STRING(REGEX REPLACE "refs/heads/" ""
   _git_WC_BRANCH "${_git_WC_BRANCH}")
 
-#
-# Write revision log:
-#
-
-FILE(WRITE ${CTEST_BINARY_DIRECTORY}/revision.log
-"###
-#
-#  Git information:
-#    Branch: ${_git_WC_BRANCH}
-#    Commit: ${_git_WC_REV}
-#    Author: ${_git_WC_AUTHOR}
-#
-###"
-  )
-
 IF(NOT "${_git_WC_BRANCH}" STREQUAL "")
   SET(CTEST_BUILD_NAME "${CTEST_BUILD_NAME}-${_git_WC_BRANCH}")
 ENDIF()

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.