2016-09-27 15:01:08 -04:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2005-02-17 15:23:00 -05:00
|
|
|
#ifndef cmCTestUpdateCommand_h
|
|
|
|
#define cmCTestUpdateCommand_h
|
|
|
|
|
2017-08-25 20:39:02 +02:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-08-24 22:01:40 +02:00
|
|
|
|
|
|
|
#include <string>
|
2019-07-04 18:14:22 +02:00
|
|
|
#include <utility>
|
|
|
|
|
2019-08-04 10:49:16 +02:00
|
|
|
#include <cm/memory>
|
2016-08-24 22:01:40 +02:00
|
|
|
|
2019-09-30 10:46:28 -04:00
|
|
|
#include "cmCTestHandlerCommand.h"
|
|
|
|
#include "cmCommand.h"
|
|
|
|
|
2016-08-24 22:01:40 +02:00
|
|
|
class cmCTestGenericHandler;
|
2005-02-17 15:23:00 -05:00
|
|
|
|
|
|
|
/** \class cmCTestUpdate
|
|
|
|
* \brief Run a ctest script
|
|
|
|
*
|
|
|
|
* cmCTestUpdateCommand defineds the command to updates the repository.
|
|
|
|
*/
|
2006-03-29 12:01:24 -05:00
|
|
|
class cmCTestUpdateCommand : public cmCTestHandlerCommand
|
2005-02-17 15:23:00 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
2019-07-04 18:14:22 +02:00
|
|
|
std::unique_ptr<cmCommand> Clone() override
|
2016-05-16 10:34:04 -04:00
|
|
|
{
|
2019-07-04 18:14:22 +02:00
|
|
|
auto ni = cm::make_unique<cmCTestUpdateCommand>();
|
2006-03-10 15:03:09 -05:00
|
|
|
ni->CTest = this->CTest;
|
|
|
|
ni->CTestScriptHandler = this->CTestScriptHandler;
|
2019-07-04 18:14:22 +02:00
|
|
|
return std::unique_ptr<cmCommand>(std::move(ni));
|
2016-05-16 10:34:04 -04:00
|
|
|
}
|
2005-02-17 15:23:00 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the command as specified in CMakeList.txt.
|
|
|
|
*/
|
2017-09-15 09:56:26 -04:00
|
|
|
std::string GetName() const override { return "ctest_update"; }
|
2005-02-17 15:23:00 -05:00
|
|
|
|
2006-03-29 12:01:24 -05:00
|
|
|
protected:
|
2017-09-15 09:56:26 -04:00
|
|
|
cmCTestGenericHandler* InitializeHandler() override;
|
2005-02-17 15:23:00 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|