cmCTestTestCommand.h 1.7 KB

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