2 # KUnit base configuration
6 tristate "KUnit - Enable support for unit tests"
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/.
18 tristate "KUnit test for KUnit"
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
26 config KUNIT_EXAMPLE_TEST
27 tristate "Example test for KUnit"
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.