summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-09-10 14:49:05 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-09-10 14:49:05 (GMT)
commit41b20b59794227f2843cf032b0c300f97ccfdec0 (patch)
treeade66dd05057e98300f073f5c215dbd80e469602 /Tests
parentf2ac53bb10889ea27c511634512414bb31cfb4ea (diff)
downloadCMake-41b20b59794227f2843cf032b0c300f97ccfdec0.zip
CMake-41b20b59794227f2843cf032b0c300f97ccfdec0.tar.gz
CMake-41b20b59794227f2843cf032b0c300f97ccfdec0.tar.bz2
ENH: add test that builds a nightly windows cmake binary
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 5a8f5d1..14f6515 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -50,6 +50,21 @@ IF(BUILD_TESTING)
ADD_TEST_MACRO(Assembler HelloAsm)
ADD_TEST_MACRO(SourceGroups SourceGroups)
+ IF(CMAKE_BUILD_NIGHTLY_WINDOWS_TEST)
+ FILE(MAKE_DIRECTORY "${CMake_BINARY_DIR}/Tests/CMake-CVS")
+ FILE(WRITE "${CMake_BINARY_DIR}/Tests/CMake-CVS/nightly-cmake.sh"
+"cd ${CMake_BINARY_DIR}/Tests/CMake-CVS
+${CMake_BINARY_DIR}/bin/cmake -DCMAKE_VERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Release/vogon_release.cmake
+${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Release/upload_release.cmake
+")
+ ADD_TEST(NightlyCMakeBuild
+ /bin/sh ${CMake_BINARY_DIR}/Tests/CMake-CVS/nightly-cmake.sh)
+ IF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY)
+ SET_TESTS_PROPERTIES ( NightlyCMakeBuild PROPERTIES TIMEOUT 1800)
+ ENDIF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY)
+ ENDIF(CMAKE_BUILD_NIGHTLY_WINDOWS_TEST)
+
+
# add tests with more complex invocations
ADD_TEST(TargetName ${CMAKE_CTEST_COMMAND}
--build-and-test