cmCTestTestCommand.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 cmCTestTestCommand_h
  4. #define cmCTestTestCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmCTestHandlerCommand.h"
  7. #include <string>
  8. class cmCTestGenericHandler;
  9. class cmCommand;
  10. /** \class cmCTestTest
  11. * \brief Run a ctest script
  12. *
  13. * cmCTestTestCommand defineds the command to test the project.
  14. */
  15. class cmCTestTestCommand : public cmCTestHandlerCommand
  16. {
  17. public:
  18. cmCTestTestCommand();
  19. /**
  20. * This is a virtual constructor for the command.
  21. */
  22. cmCommand* Clone() override
  23. {
  24. cmCTestTestCommand* ni = new cmCTestTestCommand;
  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_test"; }
  33. protected:
  34. virtual cmCTestGenericHandler* InitializeActualHandler();
  35. cmCTestGenericHandler* InitializeHandler() override;
  36. enum
  37. {
  38. ctt_BUILD = ct_LAST,
  39. ctt_RETURN_VALUE,
  40. ctt_START,
  41. ctt_END,
  42. ctt_STRIDE,
  43. ctt_EXCLUDE,
  44. ctt_INCLUDE,
  45. ctt_EXCLUDE_LABEL,
  46. ctt_INCLUDE_LABEL,
  47. ctt_EXCLUDE_FIXTURE,
  48. ctt_EXCLUDE_FIXTURE_SETUP,
  49. ctt_EXCLUDE_FIXTURE_CLEANUP,
  50. ctt_PARALLEL_LEVEL,
  51. ctt_SCHEDULE_RANDOM,
  52. ctt_STOP_TIME,
  53. ctt_TEST_LOAD,
  54. ctt_LAST
  55. };
  56. };
  57. #endif