cmCTestRunScriptCommand.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCTestRunScriptCommand_h
  11. #define cmCTestRunScriptCommand_h
  12. #include <cmConfigure.h>
  13. #include "cmCTestCommand.h"
  14. #include "cmTypeMacro.h"
  15. #include <string>
  16. #include <vector>
  17. class cmCommand;
  18. class cmExecutionStatus;
  19. /** \class cmCTestRunScript
  20. * \brief Run a ctest script
  21. *
  22. * cmLibrarysCommand defines a list of executable (i.e., test)
  23. * programs to create.
  24. */
  25. class cmCTestRunScriptCommand : public cmCTestCommand
  26. {
  27. public:
  28. cmCTestRunScriptCommand() {}
  29. /**
  30. * This is a virtual constructor for the command.
  31. */
  32. cmCommand* Clone() CM_OVERRIDE
  33. {
  34. cmCTestRunScriptCommand* ni = new cmCTestRunScriptCommand;
  35. ni->CTest = this->CTest;
  36. ni->CTestScriptHandler = this->CTestScriptHandler;
  37. return ni;
  38. }
  39. /**
  40. * This is called when the command is first encountered in
  41. * the CMakeLists.txt file.
  42. */
  43. bool InitialPass(std::vector<std::string> const& args,
  44. cmExecutionStatus& status) CM_OVERRIDE;
  45. /**
  46. * The name of the command as specified in CMakeList.txt.
  47. */
  48. std::string GetName() const CM_OVERRIDE { return "ctest_run_script"; }
  49. cmTypeMacro(cmCTestRunScriptCommand, cmCTestCommand);
  50. };
  51. #endif