cmake/Source/CTest/cmCTestSubmitCommand.h

91 lines
2.2 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#ifndef cmCTestSubmitCommand_h
#define cmCTestSubmitCommand_h
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-07-09 11:21:54 +02:00
2009-10-04 10:30:41 +03:00
#include "cmCTest.h"
2016-10-30 18:24:19 +01:00
#include "cmCTestHandlerCommand.h"
#include <set>
#include <string>
#include <vector>
class cmCTestGenericHandler;
class cmCommand;
class cmExecutionStatus;
/** \class cmCTestSubmit
* \brief Run a ctest script
*
* cmCTestSubmitCommand defineds the command to submit the test results for
* the project.
*/
class cmCTestSubmitCommand : public cmCTestHandlerCommand
{
public:
2009-10-04 10:30:41 +03:00
cmCTestSubmitCommand()
2016-07-09 11:21:54 +02:00
{
2009-10-04 10:30:41 +03:00
this->PartsMentioned = false;
this->FilesMentioned = false;
2010-11-13 01:00:53 +02:00
this->InternalTest = false;
this->RetryCount = "";
this->RetryDelay = "";
2015-04-27 22:25:09 +02:00
this->CDashUpload = false;
2016-07-09 11:21:54 +02:00
}
/**
* This is a virtual constructor for the command.
*/
2018-01-26 17:06:56 +01:00
cmCommand* Clone() override
2016-07-09 11:21:54 +02:00
{
cmCTestSubmitCommand* ni = new cmCTestSubmitCommand;
ni->CTest = this->CTest;
ni->CTestScriptHandler = this->CTestScriptHandler;
return ni;
2016-07-09 11:21:54 +02:00
}
2016-10-30 18:24:19 +01:00
bool InitialPass(std::vector<std::string> const& args,
2018-01-26 17:06:56 +01:00
cmExecutionStatus& status) override;
2015-04-27 22:25:09 +02:00
/**
* The name of the command as specified in CMakeList.txt.
*/
2018-01-26 17:06:56 +01:00
std::string GetName() const override { return "ctest_submit"; }
2017-04-14 19:02:05 +02:00
typedef cmCTestHandlerCommand Superclass;
protected:
2018-01-26 17:06:56 +01:00
cmCTestGenericHandler* InitializeHandler() override;
2009-10-04 10:30:41 +03:00
2018-01-26 17:06:56 +01:00
bool CheckArgumentKeyword(std::string const& arg) override;
bool CheckArgumentValue(std::string const& arg) override;
2009-10-04 10:30:41 +03:00
enum
{
ArgumentDoingParts = Superclass::ArgumentDoingLast1,
ArgumentDoingFiles,
2010-11-13 01:00:53 +02:00
ArgumentDoingRetryDelay,
ArgumentDoingRetryCount,
2015-04-27 22:25:09 +02:00
ArgumentDoingCDashUpload,
ArgumentDoingCDashUploadType,
2017-07-20 19:35:53 +02:00
ArgumentDoingHttpHeader,
2009-10-04 10:30:41 +03:00
ArgumentDoingLast2
};
bool PartsMentioned;
std::set<cmCTest::Part> Parts;
bool FilesMentioned;
2010-11-13 01:00:53 +02:00
bool InternalTest;
2009-10-04 10:30:41 +03:00
cmCTest::SetOfStrings Files;
2010-11-13 01:00:53 +02:00
std::string RetryCount;
std::string RetryDelay;
2015-04-27 22:25:09 +02:00
bool CDashUpload;
std::string CDashUploadFile;
std::string CDashUploadType;
2017-07-20 19:35:53 +02:00
std::vector<std::string> HttpHeaders;
};
#endif