Lines Matching defs:task
27 #include "task.h"
70 task_entry_t* task;
75 for (task = TASKS; task->main; task++, actual++) {
76 if (!task->is_helper) {
91 for (task = TASKS; task->main; task++) {
92 if (task->is_helper) {
96 test_result = run_test(task->task_name, benchmark_output, current);
152 task_entry_t* task;
171 for (task = TASKS; task->main; task++) {
172 if (task->is_helper && strcmp(test, task->process_name) == 0) {
173 return task->main();
178 for (task = TASKS; task->main; task++) {
179 if (strcmp(test, task->task_name) != 0) {
184 if (!task->is_helper) {
188 if (process_start(task->task_name,
189 task->process_name,
195 task->process_name);
203 for (task = TASKS; task->main; task++) {
204 if (strcmp(test, task->task_name) != 0) {
208 if (task->is_helper) {
212 if (process_start(task->task_name,
213 task->process_name,
219 task->process_name);
251 result = process_wait(main_proc, 1, task->timeout * timeout_multiplier);
290 if ((status != TEST_OK && status != TEST_SKIP) || task->show_output) {
348 /* Returns the status code of the task part
349 * or 255 if no matching task was not found.
352 task_entry_t* task;
355 for (task = TASKS; task->main; task++) {
356 if (strcmp(test, task->task_name) == 0 &&
357 strcmp(part, task->process_name) == 0) {
358 r = task->main();
370 static int find_helpers(const task_entry_t* task,
376 if (helper->is_helper && strcmp(helper->task_name, task->task_name) == 0) {
388 const task_entry_t* task;
393 for (n_tasks = 0, task = TASKS; task->main; n_tasks++, task++);
396 for (task = TASKS; task->main; task++) {
397 if (task->is_helper) {
401 n_helpers = find_helpers(task, helpers);
403 printf("%-25s (helpers:", task->task_name);
409 printf("%s\n", task->task_name);