| /fs/bcachefs/ |
| A D | mean_and_variance_test.c | 8 static void mean_and_variance_basic_test(struct kunit *test) in mean_and_variance_basic_test() argument 15 KUNIT_EXPECT_EQ(test, mean_and_variance_get_mean(s), 2); in mean_and_variance_basic_test() 17 KUNIT_EXPECT_EQ(test, s.n, 2); in mean_and_variance_basic_test() 22 KUNIT_EXPECT_EQ(test, mean_and_variance_get_mean(s), 3); in mean_and_variance_basic_test() 24 KUNIT_EXPECT_EQ(test, s.n, 4); in mean_and_variance_basic_test() 123 KUNIT_EXPECT_EQ(test, mv.n, initial_n + n); in do_mean_and_variance_test() 178 KUNIT_EXPECT_EQ(test, u128_hi(u128_add(a, a1)), 1); in mean_and_variance_u128_basic_test() 179 KUNIT_EXPECT_EQ(test, u128_lo(u128_add(a, a1)), 0); in mean_and_variance_u128_basic_test() 180 KUNIT_EXPECT_EQ(test, u128_hi(u128_add(a1, a)), 1); in mean_and_variance_u128_basic_test() 186 KUNIT_EXPECT_EQ(test, u128_hi(u128_shl(c, 1)), 1); in mean_and_variance_u128_basic_test() [all …]
|
| A D | eytzinger.c | 277 static int test(void)
|
| A D | sysfs.c | 475 char *test = strsep(&p, " \t\n"); in STORE() local 485 ret = bch2_btree_perf_test(c, test, nr, threads); in STORE()
|
| /fs/unicode/tests/ |
| A D | utf8_kunit.c | 154 struct unicode_map *um = test->priv; in check_utf8_nfdi() 178 KUNIT_EXPECT_EQ(test, j, nlen); in check_utf8_nfdi() 186 struct unicode_map *um = test->priv; in check_utf8_nfdicf() 210 KUNIT_EXPECT_EQ(test, j, nlen); in check_utf8_nfdicf() 217 struct unicode_map *um = test->priv; in check_utf8_comparisons() 244 struct unicode_map *um = test->priv; in check_supported_versions() 268 static int init_test_ucd(struct kunit *test) in init_test_ucd() argument 272 test->priv = um; in init_test_ucd() 274 KUNIT_EXPECT_EQ_MSG(test, IS_ERR(um), 0, in init_test_ucd() 280 static void exit_test_ucd(struct kunit *test) in exit_test_ucd() argument [all …]
|
| /fs/ext4/ |
| A D | mballoc-test.c | 365 test->priv = sb; in mbt_kunit_init() 366 kunit_activate_static_stub(test, in mbt_kunit_init() 369 kunit_activate_static_stub(test, in mbt_kunit_init() 372 kunit_activate_static_stub(test, in mbt_kunit_init() 433 KUNIT_ASSERT_EQ_MSG(test, in test_new_blocks_simple() 443 KUNIT_ASSERT_EQ_MSG(test, in test_new_blocks_simple() 571 KUNIT_ASSERT_EQ(test, ret, 0); in test_mark_diskspace_used_range() 579 KUNIT_ASSERT_EQ(test, max, i); in test_mark_diskspace_used_range() 803 KUNIT_ASSERT_EQ(test, ret, 0); in test_mb_mark_used() 870 KUNIT_ASSERT_EQ(test, ret, 0); in test_mb_free_blocks() [all …]
|
| A D | inode-test.c | 222 static time64_t get_32bit_time(const struct timestamp_expectation * const test) in get_32bit_time() argument 224 if (test->msb_set) { in get_32bit_time() 225 if (test->lower_bound) in get_32bit_time() 231 if (test->lower_bound) in get_32bit_time() 241 static void inode_test_xtimestamp_decoding(struct kunit *test) in inode_test_xtimestamp_decoding() argument 246 (struct timestamp_expectation *)(test->param_value); in inode_test_xtimestamp_decoding() 252 KUNIT_EXPECT_EQ_MSG(test, in inode_test_xtimestamp_decoding() 260 KUNIT_EXPECT_EQ_MSG(test, in inode_test_xtimestamp_decoding()
|
| A D | Kconfig | 113 running KUnit test harness and are not for inclusion into a production
|
| /fs/fat/ |
| A D | fat_test.c | 13 static void fat_checksum_test(struct kunit *test) in fat_checksum_test() argument 16 KUNIT_EXPECT_EQ(test, fat_checksum("VMLINUX "), (u8)44); in fat_checksum_test() 131 static void fat_time_fat2unix_test(struct kunit *test) in fat_time_fat2unix_test() argument 136 (struct fat_timestamp_testcase *)test->param_value; in fat_time_fat2unix_test() 145 KUNIT_EXPECT_EQ_MSG(test, in fat_time_fat2unix_test() 149 KUNIT_EXPECT_EQ_MSG(test, in fat_time_fat2unix_test() 155 static void fat_time_unix2fat_test(struct kunit *test) in fat_time_unix2fat_test() argument 161 (struct fat_timestamp_testcase *)test->param_value; in fat_time_unix2fat_test() 168 KUNIT_EXPECT_EQ_MSG(test, in fat_time_unix2fat_test() 172 KUNIT_EXPECT_EQ_MSG(test, in fat_time_unix2fat_test() [all …]
|
| /fs/xfs/ |
| A D | xfs_dahash_test.c | 540 } test[] __initdata = variable 650 for (i = 0; i < ARRAY_SIZE(test); i++) { in xfs_dahash_test() 654 hash = xfs_da_hashname(test_buf + test[i].start, in xfs_dahash_test() 655 test[i].length); in xfs_dahash_test() 656 if (hash != test[i].dahash) in xfs_dahash_test() 659 xname.name = test_buf + test[i].start; in xfs_dahash_test() 660 xname.len = test[i].length; in xfs_dahash_test() 662 if (hash != test[i].ascii_ci_dahash) in xfs_dahash_test()
|
| /fs/tests/ |
| A D | binfmt_elf_kunit.c | 4 static void total_mapping_size_test(struct kunit *test) in total_mapping_size_test() argument 39 KUNIT_EXPECT_EQ(test, total_mapping_size(NULL, 0), 0); in total_mapping_size_test() 40 KUNIT_EXPECT_EQ(test, total_mapping_size(empty, 0), 0); in total_mapping_size_test() 42 KUNIT_EXPECT_EQ(test, total_mapping_size(empty, 1), 0); in total_mapping_size_test() 44 KUNIT_EXPECT_EQ(test, total_mapping_size(&empty[1], 1), 0); in total_mapping_size_test() 46 KUNIT_EXPECT_EQ(test, total_mapping_size(empty, 2), 0); in total_mapping_size_test() 49 KUNIT_EXPECT_EQ(test, total_mapping_size(mount, ARRAY_SIZE(mount)), mount_size); in total_mapping_size_test() 51 KUNIT_EXPECT_EQ(test, total_mapping_size(unordered, ARRAY_SIZE(unordered)), mount_size); in total_mapping_size_test()
|
| A D | exec_kunit.c | 111 static void exec_test_bprm_stack_limits(struct kunit *test) in exec_test_bprm_stack_limits() argument 114 KUNIT_EXPECT_EQ(test, _STK_LIM, SZ_8M); in exec_test_bprm_stack_limits() 115 KUNIT_EXPECT_EQ(test, ARG_MAX, 32 * SZ_4K); in exec_test_bprm_stack_limits() 116 KUNIT_EXPECT_EQ(test, MAX_ARG_STRINGS, 0x7FFFFFFF); in exec_test_bprm_stack_limits() 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()
|
| /fs/afs/ |
| A D | addr_prefs.c | 464 struct afs_addr_preference test; in afs_get_address_preferences_rcu() local 472 test.family = AF_INET; in afs_get_address_preferences_rcu() 473 test.subnet_mask = 32; in afs_get_address_preferences_rcu() 474 test.prio = 0; in afs_get_address_preferences_rcu() 478 test.ipv4_addr = sin->sin_addr; in afs_get_address_preferences_rcu() 480 cmp = afs_cmp_address_pref(&test, &preflist->prefs[j]); in afs_get_address_preferences_rcu() 494 test.family = AF_INET6; in afs_get_address_preferences_rcu() 495 test.subnet_mask = 128; in afs_get_address_preferences_rcu() 496 test.prio = 0; in afs_get_address_preferences_rcu() 500 test.ipv6_addr = sin6->sin6_addr; in afs_get_address_preferences_rcu() [all …]
|
| /fs/btrfs/tests/ |
| A D | extent-map-tests.c | 1013 struct rmap_test_vector *test) in test_rmap_block() argument 1020 map = btrfs_alloc_chunk_map(test->num_stripes, GFP_KERNEL); in test_rmap_block() 1028 map->chunk_len = test->data_stripe_size * test->num_data_stripes; in test_rmap_block() 1029 map->stripe_size = test->data_stripe_size; in test_rmap_block() 1030 map->num_stripes = test->num_stripes; in test_rmap_block() 1031 map->type = test->raid_type; in test_rmap_block() 1042 map->stripes[i].physical = test->data_stripe_phys_start[i]; in test_rmap_block() 1054 if (ret || (out_ndaddrs == 0 && test->expected_mapped_addr)) { in test_rmap_block() 1056 test->expected_mapped_addr); in test_rmap_block() 1065 if (out_ndaddrs != test->expected_mapped_addr) { in test_rmap_block() [all …]
|
| A D | raid-stripe-tree-tests.c | 1084 static int run_test(test_func_t test, u32 sectorsize, u32 nodesize) in run_test() argument 1135 ret = test(&trans); in run_test()
|
| /fs/ |
| A D | inode.c | 1010 int (*test)(struct inode *, void *), in find_inode() 1025 if (!test(inode, data)) in find_inode() 1276 int (*test)(struct inode *, void *), in inode_insert5() 1349 int (*test)(struct inode *, void *), in iget5_locked() 1379 int (*test)(struct inode *, void *), in iget5_locked_rcu() 1386 inode = find_inode(sb, head, test, data, false); in iget5_locked_rcu() 1574 int (*test)(struct inode *, void *), void *data) in ilookup5_nowait() 1580 inode = find_inode(sb, head, test, data, true); in ilookup5_nowait() 1605 int (*test)(struct inode *, void *), void *data) in ilookup5() 1609 inode = ilookup5_nowait(sb, hashval, test, data); in ilookup5() [all …]
|
| A D | super.c | 732 int (*test)(struct super_block *, struct fs_context *), in sget_fc() 753 if (test) { in sget_fc() 755 if (test(old, fc)) in sget_fc() 817 int (*test)(struct super_block *,void *), in sget() 829 if (test) { in sget() 831 if (!test(old, data)) in sget() 1313 int (*test)(struct super_block *, struct fs_context *), in vfs_get_super() 1320 sb = sget_fc(fc, test, set_anon_super_fc); in vfs_get_super()
|
| A D | Kconfig.binfmt | 37 prior bug fixes into a regression test collection. This is really 39 compat_binfmt_elf KUnit test is also created.
|
| /fs/btrfs/ |
| A D | ordered-data.c | 69 struct rb_node *test; in __tree_search() local 89 test = rb_next(prev); in __tree_search() 90 if (!test) in __tree_search() 92 prev_entry = rb_entry(test, struct btrfs_ordered_extent, in __tree_search() 97 prev = test; in __tree_search() 103 test = rb_prev(prev); in __tree_search() 104 if (!test) in __tree_search() 106 prev_entry = rb_entry(test, struct btrfs_ordered_extent, in __tree_search() 108 prev = test; in __tree_search()
|
| A D | ioctl.c | 1448 struct btrfs_key test; in key_in_sk() local 1451 test.objectid = sk->min_objectid; in key_in_sk() 1452 test.type = sk->min_type; in key_in_sk() 1453 test.offset = sk->min_offset; in key_in_sk() 1459 test.objectid = sk->max_objectid; in key_in_sk() 1460 test.type = sk->max_type; in key_in_sk() 1461 test.offset = sk->max_offset; in key_in_sk() 1480 struct btrfs_key test; in copy_to_sk() local 1573 test.objectid = sk->max_objectid; in copy_to_sk() 1574 test.type = sk->max_type; in copy_to_sk() [all …]
|
| A D | Kconfig | 93 to test the functionality and report problems.
|
| /fs/9p/ |
| A D | vfs_inode_dotl.c | 105 int (*test)(struct inode *inode, void *data); in v9fs_qid_iget_dotl() local 108 test = v9fs_test_new_inode_dotl; in v9fs_qid_iget_dotl() 110 test = v9fs_test_inode_dotl; in v9fs_qid_iget_dotl() 112 inode = iget5_locked(sb, QID2INO(qid), test, v9fs_set_inode_dotl, st); in v9fs_qid_iget_dotl()
|
| A D | vfs_inode.c | 415 int (*test)(struct inode *inode, void *data); in v9fs_qid_iget() local 418 test = v9fs_test_new_inode; in v9fs_qid_iget() 420 test = v9fs_test_inode; in v9fs_qid_iget() 422 inode = iget5_locked(sb, QID2INO(qid), test, v9fs_set_inode, st); in v9fs_qid_iget()
|
| /fs/autofs/ |
| A D | dev-ioctl.c | 190 int test(const struct path *path, void *data), in find_autofs_mount() 202 if (test(&path, data)) { in find_autofs_mount()
|
| /fs/befs/ |
| A D | ChangeLog | 132 * Added test for "impossible" condition of empty internal nodes in 151 the page size in linux, which is 4k i386. Oops. Added a test for
|
| /fs/cramfs/ |
| A D | README | 98 default mkcramfs doesn't test for & create holes, since cramfs in
|