summaryrefslogtreecommitdiffstats
path: root/Tests/ExternalProject/CMakeLists.txt
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-07-01 17:48:38 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-07-01 17:48:38 (GMT)
commit44878e7b11f72b0e5b8d9f29ef055b42e74f8db3 (patch)
treeb1948842814190163230f19e8e420163c145d457 /Tests/ExternalProject/CMakeLists.txt
parent57e4ca370912b2154a402cec88f6ea4d0db3abd2 (diff)
downloadCMake-44878e7b11f72b0e5b8d9f29ef055b42e74f8db3.zip
CMake-44878e7b11f72b0e5b8d9f29ef055b42e74f8db3.tar.gz
CMake-44878e7b11f72b0e5b8d9f29ef055b42e74f8db3.tar.bz2
BUG: Exclude svn portions of ExternalProject test when: svn client version is less than 1.2 or cygwin/non-cygwin mismatch detected -- avoids ExternalProject test failures on dash5 and dash22-cygwin. Also, non-code change: allow cvslock through Windows firewall to prevent ExternalProject test failure on dash1vista32.
Diffstat (limited to 'Tests/ExternalProject/CMakeLists.txt')
-rw-r--r--Tests/ExternalProject/CMakeLists.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/Tests/ExternalProject/CMakeLists.txt b/Tests/ExternalProject/CMakeLists.txt
index e13b399..06d0679 100644
--- a/Tests/ExternalProject/CMakeLists.txt
+++ b/Tests/ExternalProject/CMakeLists.txt
@@ -201,6 +201,32 @@ if(Subversion_SVN_EXECUTABLE)
set(do_svn_tests 1)
endif()
+# Only do svn tests with svn >= version 1.2
+#
+if(do_svn_tests)
+ execute_process(COMMAND ${Subversion_SVN_EXECUTABLE} --version
+ OUTPUT_VARIABLE Subversion_VERSION_SVN
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+ string(REGEX REPLACE "^(.*\n)?svn, version ([.0-9]+).*"
+ "\\2" Subversion_VERSION_SVN "${Subversion_VERSION_SVN}")
+ message(STATUS "Subversion_VERSION_SVN='${Subversion_VERSION_SVN}'")
+
+ if(Subversion_VERSION_SVN VERSION_LESS 1.2)
+ message(STATUS "No ExternalProject svn tests with svn client less than version 1.2")
+ set(do_svn_tests 0)
+ endif()
+endif()
+
+# Only do svn tests in cygwin/cygwin or not-cygwin/not-cygwin arrangements:
+#
+if(do_svn_tests)
+ if(CMAKE_CURRENT_BINARY_DIR MATCHES "cygdrive/" AND
+ NOT "${Subversion_SVN_EXECUTABLE}" MATCHES "cygwin")
+ message(STATUS "No ExternalProject svn tests with non-cygwin svn client in a /cygdrive based build")
+ set(do_svn_tests 0)
+ endif()
+endif()
+
if(do_svn_tests)
# Unzip/untar the SVN repository in our source folder so that other
# projects below may use it to test SVN args of ep_add