Lines Matching refs:testcase_list
244 static bool EnumerateTests(int argc, char** argv, std::vector<TestCase>& testcase_list) { in EnumerateTests() argument
281 testcase_list.push_back(TestCase(start)); in EnumerateTests()
283 testcase_list.back().AppendTest(start); in EnumerateTests()
293 static void OnTestIterationStartPrint(const std::vector<TestCase>& testcase_list, size_t iteration, in OnTestIterationStartPrint() argument
300 size_t testcase_count = testcase_list.size(); in OnTestIterationStartPrint()
302 for (const auto& testcase : testcase_list) { in OnTestIterationStartPrint()
361 static void OnTestIterationEndPrint(const std::vector<TestCase>& testcase_list, size_t /*iteration*… in OnTestIterationEndPrint() argument
369 size_t testcase_count = testcase_list.size(); in OnTestIterationEndPrint()
373 for (const auto& testcase : testcase_list) { in OnTestIterationEndPrint()
486 const std::vector<TestCase>& testcase_list, in OnTestIterationEndXmlPrint() argument
497 std::vector<size_t> failed_count_list(testcase_list.size(), 0); in OnTestIterationEndXmlPrint()
498 std::vector<int64_t> elapsed_time_list(testcase_list.size(), 0); in OnTestIterationEndXmlPrint()
499 for (size_t i = 0; i < testcase_list.size(); ++i) { in OnTestIterationEndXmlPrint()
500 auto& testcase = testcase_list[i]; in OnTestIterationEndXmlPrint()
521 for (size_t i = 0; i < testcase_list.size(); ++i) { in OnTestIterationEndXmlPrint()
522 auto& testcase = testcase_list[i]; in OnTestIterationEndXmlPrint()
657 static void HandleSignals(std::vector<TestCase>& testcase_list, in HandleSignals() argument
665 … std::string test_name = testcase_list[child_proc.testcase_id].GetTestName(child_proc.test_id); in HandleSignals()
713 static void ReadChildProcOutput(std::vector<TestCase>& testcase_list, in ReadChildProcOutput() argument
716 TestCase& testcase = testcase_list[child_proc.testcase_id]; in ReadChildProcOutput()
737 static void WaitChildProcs(std::vector<TestCase>& testcase_list, in WaitChildProcs() argument
761 ReadChildProcOutput(testcase_list, child_proc_list); in WaitChildProcs()
766 HandleSignals(testcase_list, child_proc_list); in WaitChildProcs()
827 static bool RunTestInSeparateProc(int argc, char** argv, std::vector<TestCase>& testcase_list, in RunTestInSeparateProc() argument
844 OnTestIterationStartPrint(testcase_list, iteration, iteration_count); in RunTestInSeparateProc()
856 std::vector<size_t> finished_test_count_list(testcase_list.size(), 0); in RunTestInSeparateProc()
859 while (finished_testcase_count < testcase_list.size()) { in RunTestInSeparateProc()
861 while (child_proc_list.size() < job_count && next_testcase_id < testcase_list.size()) { in RunTestInSeparateProc()
862 std::string test_name = testcase_list[next_testcase_id].GetTestName(next_test_id); in RunTestInSeparateProc()
866 if (++next_test_id == testcase_list[next_testcase_id].TestCount()) { in RunTestInSeparateProc()
873 WaitChildProcs(testcase_list, child_proc_list); in RunTestInSeparateProc()
882 TestCase& testcase = testcase_list[testcase_id]; in RunTestInSeparateProc()
902 OnTestIterationEndPrint(testcase_list, iteration, elapsed_time_ns); in RunTestInSeparateProc()
904 OnTestIterationEndXmlPrint(xml_output_filename, testcase_list, epoch_iteration_start_time, in RunTestInSeparateProc()
1143 std::vector<TestCase> testcase_list; in main() local
1147 if (EnumerateTests(argc, arg_list.data(), testcase_list) == false) { in main()
1150 bool all_test_passed = RunTestInSeparateProc(argc, arg_list.data(), testcase_list, in main()