cmCTestMemCheckCommand.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 cmCTestMemCheckCommand_h
  11. #define cmCTestMemCheckCommand_h
  12. #include <cmConfigure.h>
  13. #include "cmCTestTestCommand.h"
  14. #include "cmTypeMacro.h"
  15. #include <string>
  16. class cmCTestGenericHandler;
  17. class cmCommand;
  18. /** \class cmCTestMemCheck
  19. * \brief Run a ctest script
  20. *
  21. * cmCTestMemCheckCommand defineds the command to test the project.
  22. */
  23. class cmCTestMemCheckCommand : public cmCTestTestCommand
  24. {
  25. public:
  26. cmCTestMemCheckCommand() {}
  27. /**
  28. * This is a virtual constructor for the command.
  29. */
  30. cmCommand* Clone() CM_OVERRIDE
  31. {
  32. cmCTestMemCheckCommand* ni = new cmCTestMemCheckCommand;
  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_memcheck"; }
  41. cmTypeMacro(cmCTestMemCheckCommand, cmCTestTestCommand);
  42. protected:
  43. cmCTestGenericHandler* InitializeActualHandler() CM_OVERRIDE;
  44. };
  45. #endif