1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestMemCheckCommand.h,v $
6 Date: $Date: 2009-02-20 20:51:03 $
7 Version: $Revision: 1.7 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmCTestMemCheckCommand_h
18 #define cmCTestMemCheckCommand_h
20 #include "cmCTestTestCommand.h"
22 class cmCTestGenericHandler
;
24 /** \class cmCTestMemCheck
25 * \brief Run a ctest script
27 * cmCTestMemCheckCommand defineds the command to test the project.
29 class cmCTestMemCheckCommand
: public cmCTestTestCommand
33 cmCTestMemCheckCommand() {}
36 * This is a virtual constructor for the command.
38 virtual cmCommand
* Clone()
40 cmCTestMemCheckCommand
* ni
= new cmCTestMemCheckCommand
;
41 ni
->CTest
= this->CTest
;
42 ni
->CTestScriptHandler
= this->CTestScriptHandler
;
47 * The name of the command as specified in CMakeList.txt.
49 virtual const char* GetName() { return "ctest_memcheck";}
52 * Succinct documentation.
54 virtual const char* GetTerseDocumentation()
56 return "Run tests with a dynamic analysis tool.";
62 virtual const char* GetFullDocumentation()
65 " ctest_memcheck([BUILD build_dir] [RETURN_VALUE res] [APPEND])\n"
66 "Performs a memory checking of tests in the given build directory and "
67 "stores results in MemCheck.xml. The second argument is a variable "
68 "that will hold value."
70 CTEST_COMMAND_APPEND_OPTION_DOCS
;
73 cmTypeMacro(cmCTestMemCheckCommand
, cmCTestTestCommand
);
76 cmCTestGenericHandler
* InitializeActualHandler();