diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-05-03 20:42:09 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2018-05-09 12:22:55 (GMT) |
commit | 563781099f08ce36c2213066936806e8bb78b933 (patch) | |
tree | 0c9ea78ceca5c3aa3583c66d27edc6ae3ba9c1c4 /Tests/RunCMake/ctest_start/test.cmake.in | |
parent | d3292d2d102710cb66d933dc27d72e3002d008b9 (diff) | |
download | CMake-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.in | 12 |
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() |