cmCTestRunScriptCommand.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 cmCTestRunScriptCommand_h
  4. #define cmCTestRunScriptCommand_h
  5. #include <cmConfigure.h>
  6. #include "cmCTestCommand.h"
  7. #include "cmTypeMacro.h"
  8. #include <string>
  9. #include <vector>
  10. class cmCommand;
  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. cmCommand* Clone() CM_OVERRIDE
  26. {
  27. cmCTestRunScriptCommand* ni = new cmCTestRunScriptCommand;
  28. ni->CTest = this->CTest;
  29. ni->CTestScriptHandler = this->CTestScriptHandler;
  30. return 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) CM_OVERRIDE;
  38. /**
  39. * The name of the command as specified in CMakeList.txt.
  40. */
  41. std::string GetName() const CM_OVERRIDE { return "ctest_run_script"; }
  42. cmTypeMacro(cmCTestRunScriptCommand, cmCTestCommand);
  43. };
  44. #endif