summaryrefslogtreecommitdiff
path: root/lib/kunit/Kconfig
diff options
context:
space:
mode:
authorAlan Maguire <alan.maguire@oracle.com>2020-01-06 22:28:22 +0000
committerShuah Khan <skhan@linuxfoundation.org>2020-01-09 16:43:40 -0700
commit9fe124bf1b7788058ecfe5778fea1660b01e3e9c (patch)
treeffe45322a0880039531b1af2d459f2513143d1bd /lib/kunit/Kconfig
parent1c024d45151b51c8f8d4749e65958b0bcf3e7c52 (diff)
kunit: allow kunit to be loaded as a module
Making kunit itself buildable as a module allows for "always-on" kunit configuration; specifying CONFIG_KUNIT=m means the module is built but only used when loaded. Kunit test modules will load kunit.ko as an implicit dependency, so simply running "modprobe my-kunit-tests" will load the tests along with the kunit module and run them. Co-developed-by: Knut Omang <knut.omang@oracle.com> Signed-off-by: Knut Omang <knut.omang@oracle.com> Signed-off-by: Alan Maguire <alan.maguire@oracle.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'lib/kunit/Kconfig')
-rw-r--r--lib/kunit/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kunit/Kconfig b/lib/kunit/Kconfig
index 9ebd5e6d15fd..065aa16f448b 100644
--- a/lib/kunit/Kconfig
+++ b/lib/kunit/Kconfig
@@ -3,7 +3,7 @@
#
menuconfig KUNIT
- bool "KUnit - Enable support for unit tests"
+ tristate "KUnit - Enable support for unit tests"
help
Enables support for kernel unit tests (KUnit), a lightweight unit
testing and mocking framework for the Linux kernel. These tests are