diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-10 14:49:05 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-10 14:49:05 (GMT) |
commit | 41b20b59794227f2843cf032b0c300f97ccfdec0 (patch) | |
tree | ade66dd05057e98300f073f5c215dbd80e469602 /Tests | |
parent | f2ac53bb10889ea27c511634512414bb31cfb4ea (diff) | |
download | CMake-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.txt | 15 |
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 |