Lines Matching defs:kunit_suite
115 * with a &struct kunit_suite and will be run after the suite's init
167 * struct kunit_suite - describes a related collection of &struct kunit_case
174 * A kunit_suite is a collection of related &struct kunit_case s, such that
179 * Every &struct kunit_case must be associated with a kunit_suite for KUnit
182 struct kunit_suite {
197 * created in the init function (see &struct kunit_suite).
235 int kunit_run_tests(struct kunit_suite *suite);
237 size_t kunit_suite_num_test_cases(struct kunit_suite *suite);
239 unsigned int kunit_test_case_num(struct kunit_suite *suite,
242 int __kunit_test_suites_init(struct kunit_suite * const * const suites);
244 void __kunit_test_suites_exit(struct kunit_suite **suites);
258 * &struct kunit_suite with KUnit.
260 * @__suites: a statically allocated list of &struct kunit_suite.
262 * Registers @__suites with the test framework. See &struct kunit_suite for
288 static struct kunit_suite *unique_array[] = { __VA_ARGS__, NULL }; \
290 static struct kunit_suite **unique_suites \
294 * kunit_test_suites() - used to register one or more &struct kunit_suite
297 * @__suites: a statically allocated list of &struct kunit_suite.
299 * Registers @suites with the test framework. See &struct kunit_suite for
303 * by placing the array of struct kunit_suite * in the .kunit_test_suites
321 bool kunit_suite_has_succeeded(struct kunit_suite *suite);