diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-16 17:18:21 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-16 17:18:21 (GMT) |
commit | 2cc5ed49d17e5a26308d3af288767e7ef405903b (patch) | |
tree | a918403b8c04e6058785876c71e8b79cffd36948 /Source/cmCTest.h | |
parent | b156314ab3cedc7fa1c8198a320be4a05dd6ff8d (diff) | |
download | CMake-2cc5ed49d17e5a26308d3af288767e7ef405903b.zip CMake-2cc5ed49d17e5a26308d3af288767e7ef405903b.tar.gz CMake-2cc5ed49d17e5a26308d3af288767e7ef405903b.tar.bz2 |
ENH: Several improvements to CTest:
1. Support for showing line numbers when debugging ctest --show-line-numbers
2. Modify the ctest initialization code, so that it can be delayed
3. Handlers now have corresponding command if they were invoked from the command (so far only update actually use that)
4. Start command is simplified and the functionality is moved to CTest
5. Update can perform initial checkout if CTEST_CHECKOUT_COMMAND is set
6. Add test that checks out kwsys and perform tests on the fresh checkout
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h index e49bd0b..4d77a95 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -26,12 +26,13 @@ class cmake; class cmMakefile; class cmCTestGenericHandler; class cmGeneratedFileStream; +class cmCTestCommand; #define cmCTestLog(ctSelf, logType, msg) \ do { \ cmOStringStream cmCTestLog_msg; \ cmCTestLog_msg << msg; \ - (ctSelf)->Log(cmCTest::logType, cmCTestLog_msg.str().c_str());\ + (ctSelf)->Log(cmCTest::logType, __FILE__, __LINE__, cmCTestLog_msg.str().c_str());\ } while ( 0 ) #ifdef cerr @@ -55,7 +56,8 @@ public: /** * Initialize and finalize testing */ - int Initialize(const char* binary_dir, bool new_tag = false); + int Initialize(const char* binary_dir, bool new_tag = false, bool verbose_tag = true); + bool InitializeFromCommand(cmCTestCommand* command, bool first = false); void Finalize(); /** @@ -262,7 +264,7 @@ public: }; //! Add log to the output - void Log(int logType, const char* msg); + void Log(int logType, const char* file, int line, const char* msg); private: std::string m_ConfigType; @@ -344,6 +346,7 @@ private: bool m_SuppressUpdatingCTestConfiguration; bool m_Debug; + bool m_ShowLineNumbers; bool m_Quiet; |