[Cmake-commits] [cmake-commits] king committed cmCTestCVS.cxx NONE 1.1 cmCTestCVS.h NONE 1.1 cmCTestSVN.cxx NONE 1.1 cmCTestSVN.h NONE 1.1 cmCTestUpdateHandler.cxx 1.57 1.58
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Feb 24 10:39:57 EST 2009
Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv2100/Source/CTest
Modified Files:
cmCTestUpdateHandler.cxx
Added Files:
cmCTestCVS.cxx cmCTestCVS.h cmCTestSVN.cxx cmCTestSVN.h
Log Message:
ENH: Add cmCTestCVS and cmCTestSVN
These cmCTestVC subclasses will implement interaction with CVS and SVN
tools.
Index: cmCTestUpdateHandler.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestUpdateHandler.cxx,v
retrieving revision 1.57
retrieving revision 1.58
diff -C 2 -d -r1.57 -r1.58
*** cmCTestUpdateHandler.cxx 24 Feb 2009 14:09:43 -0000 1.57
--- cmCTestUpdateHandler.cxx 24 Feb 2009 15:39:55 -0000 1.58
***************
*** 28,31 ****
--- 28,37 ----
#include "cmXMLSafe.h"
+ #include "cmCTestVC.h"
+ #include "cmCTestCVS.h"
+ #include "cmCTestSVN.h"
+
+ #include <cmsys/auto_ptr.hxx>
+
//#include <cmsys/RegularExpression.hxx>
#include <cmsys/Process.h>
***************
*** 324,327 ****
--- 330,344 ----
<< std::endl;);
+ // Create an object to interact with the VCS tool.
+ cmsys::auto_ptr<cmCTestVC> vc;
+ switch (this->UpdateType)
+ {
+ case e_CVS: vc.reset(new cmCTestCVS(this->CTest, ofs)); break;
+ case e_SVN: vc.reset(new cmCTestSVN(this->CTest, ofs)); break;
+ default: vc.reset(new cmCTestVC(this->CTest, ofs)); break;
+ }
+ vc->SetCommandLineTool(this->UpdateCommand);
+ vc->SetSourceDirectory(sourceDirectory);
+
// And update options
std::string updateOptions
--- NEW FILE: cmCTestCVS.cxx ---
/*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
Module: $RCSfile: cmCTestCVS.cxx,v $
Language: C++
Date: $Date: 2009-02-24 15:39:54 $
Version: $Revision: 1.1 $
Copyright (c) 2002 Kitware, Inc. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "cmCTestCVS.h"
//----------------------------------------------------------------------------
cmCTestCVS::cmCTestCVS(cmCTest* ct, std::ostream& log): cmCTestVC(ct, log)
{
}
//----------------------------------------------------------------------------
cmCTestCVS::~cmCTestCVS()
{
}
--- NEW FILE: cmCTestSVN.h ---
/*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
Module: $RCSfile: cmCTestSVN.h,v $
Language: C++
Date: $Date: 2009-02-24 15:39:55 $
Version: $Revision: 1.1 $
Copyright (c) 2002 Kitware, Inc. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef cmCTestSVN_h
#define cmCTestSVN_h
#include "cmCTestVC.h"
/** \class cmCTestSVN
* \brief Interaction with subversion command-line tool
*
*/
class cmCTestSVN: public cmCTestVC
{
public:
/** Construct with a CTest instance and update log stream. */
cmCTestSVN(cmCTest* ctest, std::ostream& log);
virtual ~cmCTestSVN();
};
#endif
--- NEW FILE: cmCTestSVN.cxx ---
/*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
Module: $RCSfile: cmCTestSVN.cxx,v $
Language: C++
Date: $Date: 2009-02-24 15:39:55 $
Version: $Revision: 1.1 $
Copyright (c) 2002 Kitware, Inc. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "cmCTestSVN.h"
//----------------------------------------------------------------------------
cmCTestSVN::cmCTestSVN(cmCTest* ct, std::ostream& log): cmCTestVC(ct, log)
{
}
//----------------------------------------------------------------------------
cmCTestSVN::~cmCTestSVN()
{
}
--- NEW FILE: cmCTestCVS.h ---
/*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
Module: $RCSfile: cmCTestCVS.h,v $
Language: C++
Date: $Date: 2009-02-24 15:39:55 $
Version: $Revision: 1.1 $
Copyright (c) 2002 Kitware, Inc. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef cmCTestCVS_h
#define cmCTestCVS_h
#include "cmCTestVC.h"
/** \class cmCTestCVS
* \brief Interaction with cvs command-line tool
*
*/
class cmCTestCVS: public cmCTestVC
{
public:
/** Construct with a CTest instance and update log stream. */
cmCTestCVS(cmCTest* ctest, std::ostream& log);
virtual ~cmCTestCVS();
};
#endif
More information about the Cmake-commits
mailing list