Lines Matching full:suite

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