diff options
author | Brad King <brad.king@kitware.com> | 2019-11-01 13:55:09 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-11-01 13:55:18 (GMT) |
commit | 6660926f22b940759954e74e2b4c0c3dd0ff1991 (patch) | |
tree | 870c91a0139676ae7f8d68baf22cfbfc268d915c /Tests/RunCMake/CTestCommandLine/repeat-until-pass-cmake.cmake | |
parent | b42da462333aea986576d00bf9af7449aa6e8010 (diff) | |
parent | 39ac8b4eb5c5ea99cf1053bd37e76d811f5122fc (diff) | |
download | CMake-6660926f22b940759954e74e2b4c0c3dd0ff1991.zip CMake-6660926f22b940759954e74e2b4c0c3dd0ff1991.tar.gz CMake-6660926f22b940759954e74e2b4c0c3dd0ff1991.tar.bz2 |
Merge topic 'ctest-repeat-until-pass'
39ac8b4eb5 ctest: Add --repeat-after-timeout option
80c2c9d14c ctest: Add --repeat-until-pass option
0187e52244 cmCTestRunTest: Use inline member initializers
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3960
Diffstat (limited to 'Tests/RunCMake/CTestCommandLine/repeat-until-pass-cmake.cmake')
-rw-r--r-- | Tests/RunCMake/CTestCommandLine/repeat-until-pass-cmake.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTestCommandLine/repeat-until-pass-cmake.cmake b/Tests/RunCMake/CTestCommandLine/repeat-until-pass-cmake.cmake new file mode 100644 index 0000000..d109551 --- /dev/null +++ b/Tests/RunCMake/CTestCommandLine/repeat-until-pass-cmake.cmake @@ -0,0 +1,15 @@ +enable_testing() + +set(TEST_OUTPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/test_output.txt") +add_test(NAME initialization + COMMAND ${CMAKE_COMMAND} + "-DTEST_OUTPUT_FILE=${TEST_OUTPUT_FILE}" + -P "${CMAKE_CURRENT_SOURCE_DIR}/init.cmake") +add_test(NAME test1 + COMMAND ${CMAKE_COMMAND} + "-DTEST_OUTPUT_FILE=${TEST_OUTPUT_FILE}" + -P "${CMAKE_CURRENT_SOURCE_DIR}/test1-pass.cmake") +set_tests_properties(test1 PROPERTIES DEPENDS "initialization") + +add_test(hello ${CMAKE_COMMAND} -E echo hello) +add_test(goodbye ${CMAKE_COMMAND} -E echo goodbye) |