| /linux-6.15/lib/kunit/ |
| H A D | debugfs.c | 70 if (!suite) in debugfs_print_results() 101 struct kunit_suite *suite; in debugfs_results_open() local 118 suite->name); in debugfs_print_run() 129 struct kunit_suite *suite; in debugfs_run_open() local 174 if (suite->log) in kunit_debugfs_create_suite() 188 suite->log = stream; 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() 206 if (!suite->is_init) { in kunit_debugfs_create_suite() 208 suite->debugfs, in kunit_debugfs_create_suite() [all …]
|
| H A D | test.c | 162 suite->name); in kunit_print_suite_start() 385 if (suite->init) { in kunit_run_case_internal() 417 if (suite->exit) in kunit_run_case_cleanup() 418 suite->exit(test); in kunit_run_case_cleanup() 433 struct kunit_suite *suite = ctx->suite; in kunit_try_run_case() local 450 struct kunit_suite *suite = ctx->suite; in kunit_try_run_case_cleanup() local 532 context.suite = suite; in kunit_run_case_catch_errors() 557 suite->name, in kunit_print_suite_stats() 612 suite->suite_init_err = suite->suite_init(suite); in kunit_run_tests() 686 suite->suite_exit(suite); in kunit_run_tests() [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() 246 return ((void *) suite->is_init); in attr_is_init_get() 307 kunit_log(KERN_INFO, suite, "%*s# %s: %s", in kunit_print_attr() 407 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_attr_tests() 411 kunit_suite_for_each_test_case(suite, test_case) { n++; } in kunit_filter_attr_tests() 427 suite_val = filter.attr->get_attr((void *)suite, false); in kunit_filter_attr_tests() [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 | 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() 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()
|
| H A D | executor.c | 114 kunit_filter_glob_tests(const struct kunit_suite *const suite, const char *test_glob) in kunit_filter_glob_tests() argument 120 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_glob_tests() 128 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_glob_tests() 139 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_glob_tests()
|
| H A D | kunit-test.c | 591 struct kunit_suite suite; in kunit_log_test() local 595 suite.log = kunit_alloc_string_stream(test, GFP_KERNEL); in kunit_log_test() 596 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, suite.log); in kunit_log_test() 597 string_stream_set_append_newlines(suite.log, true); in kunit_log_test() 601 kunit_log(KERN_INFO, &suite, "add to suite log."); in kunit_log_test() 602 kunit_log(KERN_INFO, &suite, "along with this."); in kunit_log_test() 614 full_log = string_stream_get_string(suite.log); in kunit_log_test()
|
| /linux-6.15/crypto/ |
| H A D | testmgr.c | 162 } suite; member 4257 .suite = { 4264 .suite = { 4270 .suite = { 4276 .suite = { 4282 .suite = { 4289 .suite = { 4295 .suite = { 4301 .suite = { 4311 .suite = { [all …]
|
| /linux-6.15/Documentation/dev-tools/kunit/ |
| H A D | style.rst | 92 or similar in the suite name. 105 The ``kasan`` subsystem has only one suite, so the suite name is the same as 113 The suite name is ambiguous without the subsystem name. 115 Because there is only one suite in the ``kasan`` subsystem, the suite should 126 results will show up as subtests of the suite's results. 150 test name, separated by a colon (i.e. ``suite:test``). 155 Every test suite should be tied to a Kconfig entry. 160 suite. 205 So for the common case, name the file containing the test suite 206 ``tests/<suite>_kunit.c``. The ``tests`` directory should be placed at [all …]
|
| /linux-6.15/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-scmi-raw | 14 Users: Debugging, any userspace test suite 32 Users: Debugging, any userspace test suite 43 Users: Debugging, any userspace test suite 54 Users: Debugging, any userspace test suite 66 Users: Debugging, any userspace test suite 90 Users: Debugging, any userspace test suite 117 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
|
| /linux-6.15/lib/math/tests/ |
| H A D | prime_numbers_kunit.c | 12 struct kunit_suite *suite = ctx; in dump_primes() local 15 kunit_info(suite, "primes.{last=%lu, .sz=%lu, .primes[]=...x%lx} = %s", in dump_primes() 39 static void kunit_suite_exit(struct kunit_suite *suite) in kunit_suite_exit() argument 41 with_primes(suite, dump_primes); in kunit_suite_exit()
|
| /linux-6.15/Documentation/devicetree/bindings/mtd/partitions/ |
| H A D | arm,arm-firmware-suite.yaml | 4 $id: http://devicetree.org/schemas/mtd/partitions/arm,arm-firmware-suite.yaml# 21 const: arm,arm-firmware-suite 28 compatible = "arm,arm-firmware-suite";
|
| /linux-6.15/tools/testing/kunit/test_data/ |
| H A D | test_parse_subtest_header.log | 4 # Subtest: suite 7 ok 1 suite
|
| H A D | test_is_test_passed-no_tests_no_plan.log | 3 # Subtest: suite 7 ok 1 - suite
|
| H A D | test_parse_attributes.log | 4 # Subtest: suite 9 ok 1 suite
|
| /linux-6.15/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-6.15/include/kunit/ |
| H A D | test.h | 245 int (*suite_init)(struct kunit_suite *suite); 246 void (*suite_exit)(struct kunit_suite *suite); 323 int kunit_run_tests(struct kunit_suite *suite); 325 size_t kunit_suite_num_test_cases(struct kunit_suite *suite); 327 unsigned int kunit_test_case_num(struct kunit_suite *suite, 381 #define kunit_test_suite(suite) kunit_test_suites(&suite) argument 412 #define kunit_test_init_section_suite(suite) \ argument 413 kunit_test_init_section_suites(&suite) 415 #define kunit_suite_for_each_test_case(suite, test_case) \ argument 416 for (test_case = suite->test_cases; test_case->run_case; test_case++) [all …]
|
| /linux-6.15/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-6.15/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-6.15/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-6.15/mm/damon/ |
| H A D | Kconfig | 20 This builds the DAMON Kunit test suite. 48 This builds the DAMON virtual addresses operations Kunit test suite. 67 This builds the DAMON sysfs interface Kunit test suite.
|