1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestRunScriptCommand.h,v $
6 <<<<<<< cmCTestRunScriptCommand.h
7 Date: $Date: 2008/01/23 15:28:01 $
8 Version: $Revision: 1.4 $
10 Date: $Date: 2008-05-12 13:11:51 $
11 Version: $Revision: 1.5 $
14 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
15 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
17 This software is distributed WITHOUT ANY WARRANTY; without even
18 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
19 PURPOSE. See the above copyright notices for more information.
21 =========================================================================*/
22 #ifndef cmCTestRunScriptCommand_h
23 #define cmCTestRunScriptCommand_h
25 #include "cmCTestCommand.h"
27 /** \class cmCTestRunScript
28 * \brief Run a ctest script
30 * cmLibrarysCommand defines a list of executable (i.e., test)
33 class cmCTestRunScriptCommand
: public cmCTestCommand
37 cmCTestRunScriptCommand() {}
40 * This is a virtual constructor for the command.
42 virtual cmCommand
* Clone()
44 cmCTestRunScriptCommand
* ni
= new cmCTestRunScriptCommand
;
45 ni
->CTest
= this->CTest
;
46 ni
->CTestScriptHandler
= this->CTestScriptHandler
;
51 * This is called when the command is first encountered in
52 * the CMakeLists.txt file.
54 virtual bool InitialPass(std::vector
<std::string
> const& args
,
55 cmExecutionStatus
&status
);
58 * The name of the command as specified in CMakeList.txt.
60 virtual const char* GetName() { return "ctest_run_script";}
63 * Succinct documentation.
65 virtual const char* GetTerseDocumentation()
67 return "runs a ctest -S script";
73 virtual const char* GetFullDocumentation()
76 " ctest_run_script([NEW_PROCESS] script_file_name script_file_name1 \n"
77 " script_file_name2 ...)\n"
78 "Runs a script or scripts much like if it was run from ctest -S. "
79 "If no argument is provided then the current script is run using "
80 "the current settings of the variables. If NEW_PROCESS is specified "
81 "then each script will be run in a seperate process.";
84 cmTypeMacro(cmCTestRunScriptCommand
, cmCTestCommand
);