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 bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation"
20 Enable debugfs representation for kunit. Currently this consists
21 of /sys/kernel/debug/kunit/<test_suite>/results files for each
22 test suite, which allow users to see results of the last test suite
26 tristate "KUnit test for KUnit"
28 Enables the unit tests for the KUnit test framework. These tests test
29 the KUnit test framework itself; the tests are both written using
30 KUnit and test KUnit. This option should only be enabled for testing
31 purposes by developers interested in testing that KUnit works as
34 config KUNIT_EXAMPLE_TEST
35 tristate "Example test for KUnit"
37 Enables an example unit test that illustrates some of the basic
38 features of KUnit. This test only exists to help new users understand
39 what KUnit is and how it is used. Please refer to the example test
40 itself, lib/kunit/example-test.c, for more information. This option
41 is intended for curious hackers who would like to understand how to
42 use KUnit for kernel development.