diff options
author | David Cole <david.cole@kitware.com> | 2009-12-29 19:38:31 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-12-29 19:38:31 (GMT) |
commit | aad15c3abfbffc216bbbab654f6eb19f312c1e56 (patch) | |
tree | e52b143932c06abfabdf1fbe638abf8c0f82bd04 /Source/CTest/cmCTestStartCommand.cxx | |
parent | 5ce7e35960b6d2affb0450ae3e2ce0c47b6f30ff (diff) | |
download | CMake-aad15c3abfbffc216bbbab654f6eb19f312c1e56.zip CMake-aad15c3abfbffc216bbbab654f6eb19f312c1e56.tar.gz CMake-aad15c3abfbffc216bbbab654f6eb19f312c1e56.tar.bz2 |
Fix issue #10060 - add APPEND arg to ctest_start command.
If APPEND is given to ctest_start, it will read the tag from the current existing Testing/TAG file rather than creating a new one based on the current time stamp. This allows a developer to run several dashboard scripts in a row, all of which will share the same tag/stamp/buildid when they finally get submitted to CDash. Now you can split the running of build phases and test phases for the same dashboard row into multiple scripts.
Diffstat (limited to 'Source/CTest/cmCTestStartCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestStartCommand.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestStartCommand.cxx b/Source/CTest/cmCTestStartCommand.cxx index 606fbbe..228a173 100644 --- a/Source/CTest/cmCTestStartCommand.cxx +++ b/Source/CTest/cmCTestStartCommand.cxx @@ -17,6 +17,11 @@ #include "cmCTestVC.h" #include "cmGeneratedFileStream.h" +cmCTestStartCommand::cmCTestStartCommand() +{ + this->CreateNewTag = true; +} + bool cmCTestStartCommand ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) { @@ -44,6 +49,15 @@ bool cmCTestStartCommand } } + if (cnt < args.size()) + { + if (args[cnt] == "APPEND") + { + cnt ++; + this->CreateNewTag = false; + } + } + if ( cnt < args.size() ) { src_dir = args[cnt].c_str(); |