summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/Kconfig
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2024-01-22 18:22:20 -0600
committerMartin K. Petersen <martin.petersen@oracle.com>2024-01-29 21:20:55 -0500
commit25a1f7a0a1fe6fa69a5370fbb5cc6dcf3726d81e (patch)
tree0a84246ab966f97151da0600f32e4262b09d1d1a /drivers/scsi/Kconfig
parentb8c3a7bac9b6cddeeb7cb82f3372310ecabf83ef (diff)
downloadlinux-25a1f7a0a1fe6fa69a5370fbb5cc6dcf3726d81e.tar.gz
linux-25a1f7a0a1fe6fa69a5370fbb5cc6dcf3726d81e.tar.bz2
linux-25a1f7a0a1fe6fa69a5370fbb5cc6dcf3726d81e.zip
scsi: core: Add kunit tests for scsi_check_passthrough()
Add some kunit tests for scsi_check_passthrough() so we can easily make sure we are hitting the cases for which it's difficult to replicate in hardware or even scsi_debug. Signed-off-by: Mike Christie <michael.christie@oracle.com> Link: https://lore.kernel.org/r/20240123002220.129141-20-michael.christie@oracle.com Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/Kconfig')
-rw-r--r--drivers/scsi/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
index addac7fbe37b..e20af95a912b 100644
--- a/drivers/scsi/Kconfig
+++ b/drivers/scsi/Kconfig
@@ -67,6 +67,15 @@ config SCSI_PROC_FS
If unsure say Y.
+config SCSI_LIB_KUNIT_TEST
+ tristate "KUnit tests for SCSI Mid Layer's scsi_lib" if !KUNIT_ALL_TESTS
+ depends on KUNIT
+ default KUNIT_ALL_TESTS
+ help
+ Run SCSI Mid Layer's KUnit tests for scsi_lib.
+
+ If unsure say N.
+
comment "SCSI support type (disk, tape, CD-ROM)"
depends on SCSI