| /linux/lib/kunit/ |
| H A D | test.c | 138 size_t kunit_suite_num_test_cases(struct kunit_suite *suite) in kunit_suite_num_test_cases() argument 143 kunit_suite_for_each_test_case(suite, test_case) in kunit_suite_num_test_cases() 157 static void kunit_print_suite_start(struct kunit_suite *suite) in kunit_print_suite_start() argument 160 * We do not log the test suite header as doing so would in kunit_print_suite_start() 161 * mean debugfs display would consist of the test suite in kunit_print_suite_start() 163 * Hence directly printk the suite status, and we will in kunit_print_suite_start() 164 * separately seq_printf() the suite header for the debugfs in kunit_print_suite_start() 169 suite->name); in kunit_print_suite_start() 170 kunit_print_attr((void *)suite, false, KUNIT_LEVEL_CASE); in kunit_print_suite_start() 172 kunit_suite_num_test_cases(suite)); in kunit_print_suite_start() 212 kunit_suite_has_succeeded(struct kunit_suite * suite) kunit_suite_has_succeeded() argument 233 kunit_print_suite_end(struct kunit_suite * suite) kunit_print_suite_end() argument 242 kunit_test_case_num(struct kunit_suite * suite,struct kunit_case * test_case) kunit_test_case_num() argument 409 kunit_test_timeout(struct kunit_suite * suite,struct kunit_case * test_case) kunit_test_timeout() argument 430 kunit_run_case_internal(struct kunit * test,struct kunit_suite * suite,struct kunit_case * test_case) kunit_run_case_internal() argument 465 kunit_run_case_cleanup(struct kunit * test,struct kunit_suite * suite) kunit_run_case_cleanup() argument 475 struct kunit_suite *suite; global() member 483 struct kunit_suite *suite = ctx->suite; kunit_try_run_case() local 500 struct kunit_suite *suite = ctx->suite; kunit_try_run_case_cleanup() local 568 kunit_run_case_catch_errors(struct kunit_suite * suite,struct kunit_case * test_case,struct kunit * test) kunit_run_case_catch_errors() argument 602 kunit_print_suite_stats(struct kunit_suite * suite,struct kunit_result_stats * suite_stats,struct kunit_result_stats * param_stats) kunit_print_suite_stats() argument 685 kunit_run_param_test(struct kunit_suite * suite,struct kunit_case * test_case,struct kunit * test,struct kunit_result_stats * suite_stats,struct kunit_result_stats * total_stats,struct kunit_result_stats * param_stats) kunit_run_param_test() argument 754 kunit_run_one_test(struct kunit_suite * suite,struct kunit_case * test_case,struct kunit_result_stats * suite_stats,struct kunit_result_stats * total_stats) kunit_run_one_test() argument 789 kunit_run_tests(struct kunit_suite * suite) kunit_run_tests() argument 823 kunit_init_suite(struct kunit_suite * suite) kunit_init_suite() argument 872 kunit_exit_suite(struct kunit_suite * suite) kunit_exit_suite() argument [all...] |
| H A D | attributes.c | 215 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in attr_speed_get() local 221 return ((void *) suite->attr.speed); in attr_speed_get() 226 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in attr_module_get() local 232 else if (kunit_suite_num_test_cases(suite) > 0) in attr_module_get() 233 return ((void *) suite->test_cases[0].module_name); in attr_module_get() 240 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in attr_is_init_get() local 246 return ((void *) suite->is_init); in attr_is_init_get() 291 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in kunit_print_attr() local 307 kunit_log(KERN_INFO, suite, "%*s# %s: %s", in kunit_print_attr() 397 struct kunit_suite *kunit_filter_attr_tests(const struct kunit_suite *const suite, in kunit_filter_attr_tests() argument [all …]
|
| H A D | debugfs.h | 13 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
|
| H A D | executor_test.c | 285 struct kunit_suite *suite; in alloc_fake_suite() local 288 suite = kunit_kzalloc(test, sizeof(*suite), GFP_KERNEL); in alloc_fake_suite() 289 strscpy((char *)suite->name, suite_name, sizeof(suite->name)); in alloc_fake_suite() 290 suite->test_cases = test_cases; in alloc_fake_suite() 292 return suite; in alloc_fake_suite()
|
| H A D | kunit-example-test.c | 55 * This is run once before all test cases in the suite. 58 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() 66 * This is run once after all test cases in the 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() 263 /* unless setup in suite->init(), test->priv is NULL */ in example_priv_test() 493 * Here we make a list of all the test cases we want to add to the test suite [all...] |
| H A D | executor.c | 126 kunit_filter_glob_tests(const struct kunit_suite *const suite, const char *test_glob) in kunit_filter_glob_tests() argument 132 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_glob_tests() 140 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_glob_tests() 151 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_glob_tests()
|
| H A D | kunit-test.c | 594 struct kunit_suite suite; in kunit_log_test() local 598 suite.log = kunit_alloc_string_stream(test, GFP_KERNEL); in kunit_log_test() 599 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, suite.log); in kunit_log_test() 600 string_stream_set_append_newlines(suite.log, true); in kunit_log_test() 604 kunit_log(KERN_INFO, &suite, "add to suite log."); in kunit_log_test() 605 kunit_log(KERN_INFO, &suite, "along with this."); in kunit_log_test() 617 full_log = string_stream_get_string(suite.log); in kunit_log_test()
|
| /linux/Documentation/ABI/testing/ |
| H A D | debugfs-scmi | 9 Users: Debugging, any userspace test suite 20 Users: Debugging, any userspace test suite 28 Users: Debugging, any userspace test suite 36 Users: Debugging, any userspace test suite 44 Users: Debugging, any userspace test suite 52 Users: Debugging, any userspace test suite 61 Users: Debugging, any userspace test suite 70 Users: Debugging, any userspace test suite
|
| H A D | debugfs-tpmi | 10 Users: Debugging, any user space test suite 18 Users: Debugging, any user space test suite 31 Users: Debugging, any user space test suite
|
| H A D | debugfs-scmi-raw | 14 Users: Debugging, any userspace test suite 32 Users: Debugging, any userspace test suite 48 Users: Debugging, any userspace test suite 68 Users: Debugging, any userspace test suite 79 Users: Debugging, any userspace test suite 90 Users: Debugging, any userspace test suite 102 Users: Debugging, any userspace test suite 126 Users: Debugging, any userspace test suite 153 Users: Debugging, any userspace test suite 179 Users: Debugging, any userspace test suite [all …]
|
| /linux/lib/crypto/tests/ |
| H A D | poly1305_kunit.c | 10 * order to reuse hash-test-template.h. At the beginning of the test suite, 46 static int poly1305_suite_init(struct kunit_suite *suite) in poly1305_suite_init() argument 52 poly1305_suite_exit(struct kunit_suite * suite) poly1305_suite_exit() argument
|
| /linux/tools/testing/kunit/test_data/ |
| H A D | test_is_test_passed-no_tests_no_plan.log | 3 # Subtest: suite 7 ok 1 - suite
|
| H A D | test_parse_subtest_header.log | 4 # Subtest: suite 7 ok 1 suite
|
| H A D | test_parse_attributes.log | 4 # Subtest: suite 9 ok 1 suite
|
| H A D | test_parse_ktap_output.log | 8 ok 1 suite
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | kvm_test_harness.h | 26 #define KVM_ONE_VCPU_TEST(suite, test, guestcode) \ argument 29 TEST_F(suite, test) \
|
| /linux/tools/testing/selftests/tc-testing/creating-plugins/ |
| H A D | AddingPlugins.txt | 14 - adding commands to be run before and/or after the test suite 18 pre (the pre-suite stage) 23 post (the post-suite stage) 48 TAP output. The tdc.py script will do that for the test suite as 52 post-suite method using this info passed in to the pre_suite method.
|
| /linux/tools/testing/selftests/tc-testing/ |
| H A D | README | 1 tdc - Linux Traffic Control (tc) unit testing suite 75 One run of tests is considered a "test suite" (this will be refined in the 76 future). A test suite has one or more test cases in it. 153 pre- and post-suite 158 The pre-suite hook receives the number of tests and an array of test ids. 170 - pre (pre-suite) 175 - post (post-suite) 207 first version of the tc testing suite. This work was presented at
|
| H A D | TODO.txt | 9 need to better handle problems in pre- and post-suite. 28 and a way to configure a test suite,
|
| /linux/Documentation/arch/arm/vfp/ |
| H A D | release-notes.rst | 14 John R. Hauser using the TestFloat-2a test suite. Details of this 15 library and test suite can be found at:
|
| /linux/lib/ |
| H A D | Kconfig.kmsan | 43 tristate "KMSAN integration test suite" if !KUNIT_ALL_TESTS 47 Test suite for KMSAN, testing various error detection scenarios,
|
| H A D | Kconfig.kfence | 55 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
|
| /linux/include/kunit/ |
| H A D | attributes.h | 47 struct kunit_suite *kunit_filter_attr_tests(const struct kunit_suite *const suite,
|
| /linux/Documentation/dev-tools/kunit/ |
| H A D | run_manual.rst | 79 to the kernel log and thus, may have different test suite numbering. 85 boot. To run the test suite, you can use the following command to write to 92 As a result, the test suite runs and the results are printed to the kernel
|
| /linux/Documentation/bpf/ |
| H A D | s390.rst | 15 The following is required to build and run the test suite: 105 In addition to the usual Kconfig options required to run the BPF test suite, it 127 4. Running the test suite 160 After that, the test suite can be run using the following commands::
|