kunit: test: add proper CONFIGs to test/Kconfig
Set natural dependencies on CONFIG_TEST; don't turn on KUnit by default.
Change-Id: I113c379f76d0e90c2aacbc6fd20af7df01b91ac4
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
diff --git a/test/Kconfig b/test/Kconfig
index 2b6f57c..ff89367 100644
--- a/test/Kconfig
+++ b/test/Kconfig
@@ -1,14 +1,31 @@
+#
+# KUnit base configuration
+#
+
+menu "KUnit support"
+
config TEST
- bool
- default y
+ bool "Enable support for unit tests (KUnit)"
+ help
+ Enables support for kernel unit tests (KUnit), a lightweight unit
+ testing and mocking framework for the Linux kernel. These tests are
+ able to be run locally on a developer's workstation without a VM or
+ special hardware. For more information, please see Documentation/test/
+
+if TEST
config TEST_TEST
- bool
+ bool "KUnit test for KUnit"
depends on TEST
- default y
+ help
+ Enables KUnit test to test KUnit.
config EXAMPLE_TEST
- bool
+ bool "Example test for KUnit"
depends on TEST
- default y
+ help
+ Enables example KUnit test to demo features of KUnit.
+endif # TEST
+
+endmenu