xref: /linux/lib/kunit/Kconfig (revision d8e2a76b4c7918e4639de17db3d35c86ceb48506)
1914cc63eSBrendan Higgins#
2914cc63eSBrendan Higgins# KUnit base configuration
3914cc63eSBrendan Higgins#
4914cc63eSBrendan Higgins
5914cc63eSBrendan Higginsmenuconfig KUNIT
6914cc63eSBrendan Higgins	bool "KUnit - Enable support for unit tests"
7914cc63eSBrendan Higgins	help
8914cc63eSBrendan Higgins	  Enables support for kernel unit tests (KUnit), a lightweight unit
9914cc63eSBrendan Higgins	  testing and mocking framework for the Linux kernel. These tests are
10914cc63eSBrendan Higgins	  able to be run locally on a developer's workstation without a VM or
11914cc63eSBrendan Higgins	  special hardware when using UML. Can also be used on most other
12914cc63eSBrendan Higgins	  architectures. For more information, please see
13914cc63eSBrendan Higgins	  Documentation/dev-tools/kunit/.
14*d8e2a76bSBrendan Higgins
15*d8e2a76bSBrendan Higginsif KUNIT
16*d8e2a76bSBrendan Higgins
17*d8e2a76bSBrendan Higginsconfig KUNIT_TEST
18*d8e2a76bSBrendan Higgins	bool "KUnit test for KUnit"
19*d8e2a76bSBrendan Higgins	help
20*d8e2a76bSBrendan Higgins	  Enables the unit tests for the KUnit test framework. These tests test
21*d8e2a76bSBrendan Higgins	  the KUnit test framework itself; the tests are both written using
22*d8e2a76bSBrendan Higgins	  KUnit and test KUnit. This option should only be enabled for testing
23*d8e2a76bSBrendan Higgins	  purposes by developers interested in testing that KUnit works as
24*d8e2a76bSBrendan Higgins	  expected.
25*d8e2a76bSBrendan Higgins
26*d8e2a76bSBrendan Higginsconfig KUNIT_EXAMPLE_TEST
27*d8e2a76bSBrendan Higgins	bool "Example test for KUnit"
28*d8e2a76bSBrendan Higgins	help
29*d8e2a76bSBrendan Higgins	  Enables an example unit test that illustrates some of the basic
30*d8e2a76bSBrendan Higgins	  features of KUnit. This test only exists to help new users understand
31*d8e2a76bSBrendan Higgins	  what KUnit is and how it is used. Please refer to the example test
32*d8e2a76bSBrendan Higgins	  itself, lib/kunit/example-test.c, for more information. This option
33*d8e2a76bSBrendan Higgins	  is intended for curious hackers who would like to understand how to
34*d8e2a76bSBrendan Higgins	  use KUnit for kernel development.
35*d8e2a76bSBrendan Higgins
36*d8e2a76bSBrendan Higginsendif # KUNIT
37