Home
last modified time | relevance | path

Searched refs:suite (Results 1 – 14 of 14) sorted by relevance

/lib/kunit/
Ddebugfs.c41 struct kunit_suite *suite, in debugfs_print_result() argument
55 struct kunit_suite *suite = (struct kunit_suite *)seq->private; in debugfs_print_results() local
59 if (!suite) in debugfs_print_results()
62 success = kunit_suite_has_succeeded(suite); in debugfs_print_results()
70 seq_printf(seq, KUNIT_SUBTEST_INDENT "# Subtest: %s\n", suite->name); in debugfs_print_results()
71 seq_printf(seq, KUNIT_SUBTEST_INDENT "1..%zd\n", kunit_suite_num_test_cases(suite)); in debugfs_print_results()
73 kunit_suite_for_each_test_case(suite, test_case) in debugfs_print_results()
74 debugfs_print_result(seq, suite, test_case); in debugfs_print_results()
76 if (suite->log) in debugfs_print_results()
77 seq_printf(seq, "%s", suite->log); in debugfs_print_results()
[all …]
Dtest.c161 size_t kunit_suite_num_test_cases(struct kunit_suite *suite) in kunit_suite_num_test_cases() argument
166 kunit_suite_for_each_test_case(suite, test_case) in kunit_suite_num_test_cases()
180 static void kunit_print_suite_start(struct kunit_suite *suite) in kunit_print_suite_start() argument
192 suite->name); in kunit_print_suite_start()
193 kunit_print_attr((void *)suite, false, KUNIT_LEVEL_CASE); in kunit_print_suite_start()
195 kunit_suite_num_test_cases(suite)); in kunit_print_suite_start()
235 enum kunit_status kunit_suite_has_succeeded(struct kunit_suite *suite) in kunit_suite_has_succeeded() argument
240 if (suite->suite_init_err) in kunit_suite_has_succeeded()
243 kunit_suite_for_each_test_case(suite, test_case) { in kunit_suite_has_succeeded()
256 static void kunit_print_suite_end(struct kunit_suite *suite) in kunit_print_suite_end() argument
[all …]
Ddebugfs.h13 void kunit_debugfs_create_suite(struct kunit_suite *suite);
14 void kunit_debugfs_destroy_suite(struct kunit_suite *suite);
20 static inline void kunit_debugfs_create_suite(struct kunit_suite *suite) { } in kunit_debugfs_create_suite() argument
22 static inline void kunit_debugfs_destroy_suite(struct kunit_suite *suite) { } in kunit_debugfs_destroy_suite() argument
Dattributes.c174 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in attr_speed_get() local
180 return ((void *) suite->attr.speed); in attr_speed_get()
185 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in attr_module_get() local
191 else if (kunit_suite_num_test_cases(suite) > 0) in attr_module_get()
192 return ((void *) suite->test_cases[0].module_name); in attr_module_get()
231 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in kunit_print_attr() local
247 kunit_log(KERN_INFO, suite, "%*s# %s: %s", in kunit_print_attr()
337 struct kunit_suite *kunit_filter_attr_tests(const struct kunit_suite *const suite, in kunit_filter_attr_tests() argument
347 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_attr_tests()
351 kunit_suite_for_each_test_case(suite, test_case) { n++; } in kunit_filter_attr_tests()
[all …]
Dkunit-example-test.c58 static int example_test_init_suite(struct kunit_suite *suite) in example_test_init_suite() argument
60 kunit_info(suite, "initializing suite\n"); in example_test_init_suite()
69 static void example_test_exit_suite(struct kunit_suite *suite) in example_test_exit_suite() argument
71 kunit_info(suite, "exiting suite\n"); in example_test_exit_suite()
Dexecutor_test.c285 struct kunit_suite *suite; in alloc_fake_suite() local
288 suite = kunit_kzalloc(test, sizeof(*suite), GFP_KERNEL); in alloc_fake_suite()
289 strncpy((char *)suite->name, suite_name, sizeof(suite->name) - 1); in alloc_fake_suite()
290 suite->test_cases = test_cases; in alloc_fake_suite()
292 return suite; in alloc_fake_suite()
Dexecutor.c102 kunit_filter_glob_tests(const struct kunit_suite *const suite, const char *test_glob) in kunit_filter_glob_tests() argument
108 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_glob_tests()
116 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_glob_tests()
127 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_glob_tests()
Dkunit-test.c535 struct kunit_suite suite; in kunit_log_test() local
537 suite.log = kunit_kzalloc(test, KUNIT_LOG_SIZE, GFP_KERNEL); in kunit_log_test()
538 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, suite.log); in kunit_log_test()
542 kunit_log(KERN_INFO, &suite, "add to suite log."); in kunit_log_test()
543 kunit_log(KERN_INFO, &suite, "along with this."); in kunit_log_test()
551 strstr(suite.log, "add to suite log.")); in kunit_log_test()
553 strstr(suite.log, "along with this.")); in kunit_log_test()
DKconfig24 test suite, which allow users to see results of the last test suite
/lib/
DKconfig.kfence55 Warning: The KUnit test suite fails with this option enabled - due to
87 tristate "KFENCE integration test suite" if !KUNIT_ALL_TESTS
91 Test suite for KFENCE, testing various error detection scenarios with
DKconfig.kmsan52 tristate "KMSAN integration test suite" if !KUNIT_ALL_TESTS
56 Test suite for KMSAN, testing various error detection scenarios,
DKconfig.kgdb53 bool "KGDB: internal test suite"
77 This is the command string to send the kgdb test suite on
DKconfig.kasan196 A KUnit-based KASAN test suite. Triggers different kinds of
207 A part of the KASAN test suite that is not integrated with KUnit.
DKconfig.debug2610 This builds the linked list KUnit test suite.
2629 This builds the hashtable KUnit test suite.