/linux-master/lib/kunit/ |
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) { } argument 22 static inline void kunit_debugfs_destroy_suite(struct kunit_suite *suite) { } argument
|
H A D | debugfs.c | 66 struct kunit_suite *suite = (struct kunit_suite *)seq->private; local 70 if (!suite) 73 success = kunit_suite_has_succeeded(suite); 79 /* Print suite header because it is not stored in the test logs. */ 81 seq_printf(seq, KUNIT_SUBTEST_INDENT "# Subtest: %s\n", suite->name); 82 seq_printf(seq, KUNIT_SUBTEST_INDENT "1..%zd\n", kunit_suite_num_test_cases(suite)); 84 kunit_suite_for_each_test_case(suite, test_case) 87 debugfs_print_result(seq, suite->log); 90 kunit_status_to_ok_not_ok(success), 1, suite->name); 101 struct kunit_suite *suite; local 114 struct kunit_suite *suite = (struct kunit_suite *)seq->private; local 129 struct kunit_suite *suite; local 146 struct kunit_suite *suite = (struct kunit_suite *) f_inode->i_private; local 168 kunit_debugfs_create_suite(struct kunit_suite *suite) argument 219 kunit_debugfs_destroy_suite(struct kunit_suite *suite) argument [all...] |
H A D | test.c | 131 size_t kunit_suite_num_test_cases(struct kunit_suite *suite) argument 136 kunit_suite_for_each_test_case(suite, test_case) 150 static void kunit_print_suite_start(struct kunit_suite *suite) argument 153 * We do not log the test suite header as doing so would 154 * mean debugfs display would consist of the test suite 156 * Hence directly printk the suite status, and we will 157 * separately seq_printf() the suite header for the debugfs 162 suite->name); 163 kunit_print_attr((void *)suite, false, KUNIT_LEVEL_CASE); 165 kunit_suite_num_test_cases(suite)); 205 kunit_suite_has_succeeded(struct kunit_suite *suite) argument 226 kunit_print_suite_end(struct kunit_suite *suite) argument 235 kunit_test_case_num(struct kunit_suite *suite, struct kunit_case *test_case) argument 379 kunit_run_case_internal(struct kunit *test, struct kunit_suite *suite, struct kunit_case *test_case) argument 414 kunit_run_case_cleanup(struct kunit *test, struct kunit_suite *suite) argument 425 struct kunit_suite *suite; member in struct:kunit_try_catch_context 433 struct kunit_suite *suite = ctx->suite; local 450 struct kunit_suite *suite = ctx->suite; local 518 kunit_run_case_catch_errors(struct kunit_suite *suite, struct kunit_case *test_case, struct kunit *test) argument 550 kunit_print_suite_stats(struct kunit_suite *suite, struct kunit_result_stats suite_stats, struct kunit_result_stats param_stats) argument 601 kunit_run_tests(struct kunit_suite *suite) argument 696 kunit_init_suite(struct kunit_suite *suite) argument 740 kunit_exit_suite(struct kunit_suite *suite) argument [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; local 221 return ((void *) suite->attr.speed); 226 struct kunit_suite *suite = is_test ? NULL : test_or_suite; local 232 else if (kunit_suite_num_test_cases(suite) > 0) 233 return ((void *) suite->test_cases[0].module_name); 240 struct kunit_suite *suite = is_test ? NULL : test_or_suite; local 246 return ((void *) suite->is_init); 291 struct kunit_suite *suite local 397 kunit_filter_attr_tests(const struct kunit_suite *const suite, struct kunit_attr_filter filter, char *action, int *err) 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) argument 60 kunit_info(suite, "initializing suite\n"); 66 * This is run once after all test cases in the suite. 69 static void example_test_exit_suite(struct kunit_suite *suite) argument 71 kunit_info(suite, "exiting suite\n"); 263 /* unless setup in suite->init(), test->priv is NULL */ 281 * Here we make a list of all the test cases we want to add to the test suite [all...] |
H A D | executor_test.c | 30 kunit_parse_glob_filter(&filter, "suite"); 31 KUNIT_EXPECT_STREQ(test, filter.suite_glob, "suite"); 36 kunit_parse_glob_filter(&filter, "suite.test"); 37 KUNIT_EXPECT_STREQ(test, filter.suite_glob, "suite"); 162 subsuite[1]->attr.speed = KUNIT_SPEED_SLOW; // Set suite attribute 219 subsuite[0] = alloc_fake_suite(test, "suite", dummy_attr_test_cases); 221 /* Want: suite(slow, normal), NULL -> suite(slow with SKIP, normal), NULL */ 285 struct kunit_suite *suite; local 288 suite [all...] |
H A D | executor.c | 102 /* Create a copy of suite with only tests that match test_glob. */ 104 kunit_filter_glob_tests(const struct kunit_suite *const suite, const char *test_glob) argument 110 kunit_suite_for_each_test_case(suite, test_case) { 118 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); 129 kunit_suite_for_each_test_case(suite, test_case) { 213 /* Free previous copy of suite */ 287 /* Print suite name and suite attributes */ 292 /* Print test case name and attributes in suite */ 325 /* Set kunit suite se [all...] |
H A D | kunit-test.c | 549 struct kunit_suite suite; local 553 suite.log = kunit_alloc_string_stream(test, GFP_KERNEL); 554 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, suite.log); 555 string_stream_set_append_newlines(suite.log, true); 559 kunit_log(KERN_INFO, &suite, "add to suite log."); 560 kunit_log(KERN_INFO, &suite, "along with this."); 572 full_log = string_stream_get_string(suite.log); 575 strstr(full_log, "add to suite log."));
|
/linux-master/tools/testing/selftests/kvm/include/ |
H A D | kvm_test_harness.h | 26 #define KVM_ONE_VCPU_TEST(suite, test, guestcode) \ 29 TEST_F(suite, test) \
|
/linux-master/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 | 54 * enum kunit_status - Type of result for a test or test suite 55 * @KUNIT_SUCCESS: Denotes the test suite has not failed nor been skipped 82 /* Holds attributes for each test case and suite */ 99 * with a &struct kunit_suite and will be run after the suite's init 100 * function and followed by the suite's exit function. 224 * @suite_init: called once per test suite before the test cases. 225 * @suite_exit: called once per test suite after all test cases. 229 * @attr: the attributes associated with the test suite 244 int (*suite_init)(struct kunit_suite *suite); 245 void (*suite_exit)(struct kunit_suite *suite); [all...] |
/linux-master/crypto/ |
H A D | testmgr.c | 155 } suite; member in struct:alg_test_desc 1985 const struct hash_testvec *template = desc->suite.hash.vecs; 1986 unsigned int tcount = desc->suite.hash.count; 2306 const struct aead_test_suite *suite, 2319 if (suite->aad_iv && vec->alen >= ivsize) 2357 mutate_aead_message(rng, vec, suite->aad_iv, ivsize); 2360 if (suite->einval_allowed) 2374 const struct aead_test_suite *suite, 2423 generate_aead_message(rng, req, suite, vec, prefer_inauthentic); 2436 &ctx->test_desc->suite 2304 generate_aead_message(struct rnd_state *rng, struct aead_request *req, const struct aead_test_suite *suite, struct aead_testvec *vec, bool prefer_inauthentic) argument 2371 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) argument 2647 test_aead(int enc, const struct aead_test_suite *suite, struct aead_request *req, struct cipher_test_sglists *tsgls) argument 2666 const struct aead_test_suite *suite = &desc->suite.aead; local 3224 test_skcipher(int enc, const struct cipher_test_suite *suite, struct skcipher_request *req, struct cipher_test_sglists *tsgls) argument 3243 const struct cipher_test_suite *suite = &desc->suite.cipher; local 3663 const struct cipher_test_suite *suite = &desc->suite.cipher; local [all...] |
/linux-master/sound/pci/hda/ |
H A D | cirrus_scodec_test.c | 287 static int cirrus_scodec_test_suite_init(struct kunit_suite *suite) argument 294 kunit_err(suite, "Failed to register gpio platform driver, %d\n", ret); 301 static void cirrus_scodec_test_suite_exit(struct kunit_suite *suite) argument
|
/linux-master/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'])
|
/linux-master/mm/kmsan/ |
H A D | kmsan_test.c | 662 static int kmsan_suite_init(struct kunit_suite *suite) argument 668 static void kmsan_suite_exit(struct kunit_suite *suite) argument
|
/linux-master/drivers/gpu/drm/tests/ |
H A D | drm_buddy_test.c | 570 static int drm_buddy_suite_init(struct kunit_suite *suite) argument 575 kunit_info(suite, "Testing DRM buddy manager, with random_seed=0x%x\n",
|
/linux-master/net/mac80211/ |
H A D | main.c | 1053 u32 suite = local->hw.wiphy->cipher_suites[r]; local 1055 if (suite == WLAN_CIPHER_SUITE_WEP40 || 1056 suite == WLAN_CIPHER_SUITE_WEP104) 1058 suites[w++] = suite;
|
/linux-master/mm/kfence/ |
H A D | kfence_test.c | 830 static int kfence_suite_init(struct kunit_suite *suite) argument 836 static void kfence_suite_exit(struct kunit_suite *suite) argument
|
/linux-master/drivers/staging/ks7010/ |
H A D | ks_hostif.c | 1653 unsigned char suite[4][CIPHER_ID_LEN]; member in struct:wpa_suite 1698 memcpy(&wpa_suite.suite[0][0], buf, CIPHER_ID_LEN); 1729 memcpy(&wpa_suite.suite[0][0], buf, CIPHER_ID_LEN); 1732 &wpa_suite.suite[0][0], 1758 memcpy(&wpa_suite.suite[0][0], buf, KEY_MGMT_ID_LEN);
|
/linux-master/kernel/kcsan/ |
H A D | kcsan_test.c | 1583 static int kcsan_suite_init(struct kunit_suite *suite) argument 1589 static void kcsan_suite_exit(struct kunit_suite *suite) argument
|
/linux-master/mm/kasan/ |
H A D | kasan_test.c | 60 static int kasan_suite_init(struct kunit_suite *suite) argument 81 static void kasan_suite_exit(struct kunit_suite *suite) argument
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | lib.sh | 894 local suite=$1; shift 899 ip -j stats show dev $if_name group offload subgroup $suite |
|