Lines Matching refs:testcase
328 for (const auto& testcase : testcase_list) { in OnTestIterationStartPrint() local
329 test_count += testcase.TestCount(); in OnTestIterationStartPrint()
339 static void OnTestEndPrint(const TestCase& testcase, size_t test_id) { in OnTestEndPrint() argument
341 printf("%s\n", testcase.GetTestName(test_id).c_str()); in OnTestEndPrint()
343 const std::string& test_output = testcase.GetTest(test_id).GetTestOutput(); in OnTestEndPrint()
346 TestResult result = testcase.GetTestResult(test_id); in OnTestEndPrint()
352 printf("%s", testcase.GetTestName(test_id).c_str()); in OnTestEndPrint()
354 printf(" (%" PRId64 " ms)", testcase.GetTestTime(test_id) / 1000000); in OnTestEndPrint()
372 for (const auto& testcase : testcase_list) { in OnTestIterationEndPrint() local
373 test_count += testcase.TestCount(); in OnTestIterationEndPrint()
374 for (size_t i = 0; i < testcase.TestCount(); ++i) { in OnTestIterationEndPrint()
375 TestResult result = testcase.GetTestResult(i); in OnTestIterationEndPrint()
379 fail_test_name_list.push_back(testcase.GetTestName(i)); in OnTestIterationEndPrint()
382 std::make_pair(testcase.GetTestName(i), testcase.GetTestTime(i))); in OnTestIterationEndPrint()
385 testcase.GetTestTime(i) / 1000000 >= in OnTestIterationEndPrint()
386 GetWarnlineInfo(testcase.GetTestName(i))) { in OnTestIterationEndPrint()
388 std::make_tuple(testcase.GetTestName(i), testcase.GetTestTime(i), in OnTestIterationEndPrint()
389 GetWarnlineInfo(testcase.GetTestName(i)))); in OnTestIterationEndPrint()
514 auto& testcase = testcase_list[i]; in OnTestIterationEndXmlPrint() local
515 total_test_count += testcase.TestCount(); in OnTestIterationEndXmlPrint()
516 for (size_t j = 0; j < testcase.TestCount(); ++j) { in OnTestIterationEndXmlPrint()
517 if (testcase.GetTestResult(j) != TEST_SUCCESS) { in OnTestIterationEndXmlPrint()
520 elapsed_time_list[i] += testcase.GetTestTime(j); in OnTestIterationEndXmlPrint()
540 auto& testcase = testcase_list[i]; in OnTestIterationEndXmlPrint() local
544 testcase.GetName().c_str(), testcase.TestCount(), in OnTestIterationEndXmlPrint()
548 for (size_t j = 0; j < testcase.TestCount(); ++j) { in OnTestIterationEndXmlPrint()
552 testcase.GetTest(j).GetName().c_str(), in OnTestIterationEndXmlPrint()
553 testcase.GetTestTime(j) / 1e9, testcase.GetName().c_str()); in OnTestIterationEndXmlPrint()
554 if (testcase.GetTestResult(j) == TEST_SUCCESS) { in OnTestIterationEndXmlPrint()
558 const std::string& test_output = testcase.GetTest(j).GetTestOutput(); in OnTestIterationEndXmlPrint()
749 TestCase& testcase = testcase_list[child_proc.testcase_id]; in ReadChildProcOutput() local
757 testcase.GetTest(test_id).AppendTestOutput(buf); in ReadChildProcOutput()
822 TestCase& testcase) { in CollectChildTestResult() argument
824 testcase.SetTestTime(test_id, in CollectChildTestResult()
835 testcase.SetTestResult(test_id, TEST_TIMEOUT); in CollectChildTestResult()
839 testcase.GetTestName(test_id).c_str(), in CollectChildTestResult()
840 testcase.GetTestTime(test_id) / 1000000); in CollectChildTestResult()
841 testcase.GetTest(test_id).AppendTestOutput(buf); in CollectChildTestResult()
845 testcase.SetTestResult(test_id, TEST_FAILED); in CollectChildTestResult()
848 testcase.GetTestName(test_id).c_str(), in CollectChildTestResult()
850 testcase.GetTest(test_id).AppendTestOutput(buf); in CollectChildTestResult()
854 testcase.SetTestResult(test_id, exitcode == 0 ? TEST_SUCCESS : TEST_FAILED); in CollectChildTestResult()
858 testcase.GetTestName(test_id).c_str(), exitcode); in CollectChildTestResult()
859 testcase.GetTest(test_id).AppendTestOutput(buf); in CollectChildTestResult()
927 TestCase& testcase = testcase_list[testcase_id]; in RunTestInSeparateProc() local
929 CollectChildTestResult(child_proc, testcase); in RunTestInSeparateProc()
930 OnTestEndPrint(testcase, test_id); in RunTestInSeparateProc()
932 if (++finished_test_count_list[testcase_id] == testcase.TestCount()) { in RunTestInSeparateProc()
935 if (testcase.GetTestResult(test_id) != TEST_SUCCESS) { in RunTestInSeparateProc()