Lines Matching full:suite

40 				 struct kunit_suite *suite,  in debugfs_print_result()  argument
54 struct kunit_suite *suite = (struct kunit_suite *)seq->private; in debugfs_print_results() local
55 enum kunit_status success = kunit_suite_has_succeeded(suite); in debugfs_print_results()
58 if (!suite || !suite->log) in debugfs_print_results()
61 seq_printf(seq, "%s", suite->log); in debugfs_print_results()
63 kunit_suite_for_each_test_case(suite, test_case) in debugfs_print_results()
64 debugfs_print_result(seq, suite, test_case); in debugfs_print_results()
67 kunit_status_to_ok_not_ok(success), 1, suite->name); in debugfs_print_results()
78 struct kunit_suite *suite; in debugfs_results_open() local
80 suite = (struct kunit_suite *)inode->i_private; in debugfs_results_open()
82 return single_open(file, debugfs_print_results, suite); in debugfs_results_open()
92 void kunit_debugfs_create_suite(struct kunit_suite *suite) in kunit_debugfs_create_suite() argument
97 suite->log = kzalloc(KUNIT_LOG_SIZE, GFP_KERNEL); in kunit_debugfs_create_suite()
98 kunit_suite_for_each_test_case(suite, test_case) in kunit_debugfs_create_suite()
101 suite->debugfs = debugfs_create_dir(suite->name, debugfs_rootdir); in kunit_debugfs_create_suite()
104 suite->debugfs, in kunit_debugfs_create_suite()
105 suite, &debugfs_results_fops); in kunit_debugfs_create_suite()
108 void kunit_debugfs_destroy_suite(struct kunit_suite *suite) in kunit_debugfs_destroy_suite() argument
112 debugfs_remove_recursive(suite->debugfs); in kunit_debugfs_destroy_suite()
113 kfree(suite->log); in kunit_debugfs_destroy_suite()
114 kunit_suite_for_each_test_case(suite, test_case) in kunit_debugfs_destroy_suite()