cmake/Source/CTest/cmCTestSubmitCommand.h

90 lines
2.4 KiB
C
Raw Normal View History

2009-10-04 10:30:41 +03:00
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
2009-10-04 10:30:41 +03:00
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
2009-10-04 10:30:41 +03:00
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#ifndef cmCTestSubmitCommand_h
#define cmCTestSubmitCommand_h
#include "cmCTestHandlerCommand.h"
2009-10-04 10:30:41 +03:00
#include "cmCTest.h"
/** \class cmCTestSubmit
* \brief Run a ctest script
*
* cmCTestSubmitCommand defineds the command to submit the test results for
* the project.
*/
class cmCTestSubmitCommand : public cmCTestHandlerCommand
{
public:
2009-10-04 10:30:41 +03:00
cmCTestSubmitCommand()
{
this->PartsMentioned = false;
this->FilesMentioned = false;
2010-11-13 01:00:53 +02:00
this->InternalTest = false;
this->RetryCount = "";
this->RetryDelay = "";
2015-04-27 22:25:09 +02:00
this->CDashUpload = false;
2009-10-04 10:30:41 +03:00
}
/**
* This is a virtual constructor for the command.
*/
virtual cmCommand* Clone()
{
cmCTestSubmitCommand* ni = new cmCTestSubmitCommand;
ni->CTest = this->CTest;
ni->CTestScriptHandler = this->CTestScriptHandler;
return ni;
}
2015-04-27 22:25:09 +02:00
virtual bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus &status);
/**
* The name of the command as specified in CMakeList.txt.
*/
2015-04-27 22:25:09 +02:00
virtual std::string GetName() const { return "ctest_submit";}
cmTypeMacro(cmCTestSubmitCommand, cmCTestHandlerCommand);
protected:
cmCTestGenericHandler* InitializeHandler();
2009-10-04 10:30:41 +03:00
virtual bool CheckArgumentKeyword(std::string const& arg);
virtual bool CheckArgumentValue(std::string const& arg);
enum
{
ArgumentDoingParts = Superclass::ArgumentDoingLast1,
ArgumentDoingFiles,
2010-11-13 01:00:53 +02:00
ArgumentDoingRetryDelay,
ArgumentDoingRetryCount,
2015-04-27 22:25:09 +02:00
ArgumentDoingCDashUpload,
ArgumentDoingCDashUploadType,
2009-10-04 10:30:41 +03:00
ArgumentDoingLast2
};
bool PartsMentioned;
std::set<cmCTest::Part> Parts;
bool FilesMentioned;
2010-11-13 01:00:53 +02:00
bool InternalTest;
2009-10-04 10:30:41 +03:00
cmCTest::SetOfStrings Files;
2010-11-13 01:00:53 +02:00
std::string RetryCount;
std::string RetryDelay;
2015-04-27 22:25:09 +02:00
bool CDashUpload;
std::string CDashUploadFile;
std::string CDashUploadType;
};
#endif