1
0

cmCTestRunScriptCommand.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <string>
  6. #include <utility>
  7. #include <vector>
  8. #include <cm/memory>
  9. #include "cmCTestCommand.h"
  10. #include "cmCommand.h"
  11. class cmExecutionStatus;
  12. /** \class cmCTestRunScript
  13. * \brief Run a ctest script
  14. *
  15. * cmLibrarysCommand defines a list of executable (i.e., test)
  16. * programs to create.
  17. */
  18. class cmCTestRunScriptCommand : public cmCTestCommand
  19. {
  20. public:
  21. cmCTestRunScriptCommand() {}
  22. /**
  23. * This is a virtual constructor for the command.
  24. */
  25. std::unique_ptr<cmCommand> Clone() override
  26. {
  27. auto ni = cm::make_unique<cmCTestRunScriptCommand>();
  28. ni->CTest = this->CTest;
  29. ni->CTestScriptHandler = this->CTestScriptHandler;
  30. return std::unique_ptr<cmCommand>(std::move(ni));
  31. }
  32. /**
  33. * This is called when the command is first encountered in
  34. * the CMakeLists.txt file.
  35. */
  36. bool InitialPass(std::vector<std::string> const& args,
  37. cmExecutionStatus& status) override;
  38. };