• Home
  • Raw
  • Download

Lines Matching refs:xe

110 static void parseBatchResult (xe::TestLogParser& parser, const char* filename)  in parseBatchResult()
134 for (int i = 0;i < xe::TESTSTATUSCODE_LAST; i++) in BatchResultTotals()
138 int countByCode[xe::TESTSTATUSCODE_LAST];
141 class ResultToSingleXmlLogHandler : public xe::TestLogHandler
144 ResultToSingleXmlLogHandler (xe::xml::Writer& writer, BatchResultTotals& totals) in ResultToSingleXmlLogHandler()
150 void setSessionInfo (const xe::SessionInfo&) in setSessionInfo()
154 xe::TestCaseResultPtr startTestCaseResult (const char* casePath) in startTestCaseResult()
156 return xe::TestCaseResultPtr(new xe::TestCaseResultData(casePath)); in startTestCaseResult()
159 void testCaseResultUpdated (const xe::TestCaseResultPtr&) in testCaseResultUpdated()
163 void testCaseResultComplete (const xe::TestCaseResultPtr& resultData) in testCaseResultComplete()
165 xe::TestCaseResult result; in testCaseResultComplete()
167 xe::parseTestCaseResultFromData(&m_resultParser, &result, *resultData.get()); in testCaseResultComplete()
170 xe::writeTestResult(result, m_writer); in testCaseResultComplete()
173 XE_CHECK(de::inBounds<int>(result.statusCode, 0, xe::TESTSTATUSCODE_LAST)); in testCaseResultComplete()
178 xe::xml::Writer& m_writer;
180 xe::TestResultParser m_resultParser;
183 static void writeTotals (xe::xml::Writer& writer, const BatchResultTotals& totals) in writeTotals()
185 using xe::xml::Writer; in writeTotals()
191 for (int code = 0; code < xe::TESTSTATUSCODE_LAST; code++) in writeTotals()
193 …writer << Writer::Attribute(xe::getTestStatusCodeName((xe::TestStatusCode)code), de::toString(tota… in writeTotals()
204 xe::xml::Writer writer (out); in batchResultToSingleXmlFile()
207 xe::TestLogParser parser (&handler); in batchResultToSingleXmlFile()
214 writer << xe::xml::Writer::BeginElement("BatchResult") in batchResultToSingleXmlFile()
215 << xe::xml::Writer::Attribute("FileName", de::FilePath(batchResultFilename).getBaseName()); in batchResultToSingleXmlFile()
223 writer << xe::xml::Writer::EndElement; in batchResultToSingleXmlFile()
229 class ResultToXmlFilesLogHandler : public xe::TestLogHandler
232 ResultToXmlFilesLogHandler (vector<xe::TestCaseResultHeader>& resultHeaders, const char* dstPath) in ResultToXmlFilesLogHandler()
238 void setSessionInfo (const xe::SessionInfo&) in setSessionInfo()
242 xe::TestCaseResultPtr startTestCaseResult (const char* casePath) in startTestCaseResult()
244 return xe::TestCaseResultPtr(new xe::TestCaseResultData(casePath)); in startTestCaseResult()
247 void testCaseResultUpdated (const xe::TestCaseResultPtr&) in testCaseResultUpdated()
251 void testCaseResultComplete (const xe::TestCaseResultPtr& resultData) in testCaseResultComplete()
253 xe::TestCaseResult result; in testCaseResultComplete()
255 xe::parseTestCaseResultFromData(&m_resultParser, &result, *resultData.get()); in testCaseResultComplete()
261 xe::xml::Writer xmlWriter (out); in testCaseResultComplete()
264 throw xe::Error(string("Failed to open ") + casePath.getPath()); in testCaseResultComplete()
268 xe::writeTestResult(result, xmlWriter); in testCaseResultComplete()
272 m_resultHeaders.push_back(xe::TestCaseResultHeader(result)); in testCaseResultComplete()
276 vector<xe::TestCaseResultHeader>& m_resultHeaders;
278 xe::TestResultParser m_resultParser;
281 typedef std::map<const xe::TestCase*, const xe::TestCaseResultHeader*> ShortTestResultMap;
283 static void writeTestCaseListNode (const xe::TestNode* testNode, const ShortTestResultMap& resultMa… in writeTestCaseListNode()
285 using xe::xml::Writer; in writeTestCaseListNode()
287 bool isGroup = testNode->getNodeType() == xe::TESTNODETYPE_GROUP; in writeTestCaseListNode()
293 const xe::TestGroup* group = static_cast<const xe::TestGroup*>(testNode); in writeTestCaseListNode()
305 DE_ASSERT(testNode->getNodeType() == xe::TESTNODETYPE_TEST_CASE); in writeTestCaseListNode()
307 const xe::TestCase* testCase = static_cast<const xe::TestCase*>(testNode); in writeTestCaseListNode()
309 …const xe::TestCaseResultHeader* result = resultPos != resultMap.end() ? resultPos->second : DE_N… in writeTestCaseListNode()
315 << Writer::Attribute("Type", xe::getTestCaseTypeName(result->caseType)) in writeTestCaseListNode()
316 << Writer::Attribute("StatusCode", xe::getTestStatusCodeName(result->statusCode)) in writeTestCaseListNode()
322 static void writeTestCaseList (const xe::TestRoot& root, const ShortTestResultMap& resultMap, xe::x… in writeTestCaseList()
324 using xe::xml::Writer; in writeTestCaseList()
336 xe::TestRoot testRoot; in batchResultToSeparateXmlFiles()
337 vector<xe::TestCaseResultHeader> shortResults; in batchResultToSeparateXmlFiles()
349 xe::TestLogParser parser (&handler); in batchResultToSeparateXmlFiles()
356 xe::TestHierarchyBuilder hierarchyBuilder(&testRoot); in batchResultToSeparateXmlFiles()
358 …for (vector<xe::TestCaseResultHeader>::const_iterator result = shortResults.begin(); result != sho… in batchResultToSeparateXmlFiles()
360 xe::TestCase* testCase = hierarchyBuilder.createCase(result->casePath.c_str(), result->caseType); in batchResultToSeparateXmlFiles()
369 xe::xml::Writer xmlWriter (out); in batchResultToSeparateXmlFiles()