| /linux/lib/ |
| A D | cpumask_kunit.c | 23 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(mask)); \ 46 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(mask)); \ 55 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(cpu_##name##_mask)); \ 67 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_weight(&mask_empty), MASK_MSG(&mask_empty)); in test_cpumask_weight() 68 KUNIT_EXPECT_EQ_MSG(test, nr_cpu_ids, cpumask_weight(cpu_possible_mask), in test_cpumask_weight() 70 KUNIT_EXPECT_EQ_MSG(test, nr_cpu_ids, cpumask_weight(&mask_all), MASK_MSG(&mask_all)); in test_cpumask_weight() 76 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_first(cpu_possible_mask), MASK_MSG(cpu_possible_mask)); in test_cpumask_first() 78 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_first_zero(&mask_empty), MASK_MSG(&mask_empty)); in test_cpumask_first() 87 KUNIT_EXPECT_EQ_MSG(test, nr_cpu_ids - 1, cpumask_last(cpu_possible_mask), in test_cpumask_last() 93 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_next_zero(-1, &mask_empty), MASK_MSG(&mask_empty)); in test_cpumask_next() [all …]
|
| A D | usercopy_kunit.c | 88 KUNIT_EXPECT_EQ_MSG(test, copy_to_user(umem, kmem, size), 0, in usercopy_test_check_nonzero_user() 132 KUNIT_EXPECT_EQ_MSG(test, copy_struct_from_user(kmem, ksize, umem, usize), 0, in usercopy_test_copy_struct_from_user() 145 KUNIT_EXPECT_EQ_MSG(test, copy_struct_from_user(kmem, ksize, umem, usize), 0, in usercopy_test_copy_struct_from_user() 163 KUNIT_EXPECT_EQ_MSG(test, clear_user(umem + ksize, usize - ksize), 0, in usercopy_test_copy_struct_from_user() 183 KUNIT_EXPECT_EQ_MSG(test, 0, copy_to_user(usermem, kmem, PAGE_SIZE), in usercopy_test_valid() 186 KUNIT_EXPECT_EQ_MSG(test, 0, copy_from_user(kmem, usermem, PAGE_SIZE), in usercopy_test_valid() 194 KUNIT_EXPECT_EQ_MSG(test, 0, \ in usercopy_test_valid() 198 KUNIT_EXPECT_EQ_MSG(test, 0, \ in usercopy_test_valid() 201 KUNIT_EXPECT_EQ_MSG(test, val_##size, check, \ in usercopy_test_valid() 269 KUNIT_EXPECT_EQ_MSG(test, val_##size, 0, \ in usercopy_test_invalid() [all …]
|
| A D | test_hash.c | 76 KUNIT_EXPECT_EQ_MSG(test, params->h1, params->h2, in test_int__hash_32() 89 KUNIT_EXPECT_EQ_MSG(test, params->h1, params->h2, in test_int_hash_64() 164 KUNIT_EXPECT_EQ_MSG(test, string_or, -1u, in test_string_or() 187 KUNIT_EXPECT_EQ_MSG(test, hashlen_len(hashlen), j-i, in test_hash_or() 191 KUNIT_EXPECT_EQ_MSG(test, hashlen_hash(hashlen), h0, in test_hash_or() 200 KUNIT_EXPECT_EQ_MSG(test, hash_or[0][0], -1u, in test_hash_or() 205 KUNIT_EXPECT_EQ_MSG(test, hash_or[1][0], -1u, in test_hash_or() 215 KUNIT_EXPECT_EQ_MSG(test, hash_or[0][i], m, in test_hash_or() 218 KUNIT_EXPECT_EQ_MSG(test, hash_or[1][i], m, in test_hash_or()
|
| A D | test_list_sort.c | 39 KUNIT_EXPECT_EQ_MSG(test, ela->poison1, TEST_POISON1, "bad poison"); in check() 40 KUNIT_EXPECT_EQ_MSG(test, ela->poison2, TEST_POISON2, "bad poison"); in check() 42 KUNIT_EXPECT_EQ_MSG(test, elb->poison1, TEST_POISON1, "bad poison"); in check() 43 KUNIT_EXPECT_EQ_MSG(test, elb->poison2, TEST_POISON2, "bad poison"); in check() 106 KUNIT_EXPECT_EQ_MSG(test, count, TEST_LIST_LEN, in list_sort_test()
|
| A D | cmdline_kunit.c | 50 KUNIT_EXPECT_EQ_MSG(test, ret, rc, fmt, in); in cmdline_do_one_test() 116 KUNIT_EXPECT_EQ_MSG(test, r[0], e[0], "in test %u (parsed) expected %d numbers, got %d", in cmdline_do_one_range_test() 119 KUNIT_EXPECT_EQ_MSG(test, r[i], e[i], "in test %u at %u", n, i); in cmdline_do_one_range_test() 123 KUNIT_EXPECT_EQ_MSG(test, r[0], e[0], "in test %u (validated) expected %d numbers, got %d", in cmdline_do_one_range_test()
|
| A D | overflow_kunit.c | 260 KUNIT_EXPECT_EQ_MSG(test, _of, of, \ 263 KUNIT_EXPECT_EQ_MSG(test, _r, r, \ 268 KUNIT_EXPECT_EQ_MSG(test, _a_orig, _a_bump, \ 270 KUNIT_EXPECT_EQ_MSG(test, _b_orig, _b_bump, \ 281 KUNIT_EXPECT_EQ_MSG(test, _a_orig, _a_bump, \ 283 KUNIT_EXPECT_EQ_MSG(test, _b_orig, _b_bump, \ 403 KUNIT_EXPECT_EQ_MSG(test, __of, of, \ 407 KUNIT_EXPECT_EQ_MSG(test, __d, __e, \ 722 KUNIT_EXPECT_EQ_MSG(test, _r, expected, \ in overflow_size_helpers_test() 803 KUNIT_EXPECT_EQ_MSG(test, __of, of, \ in overflows_type_test() [all …]
|
| A D | kunit_iov_iter.c | 141 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_kvec() 196 KUNIT_EXPECT_EQ_MSG(test, scratch[i], buffer[i], "at i=%x", i); in iov_kunit_copy_from_kvec() 304 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_bvec() 361 KUNIT_EXPECT_EQ_MSG(test, scratch[i], buffer[i], "at i=%x", i); in iov_kunit_copy_from_bvec() 469 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_folioq() 534 KUNIT_EXPECT_EQ_MSG(test, scratch[i], buffer[i], "at i=%x", i); in iov_kunit_copy_from_folioq() 628 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_xarray() 691 KUNIT_EXPECT_EQ_MSG(test, scratch[i], buffer[i], "at i=%x", i); in iov_kunit_copy_from_xarray()
|
| A D | siphash_kunit.c | 114 KUNIT_EXPECT_EQ_MSG(test, hash, vector, fmt)
|
| A D | string_kunit.c | 538 KUNIT_EXPECT_EQ_MSG(test, wrap.canary1, ULONG_MAX, in string_test_strtomem() 540 KUNIT_EXPECT_EQ_MSG(test, wrap.canary2, ULONG_MAX, in string_test_strtomem()
|
| A D | memcpy_kunit.c | 43 KUNIT_EXPECT_EQ_MSG(test, one.data[i], two.data[i], \
|
| /linux/drivers/gpu/drm/tests/ |
| A D | drm_damage_helper_test.c | 153 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, in drm_test_damage_iter_no_damage_fractional_src() 212 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_no_damage_not_visible() 230 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_no_damage_no_crtc() 248 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_no_damage_no_fb() 270 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return damage when set."); in drm_test_damage_iter_simple_damage() 338 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_single_damage_outside_src() 388 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, in drm_test_damage_iter_single_damage_intersect_fractional_src() 415 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_single_damage_outside_fractional_src() 438 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, in drm_test_damage_iter_single_damage_src_moved() 465 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, in drm_test_damage_iter_single_damage_fractional_src_moved() [all …]
|
| A D | drm_buddy_test.c | 721 KUNIT_EXPECT_EQ_MSG(test, mm.max_order, DRM_BUDDY_MAX_ORDER, in drm_test_buddy_alloc_limit() 732 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_order(block), mm.max_order, in drm_test_buddy_alloc_limit() 736 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_size(&mm, block), in drm_test_buddy_alloc_limit()
|
| /linux/drivers/gpu/drm/xe/tests/ |
| A D | xe_lmtt_test.c | 52 KUNIT_EXPECT_EQ_MSG(test, ops->lmtt_pte_index(addr - 1, n), 0, in test_ops() 54 KUNIT_EXPECT_EQ_MSG(test, ops->lmtt_pte_index(addr + 1, n), 1, in test_ops() 56 KUNIT_EXPECT_EQ_MSG(test, ops->lmtt_pte_index(addr * 2 - 1, n), 1, in test_ops() 58 KUNIT_EXPECT_EQ_MSG(test, ops->lmtt_pte_index(addr * 2, n), 2, in test_ops()
|
| A D | xe_mocs.c | 72 KUNIT_EXPECT_EQ_MSG(test, l3cc_expected, l3cc, in read_l3cc_table() 105 KUNIT_EXPECT_EQ_MSG(test, mocs_expected, mocs, in read_mocs_table()
|
| /linux/fs/fat/ |
| A D | fat_test.c | 145 KUNIT_EXPECT_EQ_MSG(test, in fat_time_fat2unix_test() 149 KUNIT_EXPECT_EQ_MSG(test, in fat_time_fat2unix_test() 168 KUNIT_EXPECT_EQ_MSG(test, in fat_time_unix2fat_test() 172 KUNIT_EXPECT_EQ_MSG(test, in fat_time_unix2fat_test() 176 KUNIT_EXPECT_EQ_MSG(test, in fat_time_unix2fat_test()
|
| /linux/net/sunrpc/auth_gss/ |
| A D | gss_krb5_test.c | 66 KUNIT_EXPECT_EQ_MSG(test, in kdf_case() 114 KUNIT_EXPECT_EQ_MSG(test, in checksum_case() 317 KUNIT_EXPECT_EQ_MSG(test, in rfc3961_nfold_case() 569 KUNIT_EXPECT_EQ_MSG(test, in rfc3962_encrypt_case() 572 KUNIT_EXPECT_EQ_MSG(test, in rfc3962_encrypt_case() 576 KUNIT_EXPECT_EQ_MSG(test, in rfc3962_encrypt_case() 1197 KUNIT_EXPECT_EQ_MSG(test, in rfc6803_encrypt_case() 1201 KUNIT_EXPECT_EQ_MSG(test, in rfc6803_encrypt_case() 1687 KUNIT_EXPECT_EQ_MSG(test, in rfc8009_encrypt_case() 1690 KUNIT_EXPECT_EQ_MSG(test, in rfc8009_encrypt_case() [all …]
|
| /linux/fs/ext4/ |
| A D | inode-test.c | 252 KUNIT_EXPECT_EQ_MSG(test, in inode_test_xtimestamp_decoding() 260 KUNIT_EXPECT_EQ_MSG(test, in inode_test_xtimestamp_decoding()
|
| /linux/fs/tests/ |
| A D | exec_kunit.c | 124 KUNIT_EXPECT_EQ_MSG(test, rc, result->expected_rc, "on loop %d", i); in exec_test_bprm_stack_limits() 126 KUNIT_EXPECT_EQ_MSG(test, bprm.argmin, result->expected_argmin, "on loop %d", i); in exec_test_bprm_stack_limits()
|
| /linux/kernel/ |
| A D | resource_kunit.c | 89 KUNIT_EXPECT_EQ_MSG(test, ret, exp_ret, "Resources %pR %pR", r1, r2); in resource_do_test() 90 KUNIT_EXPECT_EQ_MSG(test, r->start, exp_r->start, "Start elements are not equal"); in resource_do_test() 91 KUNIT_EXPECT_EQ_MSG(test, r->end, exp_r->end, "End elements are not equal"); in resource_do_test()
|
| /linux/fs/bcachefs/ |
| A D | mean_and_variance_test.c | 162 KUNIT_EXPECT_EQ_MSG(test, abs(fast_divpow2(i, d)), in mean_and_variance_fast_divpow2() 164 KUNIT_EXPECT_EQ_MSG(test, abs(fast_divpow2(-i, d)), in mean_and_variance_fast_divpow2()
|
| /linux/sound/pci/hda/ |
| A D | cirrus_scodec_test.c | 218 KUNIT_EXPECT_EQ_MSG(test, ret, 0, "Failed to add swnode\n"); in cirrus_scodec_test_spkid_parse() 227 KUNIT_EXPECT_EQ_MSG(test, ret, v, in cirrus_scodec_test_spkid_parse()
|
| /linux/sound/soc/ |
| A D | soc-card-test.c | 53 KUNIT_EXPECT_EQ_MSG(test, mc->shift, i, "For '%s'\n", test_card_controls[i].name); in test_snd_soc_card_get_kcontrol()
|
| A D | soc-topology-test.c | 60 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe() 225 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_comp() 329 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_fw()
|
| /linux/include/kunit/ |
| A D | test.h | 966 KUNIT_EXPECT_EQ_MSG(test, left, right, NULL) 968 #define KUNIT_EXPECT_EQ_MSG(test, left, right, fmt, ...) \ macro
|
| /linux/drivers/iio/test/ |
| A D | iio-test-rescale.c | 670 KUNIT_EXPECT_EQ_MSG(test, rel_ppm, 0, in iio_rescale_test_scale()
|