summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-09-23 16:45:39 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-09-23 16:45:39 (GMT)
commitfc921a021cb06c40d0d209f2b50d4c30eecb7fe0 (patch)
treef15fb30f7375d4a394ee38ae6f164008e41d0fde /Tests
parentf3dce87e6d508e7552bd378f98d22f82c2011516 (diff)
downloadCMake-fc921a021cb06c40d0d209f2b50d4c30eecb7fe0.zip
CMake-fc921a021cb06c40d0d209f2b50d4c30eecb7fe0.tar.gz
CMake-fc921a021cb06c40d0d209f2b50d4c30eecb7fe0.tar.bz2
Add nightly builds for linux windows and mac.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLists.txt34
1 files changed, 22 insertions, 12 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 2c49de9..1a02db2 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -221,19 +221,29 @@ IF(BUILD_TESTING)
IF (CMAKE_STRICT)
ADD_TEST_MACRO(DocTest DocTest)
ENDIF (CMAKE_STRICT)
-
- 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_CREATE_VERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Release/vogon_release.cmake
+ # macro to add a test that will build a nightly release
+ # of CMake for given platform using the release scripts
+ MACRO(ADD_NIGHTLY_BUILD_TEST name script)
+ SET(_TEST_DIR "${CMake_BINARY_DIR}/Tests/${name}")
+ FILE(MAKE_DIRECTORY "${_TEST_DIR}")
+ FILE(WRITE "${_TEST_DIR}/nightly-cmake.sh"
+ "cd ${_TEST_DIR}
+${CMake_BINARY_DIR}/bin/cmake -DCMAKE_CREATE_VERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Release/${script}
${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)
- SET_TESTS_PROPERTIES ( NightlyCMakeBuild PROPERTIES TIMEOUT 3500)
- ENDIF(CMAKE_BUILD_NIGHTLY_WINDOWS_TEST)
-
+ ")
+ ADD_TEST(${name} /bin/sh ${_TEST_DIR}/nightly-cmake.sh)
+ IF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY)
+ SET_TESTS_PROPERTIES (${name} PROPERTIES TIMEOUT 3500)
+ ENDIF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY)
+ ENDMACRO(ADD_NIGHTLY_BUILD_TEST)
+ IF(CMAKE_BUILD_NIGHTLY_RELEASES)
+ ADD_NIGHTLY_BUILD_TEST(CMakeNightlyWindows
+ dash2win64_release.cmake)
+ ADD_NIGHTLY_BUILD_TEST(CMakeNightlyMac
+ dashmacmini2_release.cmake)
+ ADD_NIGHTLY_BUILD_TEST(CMakeNightlyLinux
+ magrathea_release.cmake)
+ ENDIF(CMAKE_BUILD_NIGHTLY_RELEASES)
# add tests with more complex invocations
ADD_TEST(Framework ${CMAKE_CTEST_COMMAND}