@@ -19,13 +19,13 @@ compiles the kernel as a standalone Linux executable that can be run like any
19
19
other program directly inside of a host operating system. To be clear, it does
20
20
not require any virtualization support: it is just a regular program.
21
21
22
- What is a kunitconfig?
23
- ======================
22
+ What is a . kunitconfig?
23
+ =======================
24
24
25
25
It's just a defconfig that kunit_tool looks for in the base directory.
26
26
kunit_tool uses it to generate a .config as you might expect. In addition, it
27
27
verifies that the generated .config contains the CONFIG options in the
28
- kunitconfig; the reason it does this is so that it is easy to be sure that a
28
+ . kunitconfig; the reason it does this is so that it is easy to be sure that a
29
29
CONFIG that enables a test actually ends up in the .config.
30
30
31
31
How do I use kunit_tool?
@@ -46,16 +46,9 @@ However, you most likely want to use it with the following options:
46
46
- ``--timeout `` sets a maximum amount of time to allow tests to run.
47
47
- ``--jobs `` sets the number of threads to use to build the kernel.
48
48
49
- If you just want to use the defconfig that ships with the kernel, you can
50
- append the ``--defconfig `` flag as well:
51
-
52
- .. code-block :: bash
53
-
54
- ./tools/testing/kunit/kunit.py run --timeout=30 --jobs=` nproc --all` --defconfig
55
-
56
49
.. note ::
57
- This command is particularly helpful for getting started because it
58
- just works. No kunitconfig needs to be present .
50
+ This command will work even without a .kunitconfig file: if no
51
+ . kunitconfig is present, a default one will be used instead .
59
52
60
53
For a list of all the flags supported by kunit_tool, you can run:
61
54
0 commit comments