summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CTestCommandLine/repeat-until-fail-cmake.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-23 13:18:26 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-03-23 13:18:26 (GMT)
commitcc8b8cdc751ff2dfa6e77a69da542d6aef066346 (patch)
tree53088db771ef7cebaf89157fe4b081e4417a74b2 /Tests/RunCMake/CTestCommandLine/repeat-until-fail-cmake.cmake
parentd67196d0e8c5e9feb99d3a609d060f52ad8b9a59 (diff)
parent6bce027662588b972602e2e74c16a1883ed853cf (diff)
downloadCMake-cc8b8cdc751ff2dfa6e77a69da542d6aef066346.zip
CMake-cc8b8cdc751ff2dfa6e77a69da542d6aef066346.tar.gz
CMake-cc8b8cdc751ff2dfa6e77a69da542d6aef066346.tar.bz2
Merge topic 'ctest-repeat-until-fail'
6bce0276 Help: Add notes for topic 'ctest-repeat-until-fail' fde70a1b ctest: Add a new --repeat-until-fail option
Diffstat (limited to 'Tests/RunCMake/CTestCommandLine/repeat-until-fail-cmake.cmake')
-rw-r--r--Tests/RunCMake/CTestCommandLine/repeat-until-fail-cmake.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTestCommandLine/repeat-until-fail-cmake.cmake b/Tests/RunCMake/CTestCommandLine/repeat-until-fail-cmake.cmake
new file mode 100644
index 0000000..4654416
--- /dev/null
+++ b/Tests/RunCMake/CTestCommandLine/repeat-until-fail-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.cmake")
+set_tests_properties(test1 PROPERTIES DEPENDS "initialization")
+
+add_test(hello ${CMAKE_COMMAND} -E echo hello)
+add_test(goodbye ${CMAKE_COMMAND} -E echo goodbye)