summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestSubmitCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-01-12 15:38:27 (GMT)
committerBrad King <brad.king@kitware.com>2009-01-12 15:38:27 (GMT)
commitd66c25c2f05ce57e879360f2db90a4f8ca4da330 (patch)
treed10fc9cb841476bce7719b39d4c2f1b12890ce9c /Source/CTest/cmCTestSubmitCommand.h
parent447f5b303eab1b076f49ed52af90e554160dddc6 (diff)
downloadCMake-d66c25c2f05ce57e879360f2db90a4f8ca4da330.zip
CMake-d66c25c2f05ce57e879360f2db90a4f8ca4da330.tar.gz
CMake-d66c25c2f05ce57e879360f2db90a4f8ca4da330.tar.bz2
ENH: Teach ctest_submit about parts
This adds a PARTS option to the ctest_submit command which tells it to submit only parts whose names are listed with the option.
Diffstat (limited to 'Source/CTest/cmCTestSubmitCommand.h')
-rw-r--r--Source/CTest/cmCTestSubmitCommand.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestSubmitCommand.h b/Source/CTest/cmCTestSubmitCommand.h
index 2faebba..dd99461 100644
--- a/Source/CTest/cmCTestSubmitCommand.h
+++ b/Source/CTest/cmCTestSubmitCommand.h
@@ -18,6 +18,7 @@
#define cmCTestSubmitCommand_h
#include "cmCTestHandlerCommand.h"
+#include "cmCTest.h"
/** \class cmCTestSubmit
* \brief Run a ctest script
@@ -61,14 +62,25 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ctest_submit([RETURN_VALUE res])\n"
- "Submits the test results for the project.";
+ " ctest_submit([RETURN_VALUE res] [PARTS ...])\n"
+ "Submits the test results for the project. "
+ "By default all available parts are submitted. "
+ "The PARTS option lists a subset of parts to be submitted.";
}
cmTypeMacro(cmCTestSubmitCommand, cmCTestHandlerCommand);
protected:
cmCTestGenericHandler* InitializeHandler();
+
+ virtual bool CheckArgumentKeyword(std::string const& arg);
+ virtual bool CheckArgumentValue(std::string const& arg);
+ enum
+ {
+ ArgumentDoingParts = Superclass::ArgumentDoingLast1,
+ ArgumentDoingLast2
+ };
+ std::set<cmCTest::Part> Parts;
};