1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestSubmitCommand.h,v $
6 Date: $Date: 2006-03-29 17:01:24 $
7 Version: $Revision: 1.5 $
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 cmCTestSubmitCommand_h
18 #define cmCTestSubmitCommand_h
20 #include "cmCTestHandlerCommand.h"
22 /** \class cmCTestSubmit
23 * \brief Run a ctest script
25 * cmCTestSubmitCommand defineds the command to submit the test results for
28 class cmCTestSubmitCommand
: public cmCTestHandlerCommand
32 cmCTestSubmitCommand() {}
35 * This is a virtual constructor for the command.
37 virtual cmCommand
* Clone()
39 cmCTestSubmitCommand
* ni
= new cmCTestSubmitCommand
;
40 ni
->CTest
= this->CTest
;
41 ni
->CTestScriptHandler
= this->CTestScriptHandler
;
46 * The name of the command as specified in CMakeList.txt.
48 virtual const char* GetName() { return "CTEST_SUBMIT";}
51 * Succinct documentation.
53 virtual const char* GetTerseDocumentation()
55 return "Submits the repository.";
61 virtual const char* GetFullDocumentation()
64 " CTEST_SUBMIT([RETURN_VALUE res])\n"
65 "Submits the test results for the project.";
68 cmTypeMacro(cmCTestSubmitCommand
, cmCTestHandlerCommand
);
71 cmCTestGenericHandler
* InitializeHandler();