diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2010-03-16 19:33:55 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2010-03-17 15:04:13 (GMT) |
commit | 0ba9d041174f593509c44f84e0e70fafc6c0edc0 (patch) | |
tree | e14112a165cafec052faf1846d97a47acdb612b9 /Tests/CMakeLists.txt | |
parent | bd0b37ea3d5733d087b1498a20e2b87d7f537a9f (diff) | |
download | CMake-0ba9d041174f593509c44f84e0e70fafc6c0edc0.zip CMake-0ba9d041174f593509c44f84e0e70fafc6c0edc0.tar.gz CMake-0ba9d041174f593509c44f84e0e70fafc6c0edc0.tar.bz2 |
Add the --stop-time argument
Unit test and script hook for STOP_TIME
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 6a08b3c..6e3e094 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1304,7 +1304,22 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/ ) SET_TESTS_PROPERTIES(CTestTestScheduler PROPERTIES PASS_REGULAR_EXPRESSION "Start 1.*Start 2.*Start 3.*Start 4.*Start 5.*Start 5.*Start 4.*Start 3.*Start 2.*Start 1") - + + CONFIGURE_FILE( + "${CMake_SOURCE_DIR}/Tests/CTestTestStopTime/test.cmake.in" + "${CMake_BINARY_DIR}/Tests/CTestTestStopTime/test.cmake" + @ONLY ESCAPE_QUOTES) + CONFIGURE_FILE( + "${CMake_SOURCE_DIR}/Tests/CTestTestStopTime/GetDate.cmake" + "${CMake_BINARY_DIR}/Tests/CTestTestStopTime/GetDate.cmake" + COPYONLY) + ADD_TEST(CTestTestStopTime ${CMAKE_CTEST_COMMAND} + -S "${CMake_BINARY_DIR}/Tests/CTestTestStopTime/test.cmake" -V + --output-log "${CMake_BINARY_DIR}/Tests/CTestTestStopTime/testOutput.log" + ) + SET_TESTS_PROPERTIES(CTestTestStopTime PROPERTIES + PASS_REGULAR_EXPRESSION "The stop time has been passed") + CONFIGURE_FILE( "${CMake_SOURCE_DIR}/Tests/CTestTestSubdir/test.cmake.in" "${CMake_BINARY_DIR}/Tests/CTestTestSubdir/test.cmake" |