1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestSleepCommand.h,v $
6 <<<<<<< cmCTestSleepCommand.h
7 Date: $Date: 2008/01/23 15:28:01 $
8 Version: $Revision: 1.3 $
10 Date: $Date: 2008-05-12 13:11:51 $
11 Version: $Revision: 1.4 $
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 cmCTestSleepCommand_h
23 #define cmCTestSleepCommand_h
25 #include "cmCTestCommand.h"
27 /** \class cmCTestSleep
28 * \brief Run a ctest script
30 * cmLibrarysCommand defines a list of executable (i.e., test)
33 class cmCTestSleepCommand
: public cmCTestCommand
37 cmCTestSleepCommand() {}
40 * This is a virtual constructor for the command.
42 virtual cmCommand
* Clone()
44 cmCTestSleepCommand
* ni
= new cmCTestSleepCommand
;
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_sleep";}
63 * Succinct documentation.
65 virtual const char* GetTerseDocumentation()
67 return "sleeps for some amount of time";
73 virtual const char* GetFullDocumentation()
76 " ctest_sleep( seconds )\n"
77 " ctest_sleep( time1 duration time2 )\n"
78 "With one argument it will sleep for a given number of seconds. "
79 "With three arguments it will wait for time2 - time1 - duration "
83 cmTypeMacro(cmCTestSleepCommand
, cmCTestCommand
);