diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-01-07 16:24:22 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-01-07 16:24:22 (GMT) |
commit | 2c2291bbe03aec2dd6637a5311204f09ff6c58ba (patch) | |
tree | 35947ba07840f9ea939e33567c1e6c3e79a37132 /Source/cmCTest.h | |
parent | a8620773f3b934752062015a0df9fbe100e10dc7 (diff) | |
download | CMake-2c2291bbe03aec2dd6637a5311204f09ff6c58ba.zip CMake-2c2291bbe03aec2dd6637a5311204f09ff6c58ba.tar.gz CMake-2c2291bbe03aec2dd6637a5311204f09ff6c58ba.tar.bz2 |
ENH: add new feature to ctest so that it can cmake, build and run a test executable
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h index 6f740c9..e07d0e1 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -26,6 +26,9 @@ class cmCTest public: typedef std::vector<cmStdString> tm_VectorOfStrings; + ///! Process Command line arguments + int Run(std::vector<std::string>const&, std::string* output = 0); + /** * Run a dashboard using a specified confiuration script */ @@ -289,6 +292,21 @@ private: int m_CompatibilityMode; + // information for the --build-and-test options + std::string m_ExecutableDirectory; + std::string m_CMakeSelf; + std::string m_CTestSelf; + std::string m_SourceDir; + std::string m_BinaryDir; + std::string m_BuildGenerator; + std::string m_BuildMakeProgram; + std::string m_BuildProject; + std::string m_BuildTarget; + std::vector<std::string> m_BuildOptions; + std::string m_TestCommand; + std::vector<std::string> m_TestCommandArgs; + bool m_BuildTwoConfig; + bool m_BuildNoClean; std::string m_NotesFiles; //! Reread the configuration file @@ -335,8 +353,12 @@ private: bool ProcessMemCheckValgrindOutput(const std::string& str, std::string& log, int* results); bool ProcessMemCheckPurifyOutput(const std::string& str, std::string& log, int* results); - //! Initialize memory checking subsystem. + ///! Run CMake and build a test and then run it as a single test. + int RunCMakeAndTest(std::string* output); + ///! Initialize memory checking subsystem. bool InitializeMemoryChecking(); + ///! Find the running cmake + void FindRunningCMake(const char* arg0); }; #endif |