cmake/Source/CTest/cmCTestTestCommand.h

68 lines
1.4 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 cmCTestTestCommand_h
#define cmCTestTestCommand_h
2016-10-30 18:24:19 +01:00
#include <cmConfigure.h>
#include "cmCTestHandlerCommand.h"
2016-10-30 18:24:19 +01:00
#include "cmTypeMacro.h"
#include <string>
class cmCTestGenericHandler;
class cmCommand;
/** \class cmCTestTest
* \brief Run a ctest script
*
* cmCTestTestCommand defineds the command to test the project.
*/
class cmCTestTestCommand : public cmCTestHandlerCommand
{
public:
cmCTestTestCommand();
/**
* 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
{
cmCTestTestCommand* ni = new cmCTestTestCommand;
ni->CTest = this->CTest;
ni->CTestScriptHandler = this->CTestScriptHandler;
return ni;
2016-07-09 11:21:54 +02:00
}
/**
* The name of the command as specified in CMakeList.txt.
*/
2016-10-30 18:24:19 +01:00
std::string GetName() const CM_OVERRIDE { return "ctest_test"; }
cmTypeMacro(cmCTestTestCommand, cmCTestHandlerCommand);
protected:
virtual cmCTestGenericHandler* InitializeActualHandler();
2016-10-30 18:24:19 +01:00
cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
2016-07-09 11:21:54 +02:00
enum
{
ctt_BUILD = ct_LAST,
ctt_RETURN_VALUE,
ctt_START,
ctt_END,
ctt_STRIDE,
ctt_EXCLUDE,
ctt_INCLUDE,
2009-10-04 10:30:41 +03:00
ctt_EXCLUDE_LABEL,
ctt_INCLUDE_LABEL,
ctt_PARALLEL_LEVEL,
2010-03-17 14:00:29 +02:00
ctt_SCHEDULE_RANDOM,
2010-06-23 01:18:35 +03:00
ctt_STOP_TIME,
2015-11-17 17:22:37 +01:00
ctt_TEST_LOAD,
ctt_LAST
};
};
#endif