aboutsummaryrefslogtreecommitdiff
path: root/tests/ctest-default.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-02-12 19:46:47 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-12 20:08:23 +0100
commit622d5a43b35a3ff55cd7eaaeceb1663a67c67d60 (patch)
tree9761d91ec9dcb9e2669106891e22edf5ca0062ea /tests/ctest-default.cmake
parent483cdc2d2c0fd5a295ff8f870578930f1eeb1870 (diff)
downloadlibssh-622d5a43b35a3ff55cd7eaaeceb1663a67c67d60.tar.gz
libssh-622d5a43b35a3ff55cd7eaaeceb1663a67c67d60.tar.xz
libssh-622d5a43b35a3ff55cd7eaaeceb1663a67c67d60.zip
ctest: Added support for checking out a branch.
Diffstat (limited to 'tests/ctest-default.cmake')
-rw-r--r--tests/ctest-default.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ctest-default.cmake b/tests/ctest-default.cmake
index 1ba932a..f88d76f 100644
--- a/tests/ctest-default.cmake
+++ b/tests/ctest-default.cmake
@@ -20,6 +20,9 @@ set(CTEST_BUILD_OPTIONS "-DWITH_TESTING=ON -DWITH_SSH1=ON -WITH_SFTP=ON -DWITH_S
## The Model to set: Nightly, Continous, Experimental
set(CTEST_MODEL "Experimental")
+## The branch
+#set(CTEST_GIT_BRANCH "--branch v0-5")
+
## Wether to enable memory checking.
set(WITH_MEMCHECK FALSE)
@@ -42,7 +45,7 @@ find_program(CTEST_COVERAGE_COMMAND NAMES gcov)
find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)
if(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}")
- set(CTEST_CHECKOUT_COMMAND "${CTEST_GIT_COMMAND} clone git://git.libssh.org/projects/libssh.git ${CTEST_SOURCE_DIRECTORY}")
+ set(CTEST_CHECKOUT_COMMAND "${CTEST_GIT_COMMAND} clone ${CTEST_GIT_BRANCH} git://git.libssh.org/projects/libssh.git ${CTEST_SOURCE_DIRECTORY}")
endif()
set(CTEST_UPDATE_COMMAND "${CTEST_GIT_COMMAND}")