Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: kunit: Update description of --alltests option

kunit_tool's --alltests option was changed in commit
980ac3ad0512 ("kunit: tool: rename all_test_uml.config, use it for --alltests")
to use a manually curated list of architecture-indpendent Kconfig
options, rather than attempting to use make allyesconfig on UML, which
was broken.

Update the kunit_tool documentation to reflect the new behaviour of
--alltests.

Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

David Gow and committed by
Shuah Khan
e98c4f6a c1144e01

+8 -7
+8 -7
Documentation/dev-tools/kunit/run_wrapper.rst
··· 251 251 compiling a kernel (using ``build`` or ``run`` commands). For example: 252 252 to enable compiler warnings, we can pass ``--make_options W=1``. 253 253 254 - - ``--alltests``: Builds a UML kernel with all config options enabled 255 - using ``make allyesconfig``. This allows us to run as many tests as 256 - possible. 254 + - ``--alltests``: Enable a predefined set of options in order to build 255 + as many tests as possible. 257 256 258 - .. note:: It is slow and prone to breakage as new options are 259 - added or modified. Instead, enable all tests 260 - which have satisfied dependencies by adding 261 - ``CONFIG_KUNIT_ALL_TESTS=y`` to your ``.kunitconfig``. 257 + .. note:: The list of enabled options can be found in 258 + ``tools/testing/kunit/configs/all_tests.config``. 259 + 260 + If you only want to enable all tests with otherwise satisfied 261 + dependencies, instead add ``CONFIG_KUNIT_ALL_TESTS=y`` to your 262 + ``.kunitconfig``. 262 263 263 264 - ``--kunitconfig``: Specifies the path or the directory of the ``.kunitconfig`` 264 265 file. For example: