kunit: Integrate handler tests and cover VDISK capacity

Include all handler suites through the shared KUnit switch in external
module builds. Link the capacity suite as a separate object with private
access to the command dispatcher. Keep the access declarations available
to ordinary in-tree builds.

Check READ CAPACITY response bytes, queue geometry, short and split
buffers, and invalid CDBs using private fileio and nullio fixtures.
Bind the command CDB to its inline buffer and provide a private session
for allocation-failure status handling.
This commit is contained in:
Gleb Chesnokov
2026-10-14 15:08:03 +03:00
parent 45d3123fe4
commit 4029d4f008
11 changed files with 296 additions and 8 deletions
+2 -1
View File
@@ -323,7 +323,8 @@ scst_08_sysfs="scst/src/scst_sysfs.c"
scst_09_debug="scst/include/scst_debug.h scst/src/scst_debug.c"
scst_10_sgv="scst/include/scst_sgv.h scst/src/scst_mem.h scst/src/scst_mem.c doc/scst_pg.sgml"
scst_user="scst/include/scst_user.h scst/src/dev_handlers/scst_user_main.c"
scst_13_vdisk="scst/src/dev_handlers/scst_vdisk_main.c"
scst_13_vdisk="scst/src/dev_handlers/scst_vdisk_main.c \
scst/src/dev_handlers/scst_vdisk_test.h"
scst_14_tg="scst/src/scst_tg.c"
separate_patches="scst_03_public_headers scst_04_main scst_05_targ scst_06_lib scst_07_pres scst_08_sysfs scst_09_debug scst_10_sgv scst_user scst_13_vdisk scst_14_tg"