Lines Matching refs:kunit_suite
100 * with a &struct kunit_suite and will be run after the suite's init
222 * struct kunit_suite - describes a related collection of &struct kunit_case
232 * A kunit_suite is a collection of related &struct kunit_case s, such that
240 * Every &struct kunit_case must be associated with a kunit_suite for KUnit
243 struct kunit_suite {
245 int (*suite_init)(struct kunit_suite *suite);
246 void (*suite_exit)(struct kunit_suite *suite);
262 struct kunit_suite * const *start;
263 struct kunit_suite * const *end;
270 * created in the init function (see &struct kunit_suite).
323 int kunit_run_tests(struct kunit_suite *suite);
325 size_t kunit_suite_num_test_cases(struct kunit_suite *suite);
327 unsigned int kunit_test_case_num(struct kunit_suite *suite,
338 int __kunit_test_suites_init(struct kunit_suite * const * const suites, int num_suites,
341 void __kunit_test_suites_exit(struct kunit_suite **suites, int num_suites);
359 static struct kunit_suite *unique_array[] \
360 __aligned(sizeof(struct kunit_suite *)) \
364 * kunit_test_suites() - used to register one or more &struct kunit_suite
367 * @__suites: a statically allocated list of &struct kunit_suite.
370 * This is done by placing the array of struct kunit_suite * in the
384 static struct kunit_suite *unique_array[] \
385 __aligned(sizeof(struct kunit_suite *)) \
390 * kunit_suite containing init functions or
393 * @__suites: a statically allocated list of &struct kunit_suite.
418 enum kunit_status kunit_suite_has_succeeded(struct kunit_suite *suite);