cmCTestTestCommand.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 cmCTestTestCommand_h
  11. #define cmCTestTestCommand_h
  12. #include <cmConfigure.h>
  13. #include "cmCTestHandlerCommand.h"
  14. #include "cmTypeMacro.h"
  15. #include <string>
  16. class cmCTestGenericHandler;
  17. class cmCommand;
  18. /** \class cmCTestTest
  19. * \brief Run a ctest script
  20. *
  21. * cmCTestTestCommand defineds the command to test the project.
  22. */
  23. class cmCTestTestCommand : public cmCTestHandlerCommand
  24. {
  25. public:
  26. cmCTestTestCommand();
  27. /**
  28. * This is a virtual constructor for the command.
  29. */
  30. cmCommand* Clone() CM_OVERRIDE
  31. {
  32. cmCTestTestCommand* ni = new cmCTestTestCommand;
  33. ni->CTest = this->CTest;
  34. ni->CTestScriptHandler = this->CTestScriptHandler;
  35. return ni;
  36. }
  37. /**
  38. * The name of the command as specified in CMakeList.txt.
  39. */
  40. std::string GetName() const CM_OVERRIDE { return "ctest_test"; }
  41. cmTypeMacro(cmCTestTestCommand, cmCTestHandlerCommand);
  42. protected:
  43. virtual cmCTestGenericHandler* InitializeActualHandler();
  44. cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
  45. enum
  46. {
  47. ctt_BUILD = ct_LAST,
  48. ctt_RETURN_VALUE,
  49. ctt_START,
  50. ctt_END,
  51. ctt_STRIDE,
  52. ctt_EXCLUDE,
  53. ctt_INCLUDE,
  54. ctt_EXCLUDE_LABEL,
  55. ctt_INCLUDE_LABEL,
  56. ctt_PARALLEL_LEVEL,
  57. ctt_SCHEDULE_RANDOM,
  58. ctt_STOP_TIME,
  59. ctt_TEST_LOAD,
  60. ctt_LAST
  61. };
  62. };
  63. #endif