summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestStartCommand.h
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-12-29 19:38:31 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-12-29 19:38:31 (GMT)
commitaad15c3abfbffc216bbbab654f6eb19f312c1e56 (patch)
treee52b143932c06abfabdf1fbe638abf8c0f82bd04 /Source/CTest/cmCTestStartCommand.h
parent5ce7e35960b6d2affb0450ae3e2ce0c47b6f30ff (diff)
downloadCMake-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.h')
-rw-r--r--Source/CTest/cmCTestStartCommand.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestStartCommand.h b/Source/CTest/cmCTestStartCommand.h
index ae2f26b..afbc77b 100644
--- a/Source/CTest/cmCTestStartCommand.h
+++ b/Source/CTest/cmCTestStartCommand.h
@@ -23,7 +23,7 @@ class cmCTestStartCommand : public cmCTestCommand
{
public:
- cmCTestStartCommand() {}
+ cmCTestStartCommand();
/**
* This is a virtual constructor for the command.
@@ -33,6 +33,7 @@ public:
cmCTestStartCommand* ni = new cmCTestStartCommand;
ni->CTest = this->CTest;
ni->CTestScriptHandler = this->CTestScriptHandler;
+ ni->CreateNewTag = this->CreateNewTag;
return ni;
}
@@ -44,6 +45,14 @@ public:
cmExecutionStatus &status);
/**
+ * Will this invocation of ctest_start create a new TAG file?
+ */
+ bool ShouldCreateNewTag()
+ {
+ return this->CreateNewTag;
+ }
+
+ /**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_start";}
@@ -62,18 +71,21 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ctest_start(Model [TRACK <track>] [source [binary]])\n"
+ " ctest_start(Model [TRACK <track>] [APPEND] [source [binary]])\n"
"Starts the testing for a given model. The command should be called "
"after the binary directory is initialized. If the 'source' and "
"'binary' directory are not specified, it reads the "
"CTEST_SOURCE_DIRECTORY and CTEST_BINARY_DIRECTORY. If the track is "
- "specified, the submissions will go to the specified track.";
+ "specified, the submissions will go to the specified track. "
+ "If APPEND is used, the existing TAG is used rather than "
+ "creating a new one based on the current time stamp.";
}
cmTypeMacro(cmCTestStartCommand, cmCTestCommand);
private:
bool InitialCheckout(std::ostream& ofs, std::string const& sourceDir);
+ bool CreateNewTag;
};