Lines Matching +full:trigger +full:- +full:sources
1 .. SPDX-License-Identifier: GPL-2.0
22 .. code-block:: bash
32 through the argument ``--build_dir``. Hence, before starting an
33 out-of-tree build, the source tree must be clean.
36 the kernel" section of the :doc:`admin-guide </admin-guide/README>`,
44 .. code-block::
53 Because it is building a lot of sources for the first time,
57 Documentation/dev-tools/kunit/run_wrapper.rst.
60 ----------------------------
66 - `Customizing Kconfig`_ used to compile the kernel, or
67 - `Filtering tests by name`_ to select specifically which compiled tests to run.
74 .. code-block:: bash
81 ``.kunitconfig`` lives in the ``--build_dir`` used by kunit.py, which is
94 If you need to run on an architecture other than UML see :ref:`kunit-on-qemu`.
97 For example, to include the kernel's linked-list test you can run::
100 --kconfig_add CONFIG_LIST_KUNIT_TEST=y
106 --kunitconfig ./fs/fat/.kunitconfig \
107 --kunitconfig ./fs/ext4/.kunitconfig
109 d. If you change the ``.kunitconfig``, kunit.py will trigger a rebuild of the
125 to select which tests to execute at boot-time by passing a glob filter
157 Enabling KUnit disables Kernel Address-Space Layout Randomization
162 ----------------------
172 -------------------------------------
175 are built-in. Otherwise the module will need to be loaded.
186 .. code-block:: c
192 .. code-block:: c
205 .. code-block:: kconfig
212 .. code-block:: make
214 obj-$(CONFIG_MISC_EXAMPLE) += example.o
220 .. code-block:: c
231 KUNIT_EXPECT_EQ(test, 0, misc_example_add(-1, 1));
233 KUNIT_EXPECT_EQ(test, -1, misc_example_add(INT_MAX, INT_MIN));
248 .name = "misc-example",
257 .. code-block:: kconfig
269 .. code-block:: make
271 obj-$(CONFIG_MISC_EXAMPLE_TEST) += example_test.o
275 .. code-block:: none
282 .. code-block:: bash
288 .. code-block:: none
291 [16:08:57] [PASSED] misc-example:misc_example_add_test_basic
292 [16:08:57] [FAILED] misc-example:misc_example_test_failure
293 [16:08:57] EXPECTATION FAILED at drivers/misc/example-test.c:17
303 take a look at Documentation/dev-tools/kunit/run_wrapper.rst
306 Documentation/dev-tools/kunit/run_manual.rst
309 for testing different things), see Documentation/dev-tools/kunit/usage.rst