summaryrefslogtreecommitdiff
path: root/drivers/virt/nitro_enclaves/Kconfig
diff options
context:
space:
mode:
authorLongpeng <longpeng2@huawei.com>2021-11-07 22:09:16 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-17 16:11:09 +0100
commit07503b3c1e13fdeb66d4531c5dcba335eed9602a (patch)
tree32c7705ab953118561e10cdef0a9bbdae0870c62 /drivers/virt/nitro_enclaves/Kconfig
parent090ce7831d340e8be92e5f2a90617cca6e92156e (diff)
downloadlwn-07503b3c1e13fdeb66d4531c5dcba335eed9602a.tar.gz
lwn-07503b3c1e13fdeb66d4531c5dcba335eed9602a.zip
nitro_enclaves: Add KUnit tests setup for the misc device functionality
Add the initial setup for the KUnit tests that will target the Nitro Enclaves misc device functionality. Reviewed-by: Andra Paraschiv <andraprs@amazon.com> Signed-off-by: Longpeng <longpeng2@huawei.com> Link: https://lore.kernel.org/r/20211107140918.2106-4-longpeng2@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/virt/nitro_enclaves/Kconfig')
-rw-r--r--drivers/virt/nitro_enclaves/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/virt/nitro_enclaves/Kconfig b/drivers/virt/nitro_enclaves/Kconfig
index f53740b941c0..2d3d98158121 100644
--- a/drivers/virt/nitro_enclaves/Kconfig
+++ b/drivers/virt/nitro_enclaves/Kconfig
@@ -14,3 +14,12 @@ config NITRO_ENCLAVES
To compile this driver as a module, choose M here.
The module will be called nitro_enclaves.
+
+config NITRO_ENCLAVES_MISC_DEV_TEST
+ bool "Tests for the misc device functionality of the Nitro Enclaves"
+ depends on NITRO_ENCLAVES && KUNIT=y
+ help
+ Enable KUnit tests for the misc device functionality of the Nitro
+ Enclaves. Select this option only if you will boot the kernel for
+ the purpose of running unit tests (e.g. under UML or qemu). If
+ unsure, say N.