Lines Matching refs:t

228 static int test_suite__num_test_cases(const struct test_suite *t)  in test_suite__num_test_cases()  argument
232 test_suite__for_each_test_case(t, num); in test_suite__num_test_cases()
237 static const char *skip_reason(const struct test_suite *t, int test_case) in skip_reason() argument
239 if (!t->test_cases) in skip_reason()
242 return t->test_cases[test_case >= 0 ? test_case : 0].skip_reason; in skip_reason()
245 static const char *test_description(const struct test_suite *t, int test_case) in test_description() argument
247 if (t->test_cases && test_case >= 0) in test_description()
248 return t->test_cases[test_case].desc; in test_description()
250 return t->desc; in test_description()
253 static test_fnptr test_function(const struct test_suite *t, int test_case) in test_function() argument
256 return t->test_cases[0].run_case; in test_function()
258 return t->test_cases[test_case].run_case; in test_function()
261 static bool test_exclusive(const struct test_suite *t, int test_case) in test_exclusive() argument
264 return t->test_cases[0].exclusive; in test_exclusive()
266 return t->test_cases[test_case].exclusive; in test_exclusive()
352 static int print_test_result(struct test_suite *t, int curr_suite, int curr_test_case, in print_test_result() argument
355 if (test_suite__num_test_cases(t) > 1) { in print_test_result()
359 test_description(t, curr_test_case)); in print_test_result()
361 pr_info("%3d: %-*s:", curr_suite + 1, width, test_description(t, curr_test_case)); in print_test_result()
371 const char *reason = skip_reason(t, curr_test_case); in print_test_result()
392 struct test_suite *t; in finish_test() local
403 t = child_test->test; in finish_test()
411 if (test_suite__num_test_cases(t) > 1 && curr_test_case == 0) in finish_test()
412 pr_info("%3d: %-*s:\n", curr_suite + 1, width, test_description(t, -1)); in finish_test()
421 if (test_suite__num_test_cases(t) > 1) in finish_test()
423 test_description(t, curr_test_case)); in finish_test()
425 pr_info("%3d: %s:\n", curr_suite + 1, test_description(t, -1)); in finish_test()
450 print_test_result(t, curr_suite, curr_test_case, TEST_RUNNING, in finish_test()
489 print_test_result(t, curr_suite, curr_test_case, ret, width, /*running=*/0); in finish_test()
564 for (struct test_suite **t = suites; *t; t++) { in __cmd_test() local
565 int i, len = strlen(test_description(*t, -1)); in __cmd_test()
570 test_suite__for_each_test_case(*t, i) { in __cmd_test()
571 len = strlen(test_description(*t, i)); in __cmd_test()
610 for (struct test_suite **t = suites; *t; t++, curr_suite++) { in __cmd_test() local
614 if (!perf_test__matches(test_description(*t, -1), curr_suite, argc, argv)) { in __cmd_test()
621 test_suite__for_each_test_case(*t, curr_test_case) { in __cmd_test()
622 if (perf_test__matches(test_description(*t, curr_test_case), in __cmd_test()
636 test_description(*t, -1)); in __cmd_test()
642 test_suite__for_each_test_case(*t, curr_test_case) { in __cmd_test()
644 !perf_test__matches(test_description(*t, curr_test_case), in __cmd_test()
647 err = start_test(*t, curr_suite, curr_test_case, in __cmd_test()
677 for (struct test_suite **t = suites; *t; t++, curr_suite++) { in perf_test__list() local
680 if (!perf_test__matches(test_description(*t, -1), curr_suite, argc, argv)) in perf_test__list()
683 fprintf(fp, "%3d: %s\n", curr_suite + 1, test_description(*t, -1)); in perf_test__list()
685 if (test_suite__num_test_cases(*t) <= 1) in perf_test__list()
688 test_suite__for_each_test_case(*t, curr_test_case) { in perf_test__list()
690 test_description(*t, curr_test_case)); in perf_test__list()
741 struct test_suite *t; in build_suites() local
751 for_each_suite(t) in build_suites()
757 for_each_suite(t) { in build_suites()
761 test_suite__for_each_test_case(t, curr_test_case) { in build_suites()
762 if (test_exclusive(t, curr_test_case)) { in build_suites()
768 result[n++] = t; in build_suites()