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. */
|
2021-09-14 00:13:48 +02:00
|
|
|
#pragma once
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2018-01-26 17:06:56 +01:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-07-09 11:21:54 +02:00
|
|
|
|
2020-02-01 23:06:01 +01:00
|
|
|
#include <memory>
|
2016-10-30 18:24:19 +01:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2022-11-16 20:14:03 +01:00
|
|
|
#include <cm/optional>
|
|
|
|
|
|
|
|
#include "cmArgumentParserTypes.h"
|
2020-02-01 23:06:01 +01:00
|
|
|
#include "cmCTestHandlerCommand.h"
|
|
|
|
|
2016-10-30 18:24:19 +01:00
|
|
|
class cmCommand;
|
2020-02-01 23:06:01 +01:00
|
|
|
class cmCTestGenericHandler;
|
2016-10-30 18:24:19 +01:00
|
|
|
class cmExecutionStatus;
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
/** \class cmCTestSubmit
|
|
|
|
* \brief Run a ctest script
|
|
|
|
*
|
|
|
|
* cmCTestSubmitCommand defineds the command to submit the test results for
|
|
|
|
* the project.
|
|
|
|
*/
|
|
|
|
class cmCTestSubmitCommand : public cmCTestHandlerCommand
|
|
|
|
{
|
|
|
|
public:
|
2020-02-01 23:06:01 +01:00
|
|
|
std::unique_ptr<cmCommand> Clone() override;
|
2008-10-12 18:41:06 +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
|
|
|
|
2008-10-12 18:41:06 +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"; }
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
protected:
|
2020-02-01 23:06:01 +01:00
|
|
|
void BindArguments() override;
|
2022-11-16 20:14:03 +01:00
|
|
|
void CheckArguments() override;
|
2018-01-26 17:06:56 +01:00
|
|
|
cmCTestGenericHandler* InitializeHandler() override;
|
2009-10-04 10:30:41 +03:00
|
|
|
|
2020-02-01 23:06:01 +01:00
|
|
|
bool CDashUpload = false;
|
|
|
|
bool InternalTest = false;
|
2009-10-04 10:30:41 +03:00
|
|
|
|
2020-02-01 23:06:01 +01:00
|
|
|
std::string BuildID;
|
2015-04-27 22:25:09 +02:00
|
|
|
std::string CDashUploadFile;
|
|
|
|
std::string CDashUploadType;
|
2020-02-01 23:06:01 +01:00
|
|
|
std::string RetryCount;
|
|
|
|
std::string RetryDelay;
|
2019-11-11 23:01:05 +01:00
|
|
|
std::string SubmitURL;
|
2020-02-01 23:06:01 +01:00
|
|
|
|
2022-11-16 20:14:03 +01:00
|
|
|
cm::optional<ArgumentParser::MaybeEmpty<std::vector<std::string>>> Files;
|
|
|
|
ArgumentParser::MaybeEmpty<std::vector<std::string>> HttpHeaders;
|
|
|
|
cm::optional<ArgumentParser::MaybeEmpty<std::vector<std::string>>> Parts;
|
2008-10-12 18:41:06 +02:00
|
|
|
};
|