summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-01 18:29:25 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-01 18:29:25 (GMT)
commit4fc192c6cfd0fe72df2b788d52dfd316c3c34697 (patch)
tree0d28aa227418720955b312a2714c08f1f8a4af3f /Tests
parent44878e7b11f72b0e5b8d9f29ef055b42e74f8db3 (diff)
downloadCMake-4fc192c6cfd0fe72df2b788d52dfd316c3c34697.zip
CMake-4fc192c6cfd0fe72df2b788d52dfd316c3c34697.tar.gz
CMake-4fc192c6cfd0fe72df2b788d52dfd316c3c34697.tar.bz2
BUG: Skip CTest.Update* for cygwin tools on Windows
These tests cannot run with cygwin tools unless testing cygwin CTest. The version control tools do not understand all Windows paths.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLists.txt16
1 files changed, 14 insertions, 2 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 6b57444..69c731d 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -928,7 +928,13 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel
# Test CTest Update with BZR
FIND_PROGRAM(BZR_EXECUTABLE NAMES bzr)
MARK_AS_ADVANCED(BZR_EXECUTABLE)
+ SET(CTEST_TEST_UPDATE_BZR 0)
IF(BZR_EXECUTABLE)
+ IF(NOT "${CVS_EXECUTABLE}" MATCHES "cygwin" OR UNIX)
+ SET(CTEST_TEST_UPDATE_BZR 1)
+ ENDIF(NOT "${CVS_EXECUTABLE}" MATCHES "cygwin" OR UNIX)
+ ENDIF(BZR_EXECUTABLE)
+ IF(CTEST_TEST_UPDATE_BZR)
# Check if xmloutput plugin is there
EXECUTE_PROCESS(COMMAND ${BZR_EXECUTABLE} xmlplugins RESULT_VARIABLE xmlplugres
OUTPUT_QUIET ERROR_QUIET)
@@ -949,12 +955,18 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel
SET_TESTS_PROPERTIES(CTest.UpdateBZR.CLocale PROPERTIES ENVIRONMENT LC_ALL=C)
LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/${CTestUpdateBZR_DIR}")
ENDIF( NOT ${xmlplugres} )
- ENDIF(BZR_EXECUTABLE)
+ ENDIF(CTEST_TEST_UPDATE_BZR)
# Test CTest Update with GIT
FIND_PROGRAM(GIT_EXECUTABLE NAMES git)
MARK_AS_ADVANCED(GIT_EXECUTABLE)
+ SET(CTEST_TEST_UPDATE_GIT 0)
IF(GIT_EXECUTABLE)
+ IF(NOT "${CVS_EXECUTABLE}" MATCHES "cygwin" OR UNIX)
+ SET(CTEST_TEST_UPDATE_GIT 1)
+ ENDIF(NOT "${CVS_EXECUTABLE}" MATCHES "cygwin" OR UNIX)
+ ENDIF(GIT_EXECUTABLE)
+ IF(CTEST_TEST_UPDATE_GIT)
SET(CTestUpdateGIT_DIR "CTest UpdateGIT")
CONFIGURE_FILE("${CMake_SOURCE_DIR}/Tests/CTestUpdateGIT.cmake.in"
"${CMake_BINARY_DIR}/Tests/CTestUpdateGIT.cmake" @ONLY)
@@ -962,7 +974,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel
-P "${CMake_BINARY_DIR}/Tests/CTestUpdateGIT.cmake"
)
LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/${CTestUpdateGIT_DIR}")
- ENDIF(GIT_EXECUTABLE)
+ ENDIF(CTEST_TEST_UPDATE_GIT)
ENDIF(CTEST_TEST_UPDATE)