cmake/Source/CTest/cmCTestTestCommand.h

66 lines
1.6 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. */
2021-09-14 00:13:48 +02:00
#pragma once
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
#include <string>
2020-02-01 23:06:01 +01:00
#include <utility>
#include <cm/memory>
#include "cmCTestHandlerCommand.h"
#include "cmCommand.h"
2016-10-30 18:24:19 +01:00
class cmCTestGenericHandler;
2021-09-14 00:13:48 +02:00
class cmCTestTestHandler;
/** \class cmCTestTest
* \brief Run a ctest script
*
* cmCTestTestCommand defineds the command to test the project.
*/
class cmCTestTestCommand : public cmCTestHandlerCommand
{
public:
/**
* This is a virtual constructor for the command.
*/
2020-02-01 23:06:01 +01:00
std::unique_ptr<cmCommand> Clone() override
2016-07-09 11:21:54 +02:00
{
2020-02-01 23:06:01 +01:00
auto ni = cm::make_unique<cmCTestTestCommand>();
ni->CTest = this->CTest;
ni->CTestScriptHandler = this->CTestScriptHandler;
2020-02-01 23:06:01 +01:00
return std::unique_ptr<cmCommand>(std::move(ni));
2016-07-09 11:21:54 +02:00
}
/**
* The name of the command as specified in CMakeList.txt.
*/
2018-01-26 17:06:56 +01:00
std::string GetName() const override { return "ctest_test"; }
protected:
2020-02-01 23:06:01 +01:00
void BindArguments() override;
2021-09-14 00:13:48 +02:00
virtual cmCTestTestHandler* InitializeActualHandler();
2018-01-26 17:06:56 +01:00
cmCTestGenericHandler* InitializeHandler() override;
2020-02-01 23:06:01 +01:00
std::string Start;
std::string End;
std::string Stride;
std::string Exclude;
std::string Include;
std::string ExcludeLabel;
std::string IncludeLabel;
std::string ExcludeFixture;
std::string ExcludeFixtureSetup;
std::string ExcludeFixtureCleanup;
std::string ParallelLevel;
2020-08-30 11:54:41 +02:00
std::string Repeat;
2020-02-01 23:06:01 +01:00
std::string ScheduleRandom;
std::string StopTime;
std::string TestLoad;
std::string ResourceSpecFile;
2021-09-14 00:13:48 +02:00
std::string OutputJUnit;
2020-08-30 11:54:41 +02:00
bool StopOnFailure = false;
};