Lines Matching refs:task
27 #include "task.h"
75 task_entry_t* task;
80 for (task = TASKS; task->main; task++, actual++) {
81 if (!task->is_helper) {
96 for (task = TASKS; task->main; task++) {
97 if (task->is_helper) {
101 test_result = run_test(task->task_name, benchmark_output, current);
164 task_entry_t* task;
185 for (task = TASKS; task->main; task++) {
186 if (task->is_helper && strcmp(test, task->process_name) == 0) {
187 return task->main();
192 for (task = TASKS; task->main; task++) {
193 if (strcmp(test, task->task_name) != 0) {
198 if (!task->is_helper) {
202 if (process_start(task->task_name,
203 task->process_name,
209 task->process_name);
217 for (task = TASKS; task->main; task++) {
218 if (strcmp(test, task->task_name) != 0) {
222 if (task->is_helper) {
226 if (process_start(task->task_name,
227 task->process_name,
233 task->process_name);
265 result = process_wait(main_proc, 1, task->timeout * timeout_multiplier);
304 if ((status != TEST_OK && status != TEST_SKIP) || task->show_output) {
362 /* Returns the status code of the task part
363 * or 255 if no matching task was not found.
366 task_entry_t* task;
369 for (task = TASKS; task->main; task++) {
370 if (strcmp(test, task->task_name) == 0 &&
371 strcmp(part, task->process_name) == 0) {
372 r = task->main();
384 static int find_helpers(const task_entry_t* task,
390 if (helper->is_helper && strcmp(helper->task_name, task->task_name) == 0) {
402 const task_entry_t* task;
407 for (n_tasks = 0, task = TASKS; task->main; n_tasks++, task++);
410 for (task = TASKS; task->main; task++) {
411 if (task->is_helper) {
415 n_helpers = find_helpers(task, helpers);
417 printf("%-25s (helpers:", task->task_name);
423 printf("%s\n", task->task_name);