summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2010-06-02 22:05:41 (GMT)
committerDavid Cole <david.cole@kitware.com>2010-06-02 22:05:41 (GMT)
commite73ad22e384b392834614ab63c3d65543e78829a (patch)
tree48d552095c27439ce3af7298792a156f946ea3f0 /Tests
parent670e16af2d76d5a75ed03b895562ac5923fdda56 (diff)
downloadCMake-e73ad22e384b392834614ab63c3d65543e78829a.zip
CMake-e73ad22e384b392834614ab63c3d65543e78829a.tar.gz
CMake-e73ad22e384b392834614ab63c3d65543e78829a.tar.bz2
Fix ExternalProject test failures on dashboards.
Double quote executable names that may have spaces in them. Do not run the new git portions of the test on machines that have git < version 1.6.5 on them.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/ExternalProject/CMakeLists.txt19
1 files changed, 16 insertions, 3 deletions
diff --git a/Tests/ExternalProject/CMakeLists.txt b/Tests/ExternalProject/CMakeLists.txt
index 09b7619..4c93ef3 100644
--- a/Tests/ExternalProject/CMakeLists.txt
+++ b/Tests/ExternalProject/CMakeLists.txt
@@ -161,7 +161,7 @@ if(do_cvs_tests)
SOURCE_DIR ${local_cvs_repo}
URL ${CMAKE_CURRENT_SOURCE_DIR}/cvsrepo.tgz
BUILD_COMMAND ""
- CONFIGURE_COMMAND ${CVS_EXECUTABLE} --version
+ CONFIGURE_COMMAND "${CVS_EXECUTABLE}" --version
INSTALL_COMMAND ""
)
@@ -257,7 +257,7 @@ if(do_svn_tests)
SOURCE_DIR ${local_svn_repo}
URL ${CMAKE_CURRENT_SOURCE_DIR}/svnrepo.tgz
BUILD_COMMAND ""
- CONFIGURE_COMMAND ${Subversion_SVN_EXECUTABLE} --version
+ CONFIGURE_COMMAND "${Subversion_SVN_EXECUTABLE}" --version
INSTALL_COMMAND ""
)
@@ -304,6 +304,19 @@ set(do_git_tests 0)
if(git_EXECUTABLE)
set(do_git_tests 1)
+
+ execute_process(
+ COMMAND "${git_EXECUTABLE}" --version
+ OUTPUT_VARIABLE ov
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+ string(REGEX REPLACE "^git version (.+)$" "\\1" git_version "${ov}")
+ message(STATUS "git_version='${git_version}'")
+
+ if(git_version VERSION_LESS 1.6.5)
+ message(STATUS "No ExternalProject git tests with git client less than version 1.6.5")
+ set(do_git_tests 0)
+ endif()
endif()
@@ -318,7 +331,7 @@ if(do_git_tests)
SOURCE_DIR ${local_git_repo}
URL ${CMAKE_CURRENT_SOURCE_DIR}/gitrepo.tgz
BUILD_COMMAND ""
- CONFIGURE_COMMAND ${git_EXECUTABLE} --version
+ CONFIGURE_COMMAND "${git_EXECUTABLE}" --version
INSTALL_COMMAND ""
)