cmake/Source/CTest/cmCTestUploadCommand.h

62 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. */
2011-06-19 15:41:06 +03:00
#ifndef cmCTestUploadCommand_h
#define cmCTestUploadCommand_h
2017-07-20 19:35:53 +02:00
#include "cmConfigure.h"
2016-07-09 11:21:54 +02:00
2011-06-19 15:41:06 +03:00
#include "cmCTest.h"
2016-10-30 18:24:19 +01:00
#include "cmCTestHandlerCommand.h"
#include <string>
class cmCTestGenericHandler;
class cmCommand;
2011-06-19 15:41:06 +03:00
/** \class cmCTestUpload
* \brief Run a ctest script
*
* cmCTestUploadCommand defines the command to upload result files for
* the project.
*/
class cmCTestUploadCommand : public cmCTestHandlerCommand
{
public:
2016-07-09 11:21:54 +02:00
cmCTestUploadCommand() {}
2011-06-19 15:41:06 +03:00
/**
* 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
{
2011-06-19 15:41:06 +03:00
cmCTestUploadCommand* ni = new cmCTestUploadCommand;
ni->CTest = this->CTest;
ni->CTestScriptHandler = this->CTestScriptHandler;
return ni;
2016-07-09 11:21:54 +02:00
}
2011-06-19 15:41:06 +03: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_upload"; }
2011-06-19 15:41:06 +03:00
2017-04-14 19:02:05 +02:00
typedef cmCTestHandlerCommand Superclass;
2011-06-19 15:41:06 +03:00
protected:
2016-10-30 18:24:19 +01:00
cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
2011-06-19 15:41:06 +03:00
2016-10-30 18:24:19 +01:00
bool CheckArgumentKeyword(std::string const& arg) CM_OVERRIDE;
bool CheckArgumentValue(std::string const& arg) CM_OVERRIDE;
2011-06-19 15:41:06 +03:00
enum
{
ArgumentDoingFiles = Superclass::ArgumentDoingLast1,
2016-10-30 18:24:19 +01:00
ArgumentDoingCaptureCMakeError,
2011-06-19 15:41:06 +03:00
ArgumentDoingLast2
};
cmCTest::SetOfStrings Files;
};
#endif