Lines Matching refs:task
70 task_entry_t* task; in run_tests() local
75 for (task = TASKS; task->main; task++, actual++) { in run_tests()
76 if (!task->is_helper) { in run_tests()
91 for (task = TASKS; task->main; task++) { in run_tests()
92 if (task->is_helper) { in run_tests()
96 test_result = run_test(task->task_name, benchmark_output, current); in run_tests()
152 task_entry_t* task; in run_test() local
171 for (task = TASKS; task->main; task++) { in run_test()
172 if (task->is_helper && strcmp(test, task->process_name) == 0) { in run_test()
173 return task->main(); in run_test()
178 for (task = TASKS; task->main; task++) { in run_test()
179 if (strcmp(test, task->task_name) != 0) { in run_test()
184 if (!task->is_helper) { in run_test()
188 if (process_start(task->task_name, in run_test()
189 task->process_name, in run_test()
195 task->process_name); in run_test()
203 for (task = TASKS; task->main; task++) { in run_test()
204 if (strcmp(test, task->task_name) != 0) { in run_test()
208 if (task->is_helper) { in run_test()
212 if (process_start(task->task_name, in run_test()
213 task->process_name, in run_test()
219 task->process_name); in run_test()
251 result = process_wait(main_proc, 1, task->timeout * timeout_multiplier); in run_test()
290 if ((status != TEST_OK && status != TEST_SKIP) || task->show_output) { in run_test()
352 task_entry_t* task; in run_test_part() local
355 for (task = TASKS; task->main; task++) { in run_test_part()
356 if (strcmp(test, task->task_name) == 0 && in run_test_part()
357 strcmp(part, task->process_name) == 0) { in run_test_part()
358 r = task->main(); in run_test_part()
370 static int find_helpers(const task_entry_t* task, in find_helpers() argument
376 if (helper->is_helper && strcmp(helper->task_name, task->task_name) == 0) { in find_helpers()
388 const task_entry_t* task; in print_tests() local
393 for (n_tasks = 0, task = TASKS; task->main; n_tasks++, task++); in print_tests()
396 for (task = TASKS; task->main; task++) { in print_tests()
397 if (task->is_helper) { in print_tests()
401 n_helpers = find_helpers(task, helpers); in print_tests()
403 printf("%-25s (helpers:", task->task_name); in print_tests()
409 printf("%s\n", task->task_name); in print_tests()