]>
Commit | Line | Data |
---|---|---|
914cc63e BH |
1 | # |
2 | # KUnit base configuration | |
3 | # | |
4 | ||
5 | menuconfig KUNIT | |
9fe124bf | 6 | tristate "KUnit - Enable support for unit tests" |
914cc63e BH |
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/. | |
d8e2a76b BH |
14 | |
15 | if KUNIT | |
16 | ||
e2219db2 | 17 | config KUNIT_DEBUGFS |
beaed42c AR |
18 | bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation" if !KUNIT_ALL_TESTS |
19 | default KUNIT_ALL_TESTS | |
e2219db2 AM |
20 | help |
21 | Enable debugfs representation for kunit. Currently this consists | |
22 | of /sys/kernel/debug/kunit/<test_suite>/results files for each | |
23 | test suite, which allow users to see results of the last test suite | |
24 | run that occurred. | |
25 | ||
d8e2a76b | 26 | config KUNIT_TEST |
beaed42c AR |
27 | tristate "KUnit test for KUnit" if !KUNIT_ALL_TESTS |
28 | default KUNIT_ALL_TESTS | |
d8e2a76b BH |
29 | help |
30 | Enables the unit tests for the KUnit test framework. These tests test | |
31 | the KUnit test framework itself; the tests are both written using | |
32 | KUnit and test KUnit. This option should only be enabled for testing | |
33 | purposes by developers interested in testing that KUnit works as | |
34 | expected. | |
35 | ||
36 | config KUNIT_EXAMPLE_TEST | |
beaed42c AR |
37 | tristate "Example test for KUnit" if !KUNIT_ALL_TESTS |
38 | default KUNIT_ALL_TESTS | |
d8e2a76b BH |
39 | help |
40 | Enables an example unit test that illustrates some of the basic | |
41 | features of KUnit. This test only exists to help new users understand | |
42 | what KUnit is and how it is used. Please refer to the example test | |
43 | itself, lib/kunit/example-test.c, for more information. This option | |
44 | is intended for curious hackers who would like to understand how to | |
45 | use KUnit for kernel development. | |
46 | ||
92238b31 AR |
47 | config KUNIT_ALL_TESTS |
48 | tristate "All KUnit tests with satisfied dependencies" | |
49 | help | |
50 | Enables all KUnit tests, if they can be enabled. | |
51 | KUnit tests run during boot and output the results to the debug log | |
52 | in TAP format (http://testanything.org/). Only useful for kernel devs | |
53 | running the KUnit test harness, and not intended for inclusion into a | |
54 | production build. | |
55 | ||
56 | For more information on KUnit and unit tests in general please refer | |
57 | to the KUnit documentation in Documentation/dev-tools/kunit/. | |
58 | ||
59 | If unsure, say N. | |
60 | ||
d8e2a76b | 61 | endif # KUNIT |