2016-09-27 19:01:08 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2011-02-18 17:11:51 +00:00
|
|
|
#ifndef cmCTestUploadCommand_h
|
|
|
|
#define cmCTestUploadCommand_h
|
|
|
|
|
2017-08-25 18:39:02 +00:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-04-29 13:40:20 +00:00
|
|
|
|
2016-08-24 20:01:40 +00:00
|
|
|
#include <string>
|
2019-07-04 16:14:22 +00:00
|
|
|
#include <utility>
|
2019-09-19 11:11:55 +00:00
|
|
|
#include <vector>
|
2019-07-04 16:14:22 +00:00
|
|
|
|
2019-08-04 08:49:16 +00:00
|
|
|
#include <cm/memory>
|
2016-08-24 20:01:40 +00:00
|
|
|
|
2019-09-30 14:46:28 +00:00
|
|
|
#include "cmCTestHandlerCommand.h"
|
|
|
|
#include "cmCommand.h"
|
|
|
|
|
2016-08-24 20:01:40 +00:00
|
|
|
class cmCTestGenericHandler;
|
2011-02-18 17:11:51 +00:00
|
|
|
|
|
|
|
/** \class cmCTestUpload
|
|
|
|
* \brief Run a ctest script
|
|
|
|
*
|
|
|
|
* cmCTestUploadCommand defines the command to upload result files for
|
|
|
|
* the project.
|
|
|
|
*/
|
|
|
|
class cmCTestUploadCommand : public cmCTestHandlerCommand
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
2019-07-04 16:14:22 +00:00
|
|
|
std::unique_ptr<cmCommand> Clone() override
|
2016-05-16 14:34:04 +00:00
|
|
|
{
|
2019-07-04 16:14:22 +00:00
|
|
|
auto ni = cm::make_unique<cmCTestUploadCommand>();
|
2011-02-18 17:11:51 +00:00
|
|
|
ni->CTest = this->CTest;
|
|
|
|
ni->CTestScriptHandler = this->CTestScriptHandler;
|
2019-07-04 16:14:22 +00:00
|
|
|
return std::unique_ptr<cmCommand>(std::move(ni));
|
2016-05-16 14:34:04 +00:00
|
|
|
}
|
2011-02-18 17:11:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the command as specified in CMakeList.txt.
|
|
|
|
*/
|
2017-09-15 13:56:26 +00:00
|
|
|
std::string GetName() const override { return "ctest_upload"; }
|
2011-02-18 17:11:51 +00:00
|
|
|
|
|
|
|
protected:
|
2019-09-19 11:11:55 +00:00
|
|
|
void BindArguments() override;
|
|
|
|
void CheckArguments(std::vector<std::string> const&) override;
|
2017-09-15 13:56:26 +00:00
|
|
|
cmCTestGenericHandler* InitializeHandler() override;
|
2011-02-18 17:11:51 +00:00
|
|
|
|
2019-09-19 11:11:55 +00:00
|
|
|
std::vector<std::string> Files;
|
2011-02-18 17:11:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|