summaryrefslogtreecommitdiff
path: root/drivers/virt/nitro_enclaves/ne_misc_dev_test.c
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/ne_misc_dev_test.c
parent090ce7831d340e8be92e5f2a90617cca6e92156e (diff)
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/ne_misc_dev_test.c')
-rw-r--r--drivers/virt/nitro_enclaves/ne_misc_dev_test.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/virt/nitro_enclaves/ne_misc_dev_test.c b/drivers/virt/nitro_enclaves/ne_misc_dev_test.c
new file mode 100644
index 000000000000..6862e990d2be
--- /dev/null
+++ b/drivers/virt/nitro_enclaves/ne_misc_dev_test.c
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <kunit/test.h>
+
+static struct kunit_case ne_misc_dev_test_cases[] = {
+ {}
+};
+
+static struct kunit_suite ne_misc_dev_test_suite = {
+ .name = "ne_misc_dev_test",
+ .test_cases = ne_misc_dev_test_cases,
+};
+
+static struct kunit_suite *ne_misc_dev_test_suites[] = {
+ &ne_misc_dev_test_suite,
+ NULL
+};