diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-09 02:00:11 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-09 02:00:11 (GMT) |
commit | 8f63293056dd670849dcf205a6de56f48dfafe0d (patch) | |
tree | a62cc918b0a16766f94b22197ca21dbd91428b22 /Source/ctest.h | |
parent | 350eeeab4e3833ee12385dfacef34b8513b81fa5 (diff) | |
download | CMake-8f63293056dd670849dcf205a6de56f48dfafe0d.zip CMake-8f63293056dd670849dcf205a6de56f48dfafe0d.tar.gz CMake-8f63293056dd670849dcf205a6de56f48dfafe0d.tar.bz2 |
Add parsing of warnings and errors
Diffstat (limited to 'Source/ctest.h')
-rw-r--r-- | Source/ctest.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/Source/ctest.h b/Source/ctest.h index 23c59b6..34f6858 100644 --- a/Source/ctest.h +++ b/Source/ctest.h @@ -61,11 +61,6 @@ public: std::vector<std::string> &failed); /** - * Generate the Dart compatible output - */ - void GenerateDartOutput(std::ostream& os); - - /** * Find the executable for a test */ std::string FindExecutable(const char *exe); @@ -115,6 +110,18 @@ private: std::string m_Output; }; + struct cmCTestBuildErrorWarning + { + bool m_Error; + int m_LogLine; + std::string m_Text; + std::string m_SourceFile; + std::string m_SourceFileTail; + int m_LineNumber; + std::string m_PreContext; + std::string m_PostContext; + }; + typedef std::vector<cmCTestTestResult> tm_TestResultsVector; typedef std::map<std::string, std::string> tm_DartConfigurationMap; @@ -122,5 +129,14 @@ private: std::string m_ToplevelPath; tm_DartConfigurationMap m_DartConfiguration; int m_Tests[LAST_TEST]; + + + /** + * Generate the Dart compatible output + */ + void GenerateDartOutput(std::ostream& os); + void GenerateDartBuildOutput(std::ostream& os, + std::vector<cmCTestBuildErrorWarning>); + }; |