cmake/Source/CTest/cmCTestStartCommand.h

64 lines
1.5 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#ifndef cmCTestStartCommand_h
#define cmCTestStartCommand_h
2017-07-20 19:35:53 +02:00
#include "cmConfigure.h"
2016-10-30 18:24:19 +01:00
#include "cmCTestCommand.h"
2016-10-30 18:24:19 +01:00
#include <iosfwd>
#include <string>
#include <vector>
class cmCommand;
class cmExecutionStatus;
/** \class cmCTestStart
* \brief Run a ctest script
*
* cmCTestStartCommand defineds the command to start the nightly testing.
*/
class cmCTestStartCommand : public cmCTestCommand
{
public:
2010-03-17 14:00:29 +02:00
cmCTestStartCommand();
/**
* This is a virtual constructor for the command.
*/
2016-10-30 18:24:19 +01:00
cmCommand* Clone() CM_OVERRIDE
2016-07-09 11:21:54 +02:00
{
cmCTestStartCommand* ni = new cmCTestStartCommand;
ni->CTest = this->CTest;
ni->CTestScriptHandler = this->CTestScriptHandler;
2010-03-17 14:00:29 +02:00
ni->CreateNewTag = this->CreateNewTag;
2015-08-17 11:37:30 +02:00
ni->Quiet = this->Quiet;
return ni;
2016-07-09 11:21:54 +02:00
}
/**
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
2016-10-30 18:24:19 +01:00
bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status) CM_OVERRIDE;
2010-03-17 14:00:29 +02:00
/**
* Will this invocation of ctest_start create a new TAG file?
*/
2016-07-09 11:21:54 +02:00
bool ShouldCreateNewTag() { return this->CreateNewTag; }
2010-03-17 14:00:29 +02:00
2015-08-17 11:37:30 +02:00
/**
* Should this invocation of ctest_start output non-error messages?
*/
2016-07-09 11:21:54 +02:00
bool ShouldBeQuiet() { return this->Quiet; }
2015-08-17 11:37:30 +02:00
2010-03-17 14:00:29 +02:00
private:
bool InitialCheckout(std::ostream& ofs, std::string const& sourceDir);
bool CreateNewTag;
2015-08-17 11:37:30 +02:00
bool Quiet;
};
#endif