[Cmake-commits] [cmake-commits] david.cole committed cmTest.cxx 1.13 1.14
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Apr 3 11:41:37 EDT 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv8481/Source
Modified Files:
cmTest.cxx
Log Message:
BUG: Fix documentation deficiency noted in issue #7885. Thanks to Philip Lowman for the gist of the patch.
Index: cmTest.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmTest.cxx,v
retrieving revision 1.13
retrieving revision 1.14
diff -C 2 -d -r1.13 -r1.14
*** cmTest.cxx 16 Mar 2009 14:51:14 -0000 1.13
--- cmTest.cxx 3 Apr 2009 15:41:33 -0000 1.14
***************
*** 21,24 ****
--- 21,25 ----
#include "cmMakefile.h"
+ //----------------------------------------------------------------------------
cmTest::cmTest()
{
***************
*** 27,34 ****
--- 28,37 ----
}
+ //----------------------------------------------------------------------------
cmTest::~cmTest()
{
}
+ //----------------------------------------------------------------------------
void cmTest::SetName(const char* name)
{
***************
*** 40,43 ****
--- 43,47 ----
}
+ //----------------------------------------------------------------------------
void cmTest::SetCommand(std::vector<std::string> const& command)
{
***************
*** 45,48 ****
--- 49,53 ----
}
+ //----------------------------------------------------------------------------
const char *cmTest::GetProperty(const char* prop) const
{
***************
*** 57,60 ****
--- 62,66 ----
}
+ //----------------------------------------------------------------------------
bool cmTest::GetPropertyAsBool(const char* prop) const
{
***************
*** 62,65 ****
--- 68,72 ----
}
+ //----------------------------------------------------------------------------
void cmTest::SetProperty(const char* prop, const char* value)
{
***************
*** 85,99 ****
void cmTest::SetMakefile(cmMakefile* mf)
{
- // Set our makefile.
this->Makefile = mf;
this->Properties.SetCMakeInstance(mf->GetCMakeInstance());
}
! // define properties
void cmTest::DefineProperties(cmake *cm)
{
- // define properties
cm->DefineProperty
! ("FAIL_REGULAR_EXPRESSION", cmProperty::TEST,
"If the output matches this regular expression the test will fail.",
"If set, if the output matches one of "
--- 92,113 ----
void cmTest::SetMakefile(cmMakefile* mf)
{
this->Makefile = mf;
this->Properties.SetCMakeInstance(mf->GetCMakeInstance());
}
! //----------------------------------------------------------------------------
void cmTest::DefineProperties(cmake *cm)
{
cm->DefineProperty
! ("ENVIRONMENT", cmProperty::TEST,
! "Specify environment variables that should be defined for running "
! "a test.",
! "If set to a list of environment variables and values of the form "
! "MYVAR=value those environment variables will be defined while "
! "running the test. The environment is restored to its previous state "
! "after the test is done.");
!
! cm->DefineProperty
! ("FAIL_REGULAR_EXPRESSION", cmProperty::TEST,
"If the output matches this regular expression the test will fail.",
"If set, if the output matches one of "
More information about the Cmake-commits
mailing list