summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestSubmitCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CTest/cmCTestSubmitCommand.h')
-rw-r--r--Source/CTest/cmCTestSubmitCommand.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestSubmitCommand.h b/Source/CTest/cmCTestSubmitCommand.h
index dd99461..bf99f09 100644
--- a/Source/CTest/cmCTestSubmitCommand.h
+++ b/Source/CTest/cmCTestSubmitCommand.h
@@ -30,7 +30,11 @@ class cmCTestSubmitCommand : public cmCTestHandlerCommand
{
public:
- cmCTestSubmitCommand() {}
+ cmCTestSubmitCommand()
+ {
+ this->PartsMentioned = false;
+ this->FilesMentioned = false;
+ }
/**
* This is a virtual constructor for the command.
@@ -62,10 +66,12 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ctest_submit([RETURN_VALUE res] [PARTS ...])\n"
+ " ctest_submit([RETURN_VALUE res] [PARTS ...] [FILES ...])\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.";
+ "The PARTS option lists a subset of parts to be submitted. "
+ "The FILES option explicitly lists specific files to be submitted. "
+ "Each individual file must exist at the time of the call.";
}
cmTypeMacro(cmCTestSubmitCommand, cmCTestHandlerCommand);
@@ -75,12 +81,18 @@ protected:
virtual bool CheckArgumentKeyword(std::string const& arg);
virtual bool CheckArgumentValue(std::string const& arg);
+
enum
{
ArgumentDoingParts = Superclass::ArgumentDoingLast1,
+ ArgumentDoingFiles,
ArgumentDoingLast2
};
+
+ bool PartsMentioned;
std::set<cmCTest::Part> Parts;
+ bool FilesMentioned;
+ cmCTest::SetOfStrings Files;
};