cmake/Source/CTest/cmCTestUpdateCommand.h

47 lines
1.1 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 cmCTestUpdateCommand_h
#define cmCTestUpdateCommand_h
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
#include <string>
2020-02-01 23:06:01 +01:00
#include <utility>
#include <cm/memory>
#include "cmCTestHandlerCommand.h"
#include "cmCommand.h"
2016-10-30 18:24:19 +01:00
class cmCTestGenericHandler;
/** \class cmCTestUpdate
* \brief Run a ctest script
*
* cmCTestUpdateCommand defineds the command to updates the repository.
*/
class cmCTestUpdateCommand : public cmCTestHandlerCommand
{
public:
/**
* This is a virtual constructor for the command.
*/
2020-02-01 23:06:01 +01:00
std::unique_ptr<cmCommand> Clone() override
2016-07-09 11:21:54 +02:00
{
2020-02-01 23:06:01 +01:00
auto ni = cm::make_unique<cmCTestUpdateCommand>();
ni->CTest = this->CTest;
ni->CTestScriptHandler = this->CTestScriptHandler;
2020-02-01 23:06:01 +01:00
return std::unique_ptr<cmCommand>(std::move(ni));
2016-07-09 11:21:54 +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_update"; }
protected:
2018-01-26 17:06:56 +01:00
cmCTestGenericHandler* InitializeHandler() override;
};
#endif