diff options
author | Brad King <brad.king@kitware.com> | 2009-05-14 20:13:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-05-14 20:13:52 (GMT) |
commit | a524e07152728d652a29761b43b334b7aed390d6 (patch) | |
tree | deb1fd0082f7cad680d7686e30c21ec76a655ae5 /Tests/CMakeLists.txt | |
parent | ca3e9623e94f270e784dc621b1a38f455183882f (diff) | |
download | CMake-a524e07152728d652a29761b43b334b7aed390d6.zip CMake-a524e07152728d652a29761b43b334b7aed390d6.tar.gz CMake-a524e07152728d652a29761b43b334b7aed390d6.tar.bz2 |
ENH: Teach CTest to handle Bazaar repositories
This creates cmCTestBZR to drive CTest Update handling on bzr-based work
trees. Currently we always update to the head of the remote tracking
branch (bzr pull), so the nightly start time is ignored for Nightly
builds. A later change will address this. Patch from Tom Vercauteren.
See issue #6857.
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 843028f..ac38b78 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -925,6 +925,24 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/${CTestUpdateCVS_DIR}") ENDIF(CTEST_TEST_UPDATE_CVS AND CVS_FOUND) + # Test CTest Update with BZR + FIND_PROGRAM(BZR_EXECUTABLE NAMES bzr) + MARK_AS_ADVANCED(BZR_EXECUTABLE) + IF(BZR_EXECUTABLE) + # Check if xmloutput plugin is there + EXECUTE_PROCESS(COMMAND ${BZR_EXECUTABLE} xmlplugins RESULT_VARIABLE xmlplugres + OUTPUT_QUIET ERROR_QUIET) + IF( NOT ${xmlplugres} ) + SET(CTestUpdateBZR_DIR "CTest UpdateBZR") + CONFIGURE_FILE("${CMake_SOURCE_DIR}/Tests/CTestUpdateBZR.cmake.in" + "${CMake_BINARY_DIR}/Tests/CTestUpdateBZR.cmake" @ONLY) + ADD_TEST(CTest.UpdateBZR ${CMAKE_CMAKE_COMMAND} + -P "${CMake_BINARY_DIR}/Tests/CTestUpdateBZR.cmake" + ) + LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/${CTestUpdateBZR_DIR}") + ENDIF( NOT ${xmlplugres} ) + ENDIF(BZR_EXECUTABLE) + # Test CTest Update with GIT FIND_PROGRAM(GIT_EXECUTABLE NAMES git) MARK_AS_ADVANCED(GIT_EXECUTABLE) |