Lines Matching refs:test
30 struct post_test *test = post_list + i; in post_init_f() local
32 if (test->init_f && test->init_f()) in post_init_f()
236 static int post_run_single(struct post_test *test, in post_run_single() argument
252 post_log_mark_start(test->testid); in post_run_single()
254 post_log("POST %s ", test->cmd); in post_run_single()
260 if ((*test->test)(flags) == 0) { in post_run_single()
261 post_log_mark_succ(test->testid); in post_run_single()
271 if ((*test->test)(flags) != 0) { in post_run_single()
356 static int post_info_single(struct post_test *test, int full) in post_info_single() argument
358 if (test->flags & POST_MANUAL) { in post_info_single()
361 " %s\n", test->cmd, test->name, test->desc); in post_info_single()
363 printf(" %-15s - %s\n", test->cmd, test->name); in post_info_single()
422 struct post_test *test = post_list + i; in post_reloc() local
424 if (test->name) { in post_reloc()
425 addr = (ulong)(test->name) + gd->reloc_off; in post_reloc()
426 test->name = (char *)addr; in post_reloc()
429 if (test->cmd) { in post_reloc()
430 addr = (ulong)(test->cmd) + gd->reloc_off; in post_reloc()
431 test->cmd = (char *)addr; in post_reloc()
434 if (test->desc) { in post_reloc()
435 addr = (ulong)(test->desc) + gd->reloc_off; in post_reloc()
436 test->desc = (char *)addr; in post_reloc()
439 if (test->test) { in post_reloc()
440 addr = (ulong)(test->test) + gd->reloc_off; in post_reloc()
441 test->test = (int (*)(int flags)) addr; in post_reloc()
444 if (test->init_f) { in post_reloc()
445 addr = (ulong)(test->init_f) + gd->reloc_off; in post_reloc()
446 test->init_f = (int (*)(void)) addr; in post_reloc()
449 if (test->reloc) { in post_reloc()
450 addr = (ulong)(test->reloc) + gd->reloc_off; in post_reloc()
451 test->reloc = (void (*)(void)) addr; in post_reloc()
453 test->reloc(); in post_reloc()