cmake/Source/CTest/cmCTestSubmitCommand.h

81 lines
1.9 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:
2019-11-11 23:01:05 +01:00
cmCTestSubmitCommand();
cmCommand* Clone() override;
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,
2019-11-11 23:01:05 +01:00
ArgumentDoingSubmitURL,
2009-10-04 10:30:41 +03:00
ArgumentDoingLast2
};
2019-11-11 23:01:05 +01:00
enum
{
cts_BUILD_ID = ct_LAST,
cts_LAST
};
2009-10-04 10:30:41 +03:00
bool PartsMentioned;
std::set<cmCTest::Part> Parts;
bool FilesMentioned;
2010-11-13 01:00:53 +02:00
bool InternalTest;
2019-11-11 23:01:05 +01:00
std::set<std::string> 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;
2019-11-11 23:01:05 +01:00
std::string SubmitURL;
};
#endif