| /kernel/linux/linux-6.6/lib/kunit/ |
| D | debugfs.c | 41 struct kunit_suite *suite, in debugfs_print_result() argument 55 struct kunit_suite *suite = (struct kunit_suite *)seq->private; in debugfs_print_results() local 59 if (!suite) in debugfs_print_results() 62 success = kunit_suite_has_succeeded(suite); in debugfs_print_results() 68 /* Print suite header because it is not stored in the test logs. */ in debugfs_print_results() 70 seq_printf(seq, KUNIT_SUBTEST_INDENT "# Subtest: %s\n", suite->name); in debugfs_print_results() 71 seq_printf(seq, KUNIT_SUBTEST_INDENT "1..%zd\n", kunit_suite_num_test_cases(suite)); in debugfs_print_results() 73 kunit_suite_for_each_test_case(suite, test_case) in debugfs_print_results() 74 debugfs_print_result(seq, suite, test_case); in debugfs_print_results() 76 if (suite->log) in debugfs_print_results() [all …]
|
| D | test.c | 161 size_t kunit_suite_num_test_cases(struct kunit_suite *suite) in kunit_suite_num_test_cases() argument 166 kunit_suite_for_each_test_case(suite, test_case) in kunit_suite_num_test_cases() 180 static void kunit_print_suite_start(struct kunit_suite *suite) in kunit_print_suite_start() argument 183 * We do not log the test suite header as doing so would in kunit_print_suite_start() 184 * mean debugfs display would consist of the test suite in kunit_print_suite_start() 186 * Hence directly printk the suite status, and we will in kunit_print_suite_start() 187 * separately seq_printf() the suite header for the debugfs in kunit_print_suite_start() 192 suite->name); in kunit_print_suite_start() 193 kunit_print_attr((void *)suite, false, KUNIT_LEVEL_CASE); in kunit_print_suite_start() 195 kunit_suite_num_test_cases(suite)); in kunit_print_suite_start() [all …]
|
| 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() 232 * Here we make a list of all the test cases we want to add to the test suite 240 * test suite. 253 * This defines a suite or grouping of tests. 255 * Test cases are defined as belonging to the suite by adding them to [all …]
|
| D | executor_test.c | 30 kunit_parse_glob_filter(&filter, "suite"); in parse_filter_test() 31 KUNIT_EXPECT_STREQ(test, filter.suite_glob, "suite"); in parse_filter_test() 36 kunit_parse_glob_filter(&filter, "suite.test"); in parse_filter_test() 37 KUNIT_EXPECT_STREQ(test, filter.suite_glob, "suite"); in parse_filter_test() 162 subsuite[1]->attr.speed = KUNIT_SPEED_SLOW; // Set suite attribute in filter_attr_test() 219 subsuite[0] = alloc_fake_suite(test, "suite", dummy_attr_test_cases); in filter_attr_skip_test() 221 /* Want: suite(slow, normal), NULL -> suite(slow with SKIP, normal), NULL */ in filter_attr_skip_test() 285 struct kunit_suite *suite; in alloc_fake_suite() local 288 suite = kunit_kzalloc(test, sizeof(*suite), GFP_KERNEL); in alloc_fake_suite() 289 strncpy((char *)suite->name, suite_name, sizeof(suite->name) - 1); in alloc_fake_suite() [all …]
|
| D | attributes.c | 13 * PRINT_ALWAYS - attribute is printed for every test case and suite if set 14 * PRINT_SUITE - attribute is printed for every suite if set but not for test cases 174 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in attr_speed_get() local 180 return ((void *) suite->attr.speed); in attr_speed_get() 185 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in attr_module_get() local 191 else if (kunit_suite_num_test_cases(suite) > 0) in attr_module_get() 192 return ((void *) suite->test_cases[0].module_name); in attr_module_get() 231 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in kunit_print_attr() local 247 kunit_log(KERN_INFO, suite, "%*s# %s: %s", in kunit_print_attr() 337 struct kunit_suite *kunit_filter_attr_tests(const struct kunit_suite *const suite, in kunit_filter_attr_tests() argument [all …]
|
| 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
|
| D | executor.c | 100 /* Create a copy of suite with only tests that match test_glob. */ 102 kunit_filter_glob_tests(const struct kunit_suite *const suite, const char *test_glob) in kunit_filter_glob_tests() argument 108 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_glob_tests() 116 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_glob_tests() 127 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_glob_tests() 211 /* Free previous copy of suite */ in kunit_filter_suites() 285 /* Print suite name and suite attributes */ in kunit_exec_list_tests() 290 /* Print test case name and attributes in suite */ in kunit_exec_list_tests() 347 if (filter_glob_param || filter_param) { /* a copy was made of each suite */ in kunit_run_all_tests()
|
| /kernel/linux/linux-5.10/lib/kunit/ |
| D | debugfs.c | 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 bool 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_string(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() [all …]
|
| D | test.c | 44 size_t kunit_suite_num_test_cases(struct kunit_suite *suite) in kunit_suite_num_test_cases() argument 49 kunit_suite_for_each_test_case(suite, test_case) in kunit_suite_num_test_cases() 56 static void kunit_print_subtest_start(struct kunit_suite *suite) in kunit_print_subtest_start() argument 58 kunit_log(KERN_INFO, suite, KUNIT_SUBTEST_INDENT "# Subtest: %s", in kunit_print_subtest_start() 59 suite->name); in kunit_print_subtest_start() 60 kunit_log(KERN_INFO, suite, KUNIT_SUBTEST_INDENT "1..%zd", in kunit_print_subtest_start() 61 kunit_suite_num_test_cases(suite)); in kunit_print_subtest_start() 70 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in kunit_print_ok_not_ok() local 74 * We do not log the test suite results as doing so would in kunit_print_ok_not_ok() 75 * mean debugfs display would consist of the test suite in kunit_print_ok_not_ok() [all …]
|
| D | kunit-example-test.c | 44 * Here we make a list of all the test cases we want to add to the test suite 52 * test suite. 59 * This defines a suite or grouping of tests. 61 * Test cases are defined as belonging to the suite by adding them to 68 * cleanup. For clarity, running tests in a test suite would behave as follows: 70 * suite.init(test); 71 * suite.test_case[0](test); 72 * suite.exit(test); 73 * suite.init(test); 74 * suite.test_case[1](test); [all …]
|
| 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
|
| /kernel/linux/linux-6.6/Documentation/dev-tools/kunit/ |
| D | style.rst | 24 suite is a group of tests which test a related area of the kernel. A subsystem 31 Every test suite must belong to a subsystem. A subsystem is a collection of one 81 shutdown code which is run for all tests in the suite. Not all subsystems need 90 put into separate suites, with the type of test as the last element in the suite 92 or similar in the suite name. 94 The full test suite name (including the subsystem name) should be specified as 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 117 ``integration_test``. It should be a separate test suite. For example, if the [all …]
|
| /kernel/linux/linux-5.10/Documentation/dev-tools/kunit/ |
| D | style.rst | 24 and subsystems. A test suite is a group of tests which test a related area of 31 Every test suite must belong to a subsystem. A subsystem is a collection of one 83 shutdown code which is run for all tests in the suite. 92 separate suites, with the type of test as the last element in the suite name. 94 similar in the suite name. 96 The full test suite name (including the subsystem name) should be specified as 109 The ``kasan`` subsystem has only one suite, so the suite name is the same as 117 The suite name is ambiguous without the subsystem name. 119 Because there is only one suite in the ``kasan`` subsystem, the suite should 121 ``integration_test``. Should a separate test suite with, for example, unit [all …]
|
| /kernel/linux/linux-5.10/crypto/ |
| D | testmgr.c | 155 } suite; member 1886 const struct hash_testvec *template = desc->suite.hash.vecs; in alg_test_hash() 1887 unsigned int tcount = desc->suite.hash.count; in alg_test_hash() 2201 const struct aead_test_suite *suite, in generate_aead_message() argument 2213 if (suite->aad_iv && vec->alen >= ivsize) in generate_aead_message() 2251 mutate_aead_message(vec, suite->aad_iv, ivsize); in generate_aead_message() 2254 if (suite->einval_allowed) in generate_aead_message() 2267 const struct aead_test_suite *suite, in generate_random_aead_testvec() argument 2316 generate_aead_message(req, suite, vec, prefer_inauthentic); in generate_random_aead_testvec() 2329 &ctx->test_desc->suite.aead, in try_to_generate_inauthentic_testvec() [all …]
|
| /kernel/linux/linux-6.6/crypto/ |
| D | testmgr.c | 155 } suite; member 1989 const struct hash_testvec *template = desc->suite.hash.vecs; in alg_test_hash() 1990 unsigned int tcount = desc->suite.hash.count; in alg_test_hash() 2310 const struct aead_test_suite *suite, in generate_aead_message() argument 2323 if (suite->aad_iv && vec->alen >= ivsize) in generate_aead_message() 2361 mutate_aead_message(rng, vec, suite->aad_iv, ivsize); in generate_aead_message() 2364 if (suite->einval_allowed) in generate_aead_message() 2378 const struct aead_test_suite *suite, in generate_random_aead_testvec() argument 2427 generate_aead_message(rng, req, suite, vec, prefer_inauthentic); in generate_random_aead_testvec() 2440 &ctx->test_desc->suite.aead, in try_to_generate_inauthentic_testvec() [all …]
|
| /kernel/linux/linux-6.6/tools/perf/Documentation/ |
| D | perf-bench.txt | 11 'perf bench' [<common options>] <subsystem> <suite> [<options>] 79 Suite for evaluating performance of scheduler and IPC mechanisms. 118 Suite for pipe() system call. 149 Suite for evaluating performance of core system call throughput (both usecs/op and ops/sec metrics). 157 Suite for evaluating performance of simple memory copy in various ways. 181 Suite for evaluating performance of simple memory set in various ways. 207 Suite for evaluating NUMA workloads. 212 Suite for evaluating hash tables. 215 Suite for evaluating wake calls. 218 Suite for evaluating parallel wake calls. [all …]
|
| /kernel/linux/linux-5.10/tools/perf/Documentation/ |
| D | perf-bench.txt | 11 'perf bench' [<common options>] <subsystem> <suite> [<options>] 76 Suite for evaluating performance of scheduler and IPC mechanisms. 115 Suite for pipe() system call. 146 Suite for evaluating performance of core system call throughput (both usecs/op and ops/sec metrics). 154 Suite for evaluating performance of simple memory copy in various ways. 178 Suite for evaluating performance of simple memory set in various ways. 204 Suite for evaluating NUMA workloads. 209 Suite for evaluating hash tables. 212 Suite for evaluating wake calls. 215 Suite for evaluating parallel wake calls. [all …]
|
| /kernel/linux/linux-6.6/Documentation/ABI/testing/ |
| 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
|
| 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
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/mtd/partitions/ |
| D | arm,arm-firmware-suite.yaml | 4 $id: http://devicetree.org/schemas/mtd/partitions/arm,arm-firmware-suite.yaml# 7 title: ARM Firmware Suite (AFS) Partitions 15 The ARM Firmware Suite is a flash partitioning system found on the 21 const: arm,arm-firmware-suite 28 compatible = "arm,arm-firmware-suite";
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/partitions/ |
| D | arm,arm-firmware-suite.txt | 1 ARM AFS - ARM Firmware Suite Partitions 4 The ARM Firmware Suite is a flash partitioning system found on the 9 - compatible : (required) must be "arm,arm-firmware-suite" 15 compatible = "arm,arm-firmware-suite";
|
| /kernel/linux/linux-6.6/tools/testing/selftests/tc-testing/creating-plugins/ |
| 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.
|
| /kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/creating-plugins/ |
| 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.
|
| /kernel/linux/linux-6.6/tools/testing/selftests/tc-testing/ |
| D | README | 1 tdc - Linux Traffic Control (tc) unit testing suite 76 One run of tests is considered a "test suite" (this will be refined in the 77 future). A test suite has one or more test cases in it. 134 -P, --pause Pause execution just before post-suite stage 198 pre- and post-suite 203 The pre-suite hook receives the number of tests and an array of test ids. 215 - pre (pre-suite) 220 - post (post-suite) 254 first version of the tc testing suite. This work was presented at
|
| /kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/ |
| D | README | 1 tdc - Linux Traffic Control (tc) unit testing suite 76 One run of tests is considered a "test suite" (this will be refined in the 77 future). A test suite has one or more test cases in it. 134 -P, --pause Pause execution just before post-suite stage 198 pre- and post-suite 203 The pre-suite hook receives the number of tests and an array of test ids. 215 - pre (pre-suite) 220 - post (post-suite) 254 first version of the tc testing suite. This work was presented at
|