Lines Matching refs:suite_set
96 struct suite_set { struct
101 static void kunit_free_suite_set(struct suite_set suite_set) in kunit_free_suite_set() argument
105 for (suites = suite_set.start; suites < suite_set.end; suites++) in kunit_free_suite_set()
107 kfree(suite_set.start); in kunit_free_suite_set()
110 static struct suite_set kunit_filter_suites(const struct suite_set *suite_set, in kunit_filter_suites() argument
116 struct suite_set filtered; in kunit_filter_suites()
119 const size_t max = suite_set->end - suite_set->start; in kunit_filter_suites()
130 for (i = 0; &suite_set->start[i] != suite_set->end; i++) { in kunit_filter_suites()
131 if (!glob_match(filter.suite_glob, suite_set->start[i]->name)) in kunit_filter_suites()
134 filtered_suite = kunit_filter_tests(suite_set->start[i], filter.test_glob); in kunit_filter_suites()
165 static void kunit_exec_run_tests(struct suite_set *suite_set) in kunit_exec_run_tests() argument
167 size_t num_suites = suite_set->end - suite_set->start; in kunit_exec_run_tests()
172 __kunit_test_suites_init(suite_set->start, num_suites); in kunit_exec_run_tests()
175 static void kunit_exec_list_tests(struct suite_set *suite_set) in kunit_exec_list_tests() argument
183 for (suites = suite_set->start; suites < suite_set->end; suites++) in kunit_exec_list_tests()
191 struct suite_set suite_set = {__kunit_suites_start, __kunit_suites_end}; in kunit_run_all_tests() local
199 suite_set = kunit_filter_suites(&suite_set, filter_glob_param, &err); in kunit_run_all_tests()
207 kunit_exec_run_tests(&suite_set); in kunit_run_all_tests()
209 kunit_exec_list_tests(&suite_set); in kunit_run_all_tests()
214 kunit_free_suite_set(suite_set); in kunit_run_all_tests()