ENH: keep cleaning up Tcl/Tk modules
[cmake.git] / Source / CTest / cmCTestCoverageCommand.h
blobf4149cc811056b2fe4bb9f2139bd887f54672d5b
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestCoverageCommand.h,v $
5 Language: C++
6 Date: $Date: 2006-03-29 17:01:24 $
7 Version: $Revision: 1.4 $
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 cmCTestCoverageCommand_h
18 #define cmCTestCoverageCommand_h
20 #include "cmCTestHandlerCommand.h"
22 /** \class cmCTestCoverage
23 * \brief Run a ctest script
25 * cmCTestCoverageCommand defineds the command to test the project.
27 class cmCTestCoverageCommand : public cmCTestHandlerCommand
29 public:
31 cmCTestCoverageCommand() {}
33 /**
34 * This is a virtual constructor for the command.
36 virtual cmCommand* Clone()
38 cmCTestCoverageCommand* ni = new cmCTestCoverageCommand;
39 ni->CTest = this->CTest;
40 ni->CTestScriptHandler = this->CTestScriptHandler;
41 return ni;
44 /**
45 * The name of the command as specified in CMakeList.txt.
47 virtual const char* GetName() { return "CTEST_COVERAGE";}
49 /**
50 * Succinct documentation.
52 virtual const char* GetTerseDocumentation()
54 return "Tests the repository.";
57 /**
58 * More documentation.
60 virtual const char* GetFullDocumentation()
62 return
63 " CTEST_COVERAGE([BUILD build_dir] [RETURN_VALUE res])\n"
64 "Perform the coverage of the given build directory and stores results "
65 "in Coverage.xml. The second argument is a variable that will hold "
66 "value.";
69 cmTypeMacro(cmCTestCoverageCommand, cmCTestHandlerCommand);
71 protected:
72 cmCTestGenericHandler* InitializeHandler();
76 #endif