2005-02-17 18:51:52 +03:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
Program: CMake - Cross-Platform Makefile Generator
|
|
|
|
Module: $RCSfile$
|
|
|
|
Language: C++
|
|
|
|
Date: $Date$
|
|
|
|
Version: $Revision$
|
|
|
|
|
|
|
|
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
|
|
|
|
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
|
|
|
|
|
2006-03-09 19:17:10 +03:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
2005-02-17 18:51:52 +03:00
|
|
|
PURPOSE. See the above copyright notices for more information.
|
|
|
|
|
|
|
|
=========================================================================*/
|
|
|
|
#ifndef cmCTestStartCommand_h
|
|
|
|
#define cmCTestStartCommand_h
|
|
|
|
|
|
|
|
#include "cmCTestCommand.h"
|
|
|
|
|
|
|
|
/** \class cmCTestStart
|
|
|
|
* \brief Run a ctest script
|
|
|
|
*
|
|
|
|
* cmCTestStartCommand defineds the command to start the nightly testing.
|
|
|
|
*/
|
|
|
|
class cmCTestStartCommand : public cmCTestCommand
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
cmCTestStartCommand() {}
|
2006-03-09 19:17:10 +03:00
|
|
|
|
2005-02-17 18:51:52 +03:00
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
2006-03-09 19:17:10 +03:00
|
|
|
virtual cmCommand* Clone()
|
2005-02-17 18:51:52 +03:00
|
|
|
{
|
|
|
|
cmCTestStartCommand* ni = new cmCTestStartCommand;
|
2006-03-10 23:03:09 +03:00
|
|
|
ni->CTest = this->CTest;
|
|
|
|
ni->CTestScriptHandler = this->CTestScriptHandler;
|
2005-02-17 18:51:52 +03:00
|
|
|
return ni;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is called when the command is first encountered in
|
|
|
|
* the CMakeLists.txt file.
|
|
|
|
*/
|
|
|
|
virtual bool InitialPass(std::vector<std::string> const& args);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the command as specified in CMakeList.txt.
|
|
|
|
*/
|
|
|
|
virtual const char* GetName() { return "CTEST_START";}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Succinct documentation.
|
|
|
|
*/
|
2006-03-09 19:17:10 +03:00
|
|
|
virtual const char* GetTerseDocumentation()
|
2005-02-17 18:51:52 +03:00
|
|
|
{
|
|
|
|
return "Starts the testing for a given model";
|
|
|
|
}
|
2006-03-09 19:17:10 +03:00
|
|
|
|
2005-02-17 18:51:52 +03:00
|
|
|
/**
|
|
|
|
* More documentation.
|
|
|
|
*/
|
|
|
|
virtual const char* GetFullDocumentation()
|
|
|
|
{
|
|
|
|
return
|
|
|
|
" CTEST_START(Model [source [binary]])\n"
|
2006-03-09 19:17:10 +03:00
|
|
|
"Starts the testing for a given model. The command should be called "
|
|
|
|
"after the binary directory is initialized. If the 'source' and "
|
|
|
|
"'binary' directory are not specified, it reads the "
|
|
|
|
"CTEST_SOURCE_DIRECTORY and CTEST_BINARY_DIRECTORY.";
|
2005-02-17 18:51:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
cmTypeMacro(cmCTestStartCommand, cmCTestCommand);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|