cmCTestUpdateCommand.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCTestUpdateCommand_h
  4. #define cmCTestUpdateCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmCTestHandlerCommand.h"
  7. #include <string>
  8. class cmCTestGenericHandler;
  9. class cmCommand;
  10. /** \class cmCTestUpdate
  11. * \brief Run a ctest script
  12. *
  13. * cmCTestUpdateCommand defineds the command to updates the repository.
  14. */
  15. class cmCTestUpdateCommand : public cmCTestHandlerCommand
  16. {
  17. public:
  18. cmCTestUpdateCommand() {}
  19. /**
  20. * This is a virtual constructor for the command.
  21. */
  22. cmCommand* Clone() override
  23. {
  24. cmCTestUpdateCommand* ni = new cmCTestUpdateCommand;
  25. ni->CTest = this->CTest;
  26. ni->CTestScriptHandler = this->CTestScriptHandler;
  27. return ni;
  28. }
  29. /**
  30. * The name of the command as specified in CMakeList.txt.
  31. */
  32. std::string GetName() const override { return "ctest_update"; }
  33. protected:
  34. cmCTestGenericHandler* InitializeHandler() override;
  35. };
  36. #endif