1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestSubmitCommand.h,v $
6 Date: $Date: 2009-02-20 20:50:15 $
7 Version: $Revision: 1.9 $
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"
23 /** \class cmCTestSubmit
24 * \brief Run a ctest script
26 * cmCTestSubmitCommand defineds the command to submit the test results for
29 class cmCTestSubmitCommand
: public cmCTestHandlerCommand
33 cmCTestSubmitCommand()
35 this->PartsMentioned
= false;
36 this->FilesMentioned
= false;
40 * This is a virtual constructor for the command.
42 virtual cmCommand
* Clone()
44 cmCTestSubmitCommand
* ni
= new cmCTestSubmitCommand
;
45 ni
->CTest
= this->CTest
;
46 ni
->CTestScriptHandler
= this->CTestScriptHandler
;
51 * The name of the command as specified in CMakeList.txt.
53 virtual const char* GetName() { return "ctest_submit";}
56 * Succinct documentation.
58 virtual const char* GetTerseDocumentation()
60 return "Submit results to a dashboard server.";
66 virtual const char* GetFullDocumentation()
69 " ctest_submit([PARTS ...] [FILES ...] [RETURN_VALUE res])\n"
70 "By default all available parts are submitted if no PARTS or FILES "
72 "The PARTS option lists a subset of parts to be submitted. "
73 "Valid part names are:\n"
75 " Update = ctest_update results, in Update.xml\n"
76 " Configure = ctest_configure results, in Configure.xml\n"
77 " Build = ctest_build results, in Build.xml\n"
78 " Test = ctest_test results, in Test.xml\n"
79 " Coverage = ctest_coverage results, in Coverage.xml\n"
80 " MemCheck = ctest_memcheck results, in DynamicAnalysis.xml\n"
81 " Notes = Files listed by CTEST_NOTES_FILES, in Notes.xml\n"
82 " ExtraFiles = Files listed by CTEST_EXTRA_SUBMIT_FILES\n"
84 "The FILES option explicitly lists specific files to be submitted. "
85 "Each individual file must exist at the time of the call.\n";
88 cmTypeMacro(cmCTestSubmitCommand
, cmCTestHandlerCommand
);
91 cmCTestGenericHandler
* InitializeHandler();
93 virtual bool CheckArgumentKeyword(std::string
const& arg
);
94 virtual bool CheckArgumentValue(std::string
const& arg
);
98 ArgumentDoingParts
= Superclass::ArgumentDoingLast1
,
104 std::set
<cmCTest::Part
> Parts
;
106 cmCTest::SetOfStrings Files
;