Viacheslav Dubeyko
150ec68fa7
hfs: introduce KUnit tests for HFS string operations
This patch implements the initial Kunit based set of
unit tests for HFS string operations. It checks
functionality of hfs_strcmp(), hfs_hash_dentry(),
and hfs_compare_dentry() methods.
./tools/testing/kunit/kunit.py run --kunitconfig ./fs/hfs/.kunitconfig
[16:04:50] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[16:04:51] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=22
[16:04:59] Starting KUnit Kernel (1/1)...
[16:04:59] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[16:04:59] ================= hfs_string (3 subtests) ==================
[16:04:59] [PASSED] hfs_strcmp_test
[16:04:59] [PASSED] hfs_hash_dentry_test
[16:04:59] [PASSED] hfs_compare_dentry_test
[16:04:59] =================== [PASSED] hfs_string ====================
[16:04:59] ============================================================
[16:04:59] Testing complete. Ran 3 tests: passed: 3
[16:04:59] Elapsed time: 9.087s total, 1.310s configuring, 7.611s building, 0.125s running
v2
Fix linker error.
v3
Chen Linxuan suggested to use EXPORT_SYMBOL_IF_KUNIT.
Signed-off-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
cc: Yangtao Li <frank.li@vivo.com>
cc: linux-fsdevel@vger.kernel.org
cc: Chen Linxuan <me@black-desk.cn>
Reviewed-by: Chen Linxuan <me@black-desk.cn>
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
Link: https://lore.kernel.org/r/20250912225022.1083313-1-slava@dubeyko.com
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
2025-11-19 14:53:59 -08:00
..
2025-10-09 11:56:59 -07:00
2025-07-28 13:43:25 -07:00
2025-07-28 13:43:25 -07:00
2025-10-03 11:14:02 -07:00
2025-06-10 22:21:16 -04:00
2025-07-28 13:43:25 -07:00
2025-10-06 13:53:19 -07:00
2025-09-23 12:37:35 +02:00
2025-10-10 11:30:19 -07:00
2025-07-28 13:43:25 -07:00
2025-10-03 16:32:36 -07:00
2025-10-02 18:44:54 -07:00
2025-09-29 15:33:50 -07:00
2025-09-29 11:55:15 -07:00
2025-06-11 13:40:04 -04:00
2025-09-29 15:24:58 -07:00
2025-10-03 10:19:44 -07:00
2025-09-29 09:03:07 -07:00
2025-09-25 11:26:39 +08:00
2025-10-03 14:02:53 -07:00
2025-06-11 13:44:15 +02:00
2025-07-28 16:16:09 -07:00
2025-10-03 13:47:10 -07:00
2025-10-03 14:05:12 -07:00
2025-09-13 17:32:47 -07:00
2025-10-03 12:48:18 -07:00
2025-10-03 10:59:31 -07:00
2025-11-19 14:53:59 -08:00
2025-11-18 16:02:35 -08:00
2025-09-15 16:09:42 +02:00
2025-10-10 14:06:02 -07:00
2025-10-02 18:18:33 -07:00
2025-10-07 08:05:44 -06:00
2025-07-28 09:17:57 -07:00
2025-09-25 14:37:07 -04:00
2025-09-13 16:55:07 -07:00
2025-10-03 13:54:23 -07:00
2025-09-29 09:03:07 -07:00
2025-09-23 13:28:19 -04:00
2025-08-19 13:30:46 +02:00
2025-09-29 10:27:17 -07:00
2025-10-03 16:32:36 -07:00
2025-08-05 16:45:40 -07:00
2025-10-06 13:22:21 -07:00
2025-09-21 14:19:36 -07:00
2025-10-03 13:23:10 -07:00
2025-09-13 16:55:13 -07:00
2025-10-02 18:44:54 -07:00
2025-07-28 13:43:25 -07:00
2025-10-03 13:59:56 -07:00
2025-10-03 16:32:36 -07:00
2025-10-02 18:44:54 -07:00
2025-09-29 18:08:34 -07:00
2025-09-19 16:15:07 +02:00
2025-09-15 16:09:42 +02:00
2025-09-17 11:31:12 +02:00
2025-06-19 13:56:59 +02:00
2025-10-10 11:23:57 -07:00
2025-10-02 18:44:54 -07:00
2025-08-19 13:12:12 +02:00
2025-07-28 09:56:09 -07:00
2025-10-02 18:18:33 -07:00
2025-09-22 15:33:56 +02:00
2025-07-28 13:43:25 -07:00
2025-09-16 23:59:38 -04:00
2025-09-29 15:55:20 -07:00
2025-09-29 14:35:44 -07:00
2025-08-12 11:59:27 +09:00
2025-10-02 18:18:33 -07:00
2025-08-11 16:16:36 +02:00
2025-09-21 19:24:50 -04:00
2025-07-28 13:43:25 -07:00
2025-07-28 17:11:40 -07:00
2025-09-03 20:49:32 -07:00
2025-07-02 22:36:51 -04:00
2025-09-15 21:17:08 -04:00
2025-08-19 13:51:28 +02:00
2025-10-02 18:18:33 -07:00
2025-07-08 10:25:19 +02:00
2025-09-13 16:54:51 -07:00
2025-10-03 11:14:02 -07:00
2025-07-31 14:57:54 -07:00
2025-09-05 15:51:24 +02:00
2025-10-02 18:18:33 -07:00
2025-09-26 10:21:23 +02:00
2025-09-29 11:20:29 -07:00
2025-07-16 10:22:01 +02:00
2025-09-27 20:18:41 -04:00
2025-08-11 14:52:25 +02:00
2025-04-14 13:05:59 +02:00
2025-09-04 15:20:51 -04:00
2025-04-21 10:27:59 +02:00
2025-07-08 10:25:19 +02:00
2025-09-29 11:34:40 -07:00
2025-08-11 14:52:41 +02:00
2025-09-23 12:37:36 +02:00
2025-09-29 09:42:30 -07:00
2025-10-03 16:32:36 -07:00
2025-09-01 13:08:01 +02:00
2025-10-02 18:18:33 -07:00
2025-09-03 20:49:32 -07:00
2025-07-28 14:10:15 -07:00
2025-08-11 14:52:24 +02:00
2025-09-29 13:43:52 -07:00
2025-10-03 10:19:44 -07:00
2025-09-21 14:22:16 -07:00
2025-10-03 16:32:36 -07:00
2025-10-03 10:51:44 -07:00
2025-10-03 16:32:36 -07:00
2025-10-03 16:32:36 -07:00
2025-10-03 16:32:36 -07:00
2025-08-29 15:08:07 +02:00
2025-09-15 21:26:44 -04:00
2025-09-15 21:26:44 -04:00
2025-05-23 14:20:44 +02:00
2025-08-15 16:11:47 +02:00
2025-05-29 12:31:23 +02:00
2025-06-23 12:36:51 +02:00
2025-08-15 15:56:49 +02:00
2025-06-23 12:17:33 +02:00
2025-09-15 21:17:07 -04:00
2025-10-03 10:19:44 -07:00
2025-07-24 19:12:29 -07:00
2025-07-28 11:22:56 -07:00