summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-02-05 16:13:18 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-02-05 16:13:18 (GMT)
commit551397b89866f0e71237a54abc2bf6986dc4a3af (patch)
tree65367b14e2d54ad4ee585723a54911b54c6df035 /Source/CMakeLists.txt
parent6bba86c8c8ba6f58c0fd650d0b65d4ed4cf1d727 (diff)
downloadCMake-551397b89866f0e71237a54abc2bf6986dc4a3af.zip
CMake-551397b89866f0e71237a54abc2bf6986dc4a3af.tar.gz
CMake-551397b89866f0e71237a54abc2bf6986dc4a3af.tar.bz2
ENH: add more time to bootstrap test
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 8182372..7298575 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -1109,6 +1109,8 @@ IF(BUILD_TESTING)
SET(CMAKE_SKIP_BOOTSTRAP_TEST 1)
ENDIF(EXISTS "${CMAKE_BINARY_DIR}/CMakeLists.txt")
IF(UNIX AND CMAKE_RUN_LONG_TESTS AND NOT CMAKE_SKIP_BOOTSTRAP_TEST)
+
+
ADD_TEST(BootstrapTest ${CMAKE_CTEST_COMMAND}
--build-and-test
${CMake_SOURCE_DIR}
@@ -1117,7 +1119,17 @@ IF(BUILD_TESTING)
--build-noclean
--build-makeprogram ${CMake_SOURCE_DIR}/bootstrap
--build-generator "${CMAKE_TEST_GENERATOR}"
- --test-command ${CMake_BINARY_DIR}/Tests/BootstrapTest/Bootstrap.cmk/cmake)
+ --test-command
+ ${CMake_BINARY_DIR}/Tests/BootstrapTest/Bootstrap.cmk/cmake)
+
+ # provide more time for the bootstrap test
+ IF (COMMAND GET_TEST_PROPERTY)
+ GET_TEST_PROPERTY(BootstrapTest TIMEOUT PREVIOUS_TIMEOUT)
+ IF ("${PREVIOUS_TIMEOUT}" MATCHES NOT_FOUND)
+ SET_TESTS_PROPERTIES ( BootstrapTest PROPERTIES TIMEOUT 1500)
+ ENDIF ("${PREVIOUS_TIMEOUT}" MATCHES NOT_FOUND)
+ ENDIF (COMMAND GET_TEST_PROPERTY)
+
ENDIF(UNIX AND CMAKE_RUN_LONG_TESTS AND NOT CMAKE_SKIP_BOOTSTRAP_TEST)
# fortran does not work for IDE builds because