Lines Matching defs:test
3 * KUnit API to save and access test attributes
9 #include <kunit/test.h>
13 * PRINT_ALWAYS - attribute is printed for every test case and suite if set
14 * PRINT_SUITE - attribute is printed for every suite if set but not for test cases
24 * struct kunit_attr - represents a test attribute and holds flexible
27 * @name: name of test attribute, eg. speed
28 * @get_attr: function to return attribute value given a test
175 struct kunit_case *test = is_test ? test_or_suite : NULL;
177 if (test)
178 return ((void *) test->attr.speed);
186 struct kunit_case *test = is_test ? test_or_suite : NULL;
189 if (test)
190 return ((void *) test->module_name);
232 struct kunit_case *test = is_test ? test_or_suite : NULL;
236 (test && kunit_attr_list[i].print == PRINT_SUITE))
242 if (test) {
243 kunit_log(KERN_INFO, test, "%*s# %s.%s: %s",
244 KUNIT_INDENT_LEN * test_level, "", test->name,
346 /* Allocate memory for new copy of suite and list of test cases */
372 /* For each test case, save test case if passes filtering. */
381 * If attribute value of test case is set, filter on that value.