Lines Matching defs:kunit_suite
101 * with a &struct kunit_suite and will be run after the suite's init
223 * struct kunit_suite - describes a related collection of &struct kunit_case
233 * A kunit_suite is a collection of related &struct kunit_case s, such that
241 * Every &struct kunit_case must be associated with a kunit_suite for KUnit
244 struct kunit_suite {
246 int (*suite_init)(struct kunit_suite *suite);
247 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).
320 int kunit_run_tests(struct kunit_suite *suite);
322 size_t kunit_suite_num_test_cases(struct kunit_suite *suite);
324 unsigned int kunit_test_case_num(struct kunit_suite *suite,
335 int __kunit_test_suites_init(struct kunit_suite * const * const suites, int num_suites);
337 void __kunit_test_suites_exit(struct kunit_suite **suites, int num_suites);
352 static struct kunit_suite *unique_array[] \
353 __aligned(sizeof(struct kunit_suite *)) \
357 * kunit_test_suites() - used to register one or more &struct kunit_suite
360 * @__suites: a statically allocated list of &struct kunit_suite.
363 * This is done by placing the array of struct kunit_suite * in the
378 * kunit_suite containing init functions or
381 * @__suites: a statically allocated list of &struct kunit_suite.
406 enum kunit_status kunit_suite_has_succeeded(struct kunit_suite *suite);