summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ctest_start/test.cmake.in
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2018-05-03 20:42:09 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2018-05-09 12:22:55 (GMT)
commit563781099f08ce36c2213066936806e8bb78b933 (patch)
tree0c9ea78ceca5c3aa3583c66d27edc6ae3ba9c1c4 /Tests/RunCMake/ctest_start/test.cmake.in
parentd3292d2d102710cb66d933dc27d72e3002d008b9 (diff)
downloadCMake-563781099f08ce36c2213066936806e8bb78b933.zip
CMake-563781099f08ce36c2213066936806e8bb78b933.tar.gz
CMake-563781099f08ce36c2213066936806e8bb78b933.tar.bz2
ctest_start: read model from TAG file
This change reworks ctest_start() so that simply calling ctest_start(APPEND) will read all the information from the TAG file. On top of that, it relaxes the argument parsing for ctest_start() to allow greater flexibility in the argument ordering, and the documentation for ctest_start() has been cleaned up.
Diffstat (limited to 'Tests/RunCMake/ctest_start/test.cmake.in')
-rw-r--r--Tests/RunCMake/ctest_start/test.cmake.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/ctest_start/test.cmake.in b/Tests/RunCMake/ctest_start/test.cmake.in
index 0a27942..172baf7 100644
--- a/Tests/RunCMake/ctest_start/test.cmake.in
+++ b/Tests/RunCMake/ctest_start/test.cmake.in
@@ -8,11 +8,23 @@ set(CTEST_CMAKE_GENERATOR "@RunCMake_GENERATOR@")
set(CTEST_CMAKE_GENERATOR_PLATFORM "@RunCMake_GENERATOR_PLATFORM@")
set(CTEST_CMAKE_GENERATOR_TOOLSET "@RunCMake_GENERATOR_TOOLSET@")
set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
+set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
function(setup_tests)
ctest_start(${ctest_start_args})
endfunction()
+if("@CASE_NAME@" MATCHES "^Append")
+ if("@CASE_NAME@" MATCHES "^AppendNoMatchingTrack$")
+ file(WRITE "${CTEST_BINARY_DIRECTORY}/Testing/TAG" "19551112-2204\nSomeWeirdTrackName\n")
+ else()
+ file(WRITE "${CTEST_BINARY_DIRECTORY}/Testing/TAG" "19551112-2204\nContinuousTrack\n")
+ endif()
+ if(NOT "@CASE_NAME@" MATCHES "^AppendOld")
+ file(APPEND "${CTEST_BINARY_DIRECTORY}/Testing/TAG" "Continuous\n")
+ endif()
+endif()
+
set(ctest_start_args "@CASE_CTEST_START_ARGS@")
if("@CASE_NAME@" STREQUAL "FunctionScope")
setup_tests()