/linux-6.3-rc2/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 | 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 | 259 KUNIT_EXPECT_EQ_MSG(test, _of, of, \ 262 KUNIT_EXPECT_EQ_MSG(test, _r, r, \ 267 KUNIT_EXPECT_EQ_MSG(test, _a_orig, _a_bump, "Unexpected " #op " macro side-effect!\n"); \ 268 KUNIT_EXPECT_EQ_MSG(test, _b_orig, _b_bump, "Unexpected " #op " macro side-effect!\n"); \ 343 KUNIT_EXPECT_EQ_MSG(test, __of, of, \ 347 KUNIT_EXPECT_EQ_MSG(test, __d, __e, \ 665 KUNIT_EXPECT_EQ_MSG(test, _r, expected, \ in overflow_size_helpers_test() 746 KUNIT_EXPECT_EQ_MSG(test, __of, of, \ in overflows_type_test() 1032 KUNIT_EXPECT_EQ_MSG(test, __pass, pass, \ in castable_to_type_test()
|
A D | memcpy_kunit.c | 43 KUNIT_EXPECT_EQ_MSG(test, one.data[i], two.data[i], \ 510 KUNIT_EXPECT_EQ_MSG(test, wrap.canary1, ULONG_MAX, in strtomem_test() 512 KUNIT_EXPECT_EQ_MSG(test, wrap.canary2, ULONG_MAX, in strtomem_test()
|
A D | siphash_kunit.c | 114 KUNIT_EXPECT_EQ_MSG(test, hash, vector, fmt)
|
A D | fortify_kunit.c | 67 KUNIT_EXPECT_EQ_MSG(test, __builtin_object_size(p, 1), \ 77 KUNIT_EXPECT_EQ_MSG(test, __builtin_dynamic_object_size(p, 1), \
|
/linux-6.3-rc2/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 | 464 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_order(block), order, in drm_test_buddy_alloc_smoke() 704 KUNIT_EXPECT_EQ_MSG(test, mm.max_order, DRM_BUDDY_MAX_ORDER, in drm_test_buddy_alloc_limit() 715 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_order(block), mm.max_order, in drm_test_buddy_alloc_limit() 719 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_size(&mm, block), in drm_test_buddy_alloc_limit()
|
/linux-6.3-rc2/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-6.3-rc2/net/sunrpc/auth_gss/ |
A D | gss_krb5_test.c | 66 KUNIT_EXPECT_EQ_MSG(test, in kdf_case() 111 KUNIT_EXPECT_EQ_MSG(test, in checksum_case() 314 KUNIT_EXPECT_EQ_MSG(test, in rfc3961_nfold_case() 762 KUNIT_EXPECT_EQ_MSG(test, in rfc3962_encrypt_case() 765 KUNIT_EXPECT_EQ_MSG(test, in rfc3962_encrypt_case() 769 KUNIT_EXPECT_EQ_MSG(test, in rfc3962_encrypt_case() 1389 KUNIT_EXPECT_EQ_MSG(test, in rfc6803_encrypt_case() 1393 KUNIT_EXPECT_EQ_MSG(test, in rfc6803_encrypt_case() 1879 KUNIT_EXPECT_EQ_MSG(test, in rfc8009_encrypt_case() 1882 KUNIT_EXPECT_EQ_MSG(test, in rfc8009_encrypt_case() [all …]
|
/linux-6.3-rc2/kernel/ |
A D | resource_kunit.c | 87 KUNIT_EXPECT_EQ_MSG(test, ret, exp_ret, "Resources %pR %pR", r1, r2); in resource_do_test() 88 KUNIT_EXPECT_EQ_MSG(test, r->start, exp_r->start, "Start elements are not equal"); in resource_do_test() 89 KUNIT_EXPECT_EQ_MSG(test, r->end, exp_r->end, "End elements are not equal"); in resource_do_test()
|
/linux-6.3-rc2/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-6.3-rc2/sound/soc/ |
A D | soc-topology-test.c | 66 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe() 231 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_comp() 335 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_fw()
|
/linux-6.3-rc2/include/kunit/ |
A D | test.h | 773 KUNIT_EXPECT_EQ_MSG(test, left, right, NULL) 775 #define KUNIT_EXPECT_EQ_MSG(test, left, right, fmt, ...) \ macro
|
/linux-6.3-rc2/drivers/iio/test/ |
A D | iio-test-rescale.c | 670 KUNIT_EXPECT_EQ_MSG(test, rel_ppm, 0, in iio_rescale_test_scale()
|
/linux-6.3-rc2/kernel/kcsan/ |
A D | kcsan_test.c | 543 KUNIT_EXPECT_EQ_MSG(test, reorder_access->size, \ in test_barrier_nothreads()
|
/linux-6.3-rc2/Documentation/dev-tools/kunit/ |
A D | usage.rst | 140 KUNIT_EXPECT_EQ_MSG(test, strlen(some_str), 40, "some_str='%s'", some_str);
|