| /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 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 enum kunit_status kunit_suite_has_succeeded(struct kunit_suite *suite) in kunit_suite_has_succeeded() argument 217 if (suite->suite_init_err) in kunit_suite_has_succeeded() 220 kunit_suite_for_each_test_case(suite, test_case) { in kunit_suite_has_succeeded() 233 static void kunit_print_suite_end(struct kunit_suite *suite) in kunit_print_suite_end() 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 | 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 | 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/crypto/ |
| H A D | testmgr.c | 155 } suite; 1991 const struct hash_testvec *template = desc->suite.hash.vecs; in alg_test_hash() 1992 unsigned int tcount = desc->suite.hash.count; in alg_test_hash() 2308 const struct aead_test_suite *suite, in generate_aead_message() 2321 if (suite->aad_iv && vec->alen >= ivsize) in generate_aead_message() 2359 mutate_aead_message(rng, vec, suite->aad_iv, ivsize); in generate_aead_message() 2362 if (suite->einval_allowed) in generate_aead_message() 2376 const struct aead_test_suite *suite, in generate_random_aead_testvec() 2425 generate_aead_message(rng, req, suite, vec, prefer_inauthentic); in generate_random_aead_testvec() 2437 &ctx->test_desc->suite in try_to_generate_inauthentic_testvec() 156 } suite; global() member 2309 generate_aead_message(struct rnd_state * rng,struct aead_request * req,const struct aead_test_suite * suite,struct aead_testvec * vec,bool prefer_inauthentic) generate_aead_message() argument 2377 generate_random_aead_testvec(struct rnd_state * rng,struct aead_request * req,struct aead_testvec * vec,const struct aead_test_suite * suite,unsigned int maxkeysize,unsigned int maxdatasize,char * name,size_t max_namelen,bool prefer_inauthentic) generate_random_aead_testvec() argument 2641 test_aead(int enc,const struct aead_test_suite * suite,struct aead_request * req,struct cipher_test_sglists * tsgls) test_aead() argument 2660 const struct aead_test_suite *suite = &desc->suite.aead; alg_test_aead() local 3198 test_skcipher(int enc,const struct cipher_test_suite * suite,struct skcipher_request * req,struct cipher_test_sglists * tsgls) test_skcipher() argument 3217 const struct cipher_test_suite *suite = &desc->suite.cipher; alg_test_skcipher() local 3442 const struct cipher_test_suite *suite = &desc->suite.cipher; alg_test_cipher() local [all...] |
| /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 …]
|
| /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/lib/crypto/tests/ |
| H A D | poly1305_kunit.c | 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/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
|
| /linux/include/kunit/ |
| 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 */ 102 * with a &struct kunit_suite and will be run after the suite's init 103 * function and followed by the suite's exit function. 255 * @suite_init: called once per test suite before the test cases. 256 * @suite_exit: called once per test suite after all test cases. 260 * @attr: the attributes associated with the test suite 275 int (*suite_init)(struct kunit_suite *suite); 276 void (*suite_exit)(struct kunit_suite *suite); 433 kunit_test_suite(suite) global() argument 464 kunit_test_init_section_suite(suite) global() argument 467 kunit_suite_for_each_test_case(suite,test_case) global() argument [all...] |
| /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/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/ |
| 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/tools/perf/tests/ |
| H A D | builtin-test.c | 166 #define test_suite__for_each_test_case(suite, idx) \ argument 167 for (idx = 0; (suite)->test_cases && (suite)->test_cases[idx].name != NULL; idx++) 753 #define for_each_suite(suite) \ in build_suites() argument 755 while ((suite = suites[i][j++]) != NULL) in build_suites()
|