Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / CTest / cmCTestSleepCommand.h
blob4d87f1fc13ec39c3e6d47165ba5a67c3a895a8be
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestSleepCommand.h,v $
5 Language: C++
6 <<<<<<< cmCTestSleepCommand.h
7 Date: $Date: 2008/01/23 15:28:01 $
8 Version: $Revision: 1.3 $
9 =======
10 Date: $Date: 2008-05-12 13:11:51 $
11 Version: $Revision: 1.4 $
12 >>>>>>> 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)
31 * programs to create.
33 class cmCTestSleepCommand : public cmCTestCommand
35 public:
37 cmCTestSleepCommand() {}
39 /**
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;
47 return ni;
50 /**
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);
57 /**
58 * The name of the command as specified in CMakeList.txt.
60 virtual const char* GetName() { return "ctest_sleep";}
62 /**
63 * Succinct documentation.
65 virtual const char* GetTerseDocumentation()
67 return "sleeps for some amount of time";
70 /**
71 * More documentation.
73 virtual const char* GetFullDocumentation()
75 return
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 "
80 "seconds.";
83 cmTypeMacro(cmCTestSleepCommand, cmCTestCommand);
88 #endif