/kernel/linux/linux-5.10/lib/kunit/ |
H A D | debugfs.c | 40 struct kunit_suite *suite, in debugfs_print_result() 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 39 debugfs_print_result(struct seq_file *seq, struct kunit_suite *suite, struct kunit_case *test_case) debugfs_print_result() argument 92 kunit_debugfs_create_suite(struct kunit_suite *suite) kunit_debugfs_create_suite() argument 108 kunit_debugfs_destroy_suite(struct kunit_suite *suite) kunit_debugfs_destroy_suite() argument [all...] |
H A 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() 91 kunit_suite_has_succeeded(struct kunit_suite *suite) kunit_suite_has_succeeded() argument 104 kunit_print_subtest_end(struct kunit_suite *suite) kunit_print_subtest_end() argument 114 kunit_test_case_num(struct kunit_suite *suite, struct kunit_case *test_case) kunit_test_case_num() argument 227 kunit_run_case_internal(struct kunit *test, struct kunit_suite *suite, struct kunit_case *test_case) kunit_run_case_internal() argument 254 kunit_run_case_cleanup(struct kunit *test, struct kunit_suite *suite) kunit_run_case_cleanup() argument 265 struct kunit_suite *suite; global() member 273 struct kunit_suite *suite = ctx->suite; kunit_try_run_case() local 294 struct kunit_suite *suite = ctx->suite; kunit_catch_run_case() local 327 kunit_run_case_catch_errors(struct kunit_suite *suite, struct kunit_case *test_case) kunit_run_case_catch_errors() argument 353 kunit_run_tests(struct kunit_suite *suite) kunit_run_tests() argument 368 kunit_init_suite(struct kunit_suite *suite) kunit_init_suite() argument 385 kunit_exit_suite(struct kunit_suite *suite) kunit_exit_suite() 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 | kunit-test.c | 418 struct kunit_suite *suite = &kunit_log_test_suite; in kunit_log_test() local 422 kunit_log(KERN_INFO, suite, "add to suite log."); in kunit_log_test() 423 kunit_log(KERN_INFO, suite, "along with this."); in kunit_log_test() 431 strstr(suite->log, "add to suite log.")); in kunit_log_test() 433 strstr(suite->log, "along with this.")); in kunit_log_test() 436 KUNIT_EXPECT_PTR_EQ(test, suite->log, (char *)NULL); in kunit_log_test()
|
/kernel/linux/linux-6.6/lib/kunit/ |
H A D | debugfs.c | 41 struct kunit_suite *suite, in debugfs_print_result() 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 in debugfs_print_results() 40 debugfs_print_result(struct seq_file *seq, struct kunit_suite *suite, struct kunit_case *test_case) debugfs_print_result() argument 91 struct kunit_suite *suite; debugfs_results_open() local 105 kunit_debugfs_create_suite(struct kunit_suite *suite) kunit_debugfs_create_suite() argument 121 kunit_debugfs_destroy_suite(struct kunit_suite *suite) kunit_debugfs_destroy_suite() argument [all...] |
H A 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() 235 kunit_suite_has_succeeded(struct kunit_suite *suite) kunit_suite_has_succeeded() argument 256 kunit_print_suite_end(struct kunit_suite *suite) kunit_print_suite_end() argument 265 kunit_test_case_num(struct kunit_suite *suite, struct kunit_case *test_case) kunit_test_case_num() argument 409 kunit_run_case_internal(struct kunit *test, struct kunit_suite *suite, struct kunit_case *test_case) kunit_run_case_internal() argument 444 kunit_run_case_cleanup(struct kunit *test, struct kunit_suite *suite) kunit_run_case_cleanup() argument 455 struct kunit_suite *suite; global() member 463 struct kunit_suite *suite = ctx->suite; kunit_try_run_case() local 480 struct kunit_suite *suite = ctx->suite; kunit_try_run_case_cleanup() local 548 kunit_run_case_catch_errors(struct kunit_suite *suite, struct kunit_case *test_case, struct kunit *test) kunit_run_case_catch_errors() argument 580 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 631 kunit_run_tests(struct kunit_suite *suite) kunit_run_tests() argument 723 kunit_init_suite(struct kunit_suite *suite) kunit_init_suite() argument 758 kunit_exit_suite(struct kunit_suite *suite) kunit_exit_suite() 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 | 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...] |
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() 232 * Here we make a list of all the test cases we want to add to the test suite 240 * test suite [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 in alloc_fake_suite() [all...] |
H A D | kunit-test.c | 535 struct kunit_suite suite; in kunit_log_test() local 537 suite.log = kunit_kzalloc(test, KUNIT_LOG_SIZE, GFP_KERNEL); in kunit_log_test() 538 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, suite.log); in kunit_log_test() 542 kunit_log(KERN_INFO, &suite, "add to suite log."); in kunit_log_test() 543 kunit_log(KERN_INFO, &suite, "along with this."); in kunit_log_test() 551 strstr(suite.log, "add to suite log.")); in kunit_log_test() 553 strstr(suite.log, "along with this.")); in kunit_log_test()
|
H A 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() [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A 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() 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() 2427 generate_aead_message(rng, req, suite, vec, prefer_inauthentic); in generate_random_aead_testvec() 2440 &ctx->test_desc->suite in try_to_generate_inauthentic_testvec() 2308 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 2375 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 2651 test_aead(int enc, const struct aead_test_suite *suite, struct aead_request *req, struct cipher_test_sglists *tsgls) test_aead() argument 2670 const struct aead_test_suite *suite = &desc->suite.aead; alg_test_aead() local 3228 test_skcipher(int enc, const struct cipher_test_suite *suite, struct skcipher_request *req, struct cipher_test_sglists *tsgls) test_skcipher() argument 3247 const struct cipher_test_suite *suite = &desc->suite.cipher; alg_test_skcipher() local 3667 const struct cipher_test_suite *suite = &desc->suite.cipher; alg_test_cipher() local [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A 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() 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() 2316 generate_aead_message(req, suite, vec, prefer_inauthentic); in generate_random_aead_testvec() 2329 &ctx->test_desc->suite in try_to_generate_inauthentic_testvec() 2200 generate_aead_message(struct aead_request *req, const struct aead_test_suite *suite, struct aead_testvec *vec, bool prefer_inauthentic) generate_aead_message() argument 2265 generate_random_aead_testvec(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 2540 test_aead(const char *driver, int enc, const struct aead_test_suite *suite, struct aead_request *req, struct cipher_test_sglists *tsgls) test_aead() argument 2561 const struct aead_test_suite *suite = &desc->suite.aead; alg_test_aead() local 3111 test_skcipher(const char *driver, int enc, const struct cipher_test_suite *suite, struct skcipher_request *req, struct cipher_test_sglists *tsgls) test_skcipher() argument 3132 const struct cipher_test_suite *suite = &desc->suite.cipher; alg_test_skcipher() local 3523 const struct cipher_test_suite *suite = &desc->suite.cipher; alg_test_cipher() local [all...] |
/kernel/linux/linux-6.6/include/kunit/ |
H A D | test.h | 56 * enum kunit_status - Type of result for a test or test suite 57 * @KUNIT_SUCCESS: Denotes the test suite has not failed nor been skipped 84 /* Holds attributes for each test case and suite */ 101 * with a &struct kunit_suite and will be run after the suite's init 102 * function and followed by the suite's exit function. 226 * @suite_init: called once per test suite before the test cases. 227 * @suite_exit: called once per test suite after all test cases. 231 * @attr: the attributes associated with the test suite 246 int (*suite_init)(struct kunit_suite *suite); 247 void (*suite_exit)(struct kunit_suite *suite); [all...] |
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,
|
/kernel/linux/linux-5.10/include/kunit/ |
H A D | test.h | 115 * with a &struct kunit_suite and will be run after the suite's init 116 * function and followed by the suite's exit function. 235 int kunit_run_tests(struct kunit_suite *suite); 237 size_t kunit_suite_num_test_cases(struct kunit_suite *suite); 239 unsigned int kunit_test_case_num(struct kunit_suite *suite, 265 * If a test suite is built-in, module_init() gets translated into 316 #define kunit_test_suite(suite) kunit_test_suites(&suite) 318 #define kunit_suite_for_each_test_case(suite, test_case) \ 319 for (test_case = suite [all...] |
/kernel/linux/linux-6.6/tools/testing/kunit/ |
H A D | kunit.py | 151 raise ValueError(f'internal KUnit error, test name should be of the form "<suite>.<test>", got "{t}"') 152 suite, _ = parts 153 if not suites or suites[-1] != suite: 154 suites.append(suite) 173 elif request.run_isolated == 'suite': 394 'individual suite/test. This is can be useful for debugging ' 398 choices=['suite', 'test'])
|
/kernel/linux/linux-6.6/mm/kmsan/ |
H A D | kmsan_test.c | 629 static int kmsan_suite_init(struct kunit_suite *suite) in kmsan_suite_init() argument 635 static void kmsan_suite_exit(struct kunit_suite *suite) in kmsan_suite_exit() argument
|
/kernel/linux/linux-5.10/net/mac80211/ |
H A D | main.c | 808 u32 suite = local->hw.wiphy->cipher_suites[r]; in ieee80211_init_cipher_suites() local 810 if (suite == WLAN_CIPHER_SUITE_WEP40 || in ieee80211_init_cipher_suites() 811 suite == WLAN_CIPHER_SUITE_WEP104) in ieee80211_init_cipher_suites() 813 suites[w++] = suite; in ieee80211_init_cipher_suites()
|
/kernel/linux/linux-6.6/net/mac80211/ |
H A D | main.c | 899 u32 suite = local->hw.wiphy->cipher_suites[r]; in ieee80211_init_cipher_suites() local 901 if (suite == WLAN_CIPHER_SUITE_WEP40 || in ieee80211_init_cipher_suites() 902 suite == WLAN_CIPHER_SUITE_WEP104) in ieee80211_init_cipher_suites() 904 suites[w++] = suite; in ieee80211_init_cipher_suites()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/tests/ |
H A D | drm_buddy_test.c | 730 static int drm_buddy_suite_init(struct kunit_suite *suite) in drm_buddy_suite_init() argument 735 kunit_info(suite, "Testing DRM buddy manager, with random_seed=0x%x\n", random_seed); in drm_buddy_suite_init()
|
/kernel/linux/linux-6.6/mm/kfence/ |
H A D | kfence_test.c | 830 static int kfence_suite_init(struct kunit_suite *suite) in kfence_suite_init() argument 836 static void kfence_suite_exit(struct kunit_suite *suite) in kfence_suite_exit() argument
|
/drivers/peripheral/wlan/client/src/netlink/ |
H A D | netlink_cmd_adapter.c | 2224 if (nla_put_u32(keyMsg, NL80211_KEY_CIPHER, param->suite) != RET_CODE_SUCCESS) { in WifiInstallWlanExtParam() 2225 HILOG_ERROR(LOG_CORE, "%s: nla_put_u32 suite failed", __FUNCTION__); in WifiInstallWlanExtParam() 2270 const uint8_t *suite = buf + len; in InstallWlanExtParam() local 2275 param.suite = ((suite[0] << SUITE_LEFT_LEN_24) | (suite[SUITE_INDEX_1] << SUITE_LEFT_LEN_16) | in InstallWlanExtParam() 2276 (suite[SUITE_INDEX_2] << SUITE_LEFT_LEN_8) | suite[SUITE_INDEX_3]); in InstallWlanExtParam()
|
/kernel/linux/linux-5.10/drivers/staging/ks7010/ |
H A D | ks_hostif.c | 1662 unsigned char suite[4][CIPHER_ID_LEN]; member 1707 memcpy(&wpa_suite.suite[0][0], buf, CIPHER_ID_LEN); in hostif_sme_set_rsn() 1738 memcpy(&wpa_suite.suite[0][0], buf, CIPHER_ID_LEN); in hostif_sme_set_rsn() 1741 &wpa_suite.suite[0][0], in hostif_sme_set_rsn() 1767 memcpy(&wpa_suite.suite[0][0], buf, KEY_MGMT_ID_LEN); in hostif_sme_set_rsn()
|