Lines Matching full:suite

66 	struct kunit_suite *suite = (struct kunit_suite *)seq->private;  in debugfs_print_results()  local
70 if (!suite) in debugfs_print_results()
73 success = kunit_suite_has_succeeded(suite); in debugfs_print_results()
79 /* Print suite header because it is not stored in the test logs. */ in debugfs_print_results()
81 seq_printf(seq, KUNIT_SUBTEST_INDENT "# Subtest: %s\n", suite->name); in debugfs_print_results()
82 seq_printf(seq, KUNIT_SUBTEST_INDENT "1..%zd\n", kunit_suite_num_test_cases(suite)); in debugfs_print_results()
84 kunit_suite_for_each_test_case(suite, test_case) in debugfs_print_results()
87 debugfs_print_result(seq, suite->log); in debugfs_print_results()
90 kunit_status_to_ok_not_ok(success), 1, suite->name); in debugfs_print_results()
101 struct kunit_suite *suite; in debugfs_results_open() local
103 suite = (struct kunit_suite *)inode->i_private; in debugfs_results_open()
105 return single_open(file, debugfs_print_results, suite); in debugfs_results_open()
114 struct kunit_suite *suite = (struct kunit_suite *)seq->private; in debugfs_print_run() local
116 seq_puts(seq, "Write to this file to trigger the test suite to run.\n"); in debugfs_print_run()
118 suite->name); in debugfs_print_run()
124 * contains no information. Write to the file to trigger the test suite
129 struct kunit_suite *suite; in debugfs_run_open() local
131 suite = (struct kunit_suite *)inode->i_private; in debugfs_run_open()
133 return single_open(file, debugfs_print_run, suite); in debugfs_run_open()
137 * Trigger a test suite to run by writing to the suite's "run" debugfs
146 struct kunit_suite *suite = (struct kunit_suite *) f_inode->i_private; in debugfs_run() local
148 __kunit_test_suites_init(&suite, 1); in debugfs_run()
168 void kunit_debugfs_create_suite(struct kunit_suite *suite) in kunit_debugfs_create_suite() argument
173 /* If suite log already allocated, do not create new debugfs files. */ in kunit_debugfs_create_suite()
174 if (suite->log) in kunit_debugfs_create_suite()
179 * The suite->log and test_case->log pointer are expected to be NULL in kunit_debugfs_create_suite()
188 suite->log = stream; in kunit_debugfs_create_suite()
190 kunit_suite_for_each_test_case(suite, test_case) { in kunit_debugfs_create_suite()
199 suite->debugfs = debugfs_create_dir(suite->name, debugfs_rootdir); in kunit_debugfs_create_suite()
202 suite->debugfs, in kunit_debugfs_create_suite()
203 suite, &debugfs_results_fops); in kunit_debugfs_create_suite()
206 if (!suite->is_init) { in kunit_debugfs_create_suite()
208 suite->debugfs, in kunit_debugfs_create_suite()
209 suite, &debugfs_run_fops); in kunit_debugfs_create_suite()
214 string_stream_destroy(suite->log); in kunit_debugfs_create_suite()
215 kunit_suite_for_each_test_case(suite, test_case) in kunit_debugfs_create_suite()
219 void kunit_debugfs_destroy_suite(struct kunit_suite *suite) in kunit_debugfs_destroy_suite() argument
223 debugfs_remove_recursive(suite->debugfs); in kunit_debugfs_destroy_suite()
224 string_stream_destroy(suite->log); in kunit_debugfs_destroy_suite()
225 kunit_suite_for_each_test_case(suite, test_case) in kunit_debugfs_destroy_suite()