Lines Matching refs:xe
129 xe::TargetConfiguration targetCfg;
255 void readCaseList (xe::TestGroup* root, const char* filename)
257 xe::TestCaseListParser caseListParser;
278 void readCaseLists (xe::TestRoot& root, const char* caseListDir)
293 xe::TestGroup* package = root.createGroup(packageName.c_str());
302 throw xe::Error("Couldn't find test case lists from test case list directory: '" + string(caseListDir) + "'");
305 void addMatchingCases (const xe::TestGroup& group, xe::TestSet& testSet, const char* filter)
309 const xe::TestNode* child = group.getChild(childNdx);
310 const bool isGroup = child->getNodeType() == xe::TESTNODETYPE_GROUP;
318 addMatchingCases(static_cast<const xe::TestGroup&>(*child), testSet, filter);
322 DE_ASSERT(child->getNodeType() == xe::TESTNODETYPE_TEST_CASE);
329 void removeMatchingCases (const xe::TestGroup& group, xe::TestSet& testSet, const char* filter)
333 const xe::TestNode* child = group.getChild(childNdx);
334 const bool isGroup = child->getNodeType() == xe::TESTNODETYPE_GROUP;
342 removeMatchingCases(static_cast<const xe::TestGroup&>(*child), testSet, filter);
346 DE_ASSERT(child->getNodeType() == xe::TESTNODETYPE_TEST_CASE);
353 class BatchResultHandler : public xe::TestLogHandler
356 BatchResultHandler (xe::BatchResult* batchResult)
361 void setSessionInfo (const xe::SessionInfo& sessionInfo)
366 xe::TestCaseResultPtr startTestCaseResult (const char* casePath)
375 void testCaseResultUpdated (const xe::TestCaseResultPtr&)
379 void testCaseResultComplete (const xe::TestCaseResultPtr&)
384 xe::BatchResult* m_batchResult;
387 void readLogFile (xe::BatchResult* batchResult, const char* filename)
391 xe::TestLogParser parser (&handler);
409 void printBatchResultSummary (const xe::TestNode* root, const xe::TestSet& testSet, const xe::BatchResult& batchResult)
411 int countByStatusCode[xe::TESTSTATUSCODE_LAST];
414 for (xe::ConstTestNodeIterator iter = xe::ConstTestNodeIterator::begin(root); iter != xe::ConstTestNodeIterator::end(root); ++iter)
416 const xe::TestNode* node = *iter;
417 if (node->getNodeType() == xe::TESTNODETYPE_TEST_CASE && testSet.hasNode(node))
419 const xe::TestCase* testCase = static_cast<const xe::TestCase*>(node);
421 xe::TestStatusCode statusCode = xe::TESTSTATUSCODE_PENDING;
427 xe::ConstTestCaseResultPtr resultData = batchResult.getTestCaseResult(fullPath.c_str());
428 xe::TestCaseResult result;
429 xe::TestResultParser parser;
431 xe::parseTestCaseResultFromData(&parser, &result, *resultData.get());
441 for (int code = 0; code < xe::TESTSTATUSCODE_LAST; code++)
444 printf(" %20s: %5d\n", xe::getTestStatusCodeName((xe::TestStatusCode)code), countByStatusCode[code]);
451 void writeInfoLog (const xe::InfoLog& log, const char* filename)
459 xe::CommLink* createCommLink (const CommandLine& cmdLine)
463 xe::LocalTcpIpLink* link = new xe::LocalTcpIpLink();
484 xe::TcpIpLink* link = new xe::TcpIpLink();
495 throw xe::Error("Failed to connect to ExecServer at: " + cmdLine.serverBinOrAddress + ":" + de::toString(cmdLine.port) + ", " + error.what());
512 static xe::BatchExecutor* s_executor = DE_NULL;
520 void setupSignalHandler (xe::BatchExecutor* executor)
546 static xe::BatchExecutor* s_executor = DE_NULL;
554 void setupSignalHandler (xe::BatchExecutor* executor)
568 void setupSignalHandler (xe::BatchExecutor*)
580 xe::TestRoot root;
586 xe::TestSet testSet;
593 throw xe::Error("None of the test case lists contains tests matching any of the test sets.");
600 xe::BatchResult batchResult;
601 xe::InfoLog infoLog;
608 de::UniquePtr<xe::CommLink> commLink(createCommLink(cmdLine));
610 xe::BatchExecutor executor(cmdLine.targetCfg, commLink.get(), &root, testSet, &batchResult, &infoLog);
624 xe::writeBatchResultToFile(batchResult, cmdLine.outFile.c_str());
642 xe::writeBatchResultToFile(batchResult, cmdLine.outFile.c_str());
658 if (commLink->getState(err) == xe::COMMLINKSTATE_ERROR)
659 throw xe::Error(err);