/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() [all …]
|
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() 281 * Here we make a list of all the test cases we want to add to the test suite 289 * test suite. 304 * This defines a suite or grouping of tests. [all …]
|
H A 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 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 [all …]
|
H A 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 strscpy((char *)suite->name, suite_name, sizeof(suite->name)); in alloc_fake_suite() [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
|
/linux/Documentation/dev-tools/kunit/ |
H A 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 …]
|
H A D | architecture.rst | 47 A KUnit suite includes a collection of test cases. The KUnit suites 67 In the above example, the test suite ``example_test_suite``, runs the 71 The ``kunit_test_suite(example_test_suite)`` registers the test suite 88 :alt: KUnit Suite Memory 90 KUnit Suite Memory Diagram
|
/linux/crypto/ |
H A D | testmgr.c | 162 } suite; member 1998 const struct hash_testvec *template = desc->suite.hash.vecs; in alg_test_hash() 1999 unsigned int tcount = desc->suite.hash.count; in alg_test_hash() 2315 const struct aead_test_suite *suite, in generate_aead_message() argument 2328 if (suite->aad_iv && vec->alen >= ivsize) in generate_aead_message() 2366 mutate_aead_message(rng, vec, suite->aad_iv, ivsize); in generate_aead_message() 2369 if (suite->einval_allowed) in generate_aead_message() 2383 const struct aead_test_suite *suite, in generate_random_aead_testvec() argument 2432 generate_aead_message(rng, req, suite, vec, prefer_inauthentic); in generate_random_aead_testvec() 2444 &ctx->test_desc->suite.aead, in try_to_generate_inauthentic_testvec() [all …]
|
/linux/tools/perf/Documentation/ |
H A 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. 168 Suite for evaluating performance of core system call throughput (both usecs/op and ops/sec metrics). 176 Suite for evaluating performance of simple memory copy in various ways. 200 Suite for evaluating performance of simple memory set in various ways. 226 Suite for evaluating NUMA workloads. 231 Suite for evaluating hash tables. 234 Suite for evaluating wake calls. 237 Suite for evaluating parallel wake calls. [all …]
|
/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-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 …]
|
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/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# 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";
|
/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 | 1 tc Testing Suite To-Do list: 9 need to better handle problems in pre- and post-suite. 28 and a way to configure a test suite,
|
/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/kunit/ |
H A D | kunit_tool_test.py | 225 # A skipped test does not fail the whole suite. 242 # A skipped test does not fail the whole suite. 325 self.assertEqual('suite', result.subtests[0].name) 333 self.print_mock.assert_any_call(StrContains('suite (1 subtest)')) 344 # Ensure suite header is parsed correctly 345 self.print_mock.assert_any_call(StrContains('suite (1 subtest)')) 821 want = ['suite.test1', 'suite.test2', 'suite2.test1'] 825 …t.KunitExecRequest(None, None, False, False, '.kunit', 300, 'suite*', '', None, None, 'suite', Fal… 829 …args=['kunit.action=list'], build_dir='.kunit', filter_glob='suite*', filter='', filter_action=Non… 833 mock_tests.return_value = ['suite.test1', 'suite.test2', 'suite2.test1'] [all …]
|
/linux/Documentation/devicetree/bindings/riscv/ |
H A D | extensions.yaml | 377 The standard Zkn NIST algorithm suite extensions as ratified in 383 The standard Zknd for NIST suite: AES decryption instructions as 389 The standard Zkne for NIST suite: AES encryption instructions as 395 The standard Zknh for NIST suite: hash function instructions as 409 The standard Zks ShangMi algorithm suite extensions as ratified in 415 The standard Zksed for ShangMi suite: SM4 block cipher instructions 421 The standard Zksh for ShangMi suite: SM3 hash function instructions 584 The standard Zvkn extension for NIST algorithm suite instructions, as 590 The standard Zvknc extension for NIST algorithm suite with carryless 602 The standard Zvkng extension for NIST algorithm suite with GCM [all …]
|
/linux/include/kunit/ |
H A D | attributes.h | 27 * Print all test attributes for a test case or suite. 45 * Returns a copy of the suite containing only tests that pass the filter. 47 struct kunit_suite *kunit_filter_attr_tests(const struct kunit_suite *const suite,
|
H A D | test.h | 55 * enum kunit_status - Type of result for a test or test suite 56 * @KUNIT_SUCCESS: Denotes the test suite has not failed nor been skipped 83 /* Holds attributes for each test case and suite */ 100 * with a &struct kunit_suite and will be run after the suite's init 101 * function and followed by the suite's exit function. 225 * @suite_init: called once per test suite before the test cases. 226 * @suite_exit: called once per test suite after all test cases. 230 * @attr: the attributes associated with the test suite 245 int (*suite_init)(struct kunit_suite *suite); 246 void (*suite_exit)(struct kunit_suite *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 49 return hash_suite_init(suite); in poly1305_suite_init() 52 static void poly1305_suite_exit(struct kunit_suite *suite) in poly1305_suite_exit() argument 54 hash_suite_exit(suite); in poly1305_suite_exit()
|
/linux/mm/damon/ |
H A D | Kconfig | 20 This builds the DAMON Kunit test suite. 50 This builds the DAMON virtual addresses operations Kunit test suite. 70 This builds the DAMON sysfs interface Kunit test suite.
|
/linux/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
|