[Cmake-commits] CMake branch, next, updated. v2.8.1-1249-g09e6b6d

cmake-commits at cmake.org cmake-commits at cmake.org
Thu May 27 16:46:59 EDT 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  09e6b6d06ec19e7fda561160d4f6ca20602124df (commit)
       via  806eaa290ca4fa6a5aa623068974118c889a7c12 (commit)
      from  cfb1b413f7e67fead5574db0e86a5449d4c32a7e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=09e6b6d06ec19e7fda561160d4f6ca20602124df
commit 09e6b6d06ec19e7fda561160d4f6ca20602124df
Merge: cfb1b41 806eaa2
Author: David Cole <david.cole at kitware.com>
Date:   Thu May 27 16:45:55 2010 -0400

    Merge branch 'add-git-to-CheckSourceTreeTest' into next


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=806eaa290ca4fa6a5aa623068974118c889a7c12
commit 806eaa290ca4fa6a5aa623068974118c889a7c12
Author: David Cole <david.cole at kitware.com>
Date:   Thu May 27 16:43:28 2010 -0400

    Further refinements to the CheckSourceTree test.
    
    Echo results of calling git status before exiting with
    an error. Add one special case so that the test may pass
    on the dashmacmini2 continuous dashboard, despite a 'git
    status' non-zero return code. More logic like this may
    be required. I will re-evaluate based on tomorrow's
    nightly dashboard runs.

diff --git a/Tests/CMakeTests/CheckSourceTreeTest.cmake.in b/Tests/CMakeTests/CheckSourceTreeTest.cmake.in
index 82207e4..1e99b99 100644
--- a/Tests/CMakeTests/CheckSourceTreeTest.cmake.in
+++ b/Tests/CMakeTests/CheckSourceTreeTest.cmake.in
@@ -99,6 +99,15 @@ if(is_cvs_checkout AND CVS_EXECUTABLE)
   message("This is a cvs checkout, using cvs to verify source tree....")
   message("")
 
+  execute_process(COMMAND ${CVS_EXECUTABLE} --version
+    WORKING_DIRECTORY ${CMake_SOURCE_DIR}
+    OUTPUT_VARIABLE version_output
+    OUTPUT_STRIP_TRAILING_WHITESPACE)
+  message("=== output of 'cvs --version' ===")
+  message("${version_output}")
+  message("=== end output ===")
+  message("")
+
   file(READ "${CMake_SOURCE_DIR}/CVS/Root" contents)
   message("=== content of CVS/Root ===")
   message("${contents}")
@@ -127,6 +136,15 @@ if(is_git_checkout AND GIT_EXECUTABLE)
   message("This is a git checkout, using git to verify source tree....")
   message("")
 
+  execute_process(COMMAND ${GIT_EXECUTABLE} --version
+    WORKING_DIRECTORY ${CMake_SOURCE_DIR}
+    OUTPUT_VARIABLE version_output
+    OUTPUT_STRIP_TRAILING_WHITESPACE)
+  message("=== output of 'git --version' ===")
+  message("${version_output}")
+  message("=== end output ===")
+  message("")
+
   execute_process(COMMAND ${GIT_EXECUTABLE} branch -a
     WORKING_DIRECTORY ${CMake_SOURCE_DIR}
     OUTPUT_VARIABLE git_branch_output
@@ -159,15 +177,20 @@ if(cmd)
 
   set(ENV{HOME} "${original_ENV_HOME}")
 
-  if(NOT rv STREQUAL 0)
-    message(FATAL_ERROR "error: ${cmd} attempt failed... (see output above)")
-  endif()
-
   message("Results of running ${cmd}")
   message("rv='${rv}'")
   message("ov='${ov}'")
   message("ev='${ev}'")
   message("")
+
+  if(NOT rv STREQUAL 0)
+    if(is_git_checkout AND (rv STREQUAL "1") AND ("${version_output}" STREQUAL "git version 1.5.5"))
+      # git 1.5.5 returns "1" from a "nothing is changed" git status call...
+      # (perhaps broader logic is required here... we'll see on tomorrow's dashboard...)
+    else()
+      message(FATAL_ERROR "error: ${cmd} attempt failed... (see output above)")
+    endif()
+  endif()
 else()
   message(FATAL_ERROR "error: no COMMAND to run to analyze source tree...")
 endif()

-----------------------------------------------------------------------

Summary of changes:
 Tests/CMakeTests/CheckSourceTreeTest.cmake.in |   31 +++++++++++++++++++++---
 1 files changed, 27 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list