blob: af37016bfdd4785998e3a8dcda98232476ad88fa [file] [log] [blame]
Brendan Higgins914cc632019-09-23 02:02:31 -07001#
2# KUnit base configuration
3#
4
5menuconfig KUNIT
6 bool "KUnit - Enable support for unit tests"
7 help
8 Enables support for kernel unit tests (KUnit), a lightweight unit
9 testing and mocking framework for the Linux kernel. These tests are
10 able to be run locally on a developer's workstation without a VM or
11 special hardware when using UML. Can also be used on most other
12 architectures. For more information, please see
13 Documentation/dev-tools/kunit/.
Brendan Higginsd8e2a762019-09-23 02:02:37 -070014
15if KUNIT
16
17config KUNIT_TEST
18 bool "KUnit test for KUnit"
19 help
20 Enables the unit tests for the KUnit test framework. These tests test
21 the KUnit test framework itself; the tests are both written using
22 KUnit and test KUnit. This option should only be enabled for testing
23 purposes by developers interested in testing that KUnit works as
24 expected.
25
26config KUNIT_EXAMPLE_TEST
27 bool "Example test for KUnit"
28 help
29 Enables an example unit test that illustrates some of the basic
30 features of KUnit. This test only exists to help new users understand
31 what KUnit is and how it is used. Please refer to the example test
32 itself, lib/kunit/example-test.c, for more information. This option
33 is intended for curious hackers who would like to understand how to
34 use KUnit for kernel development.
35
36endif # KUNIT