Lines Matching +full:existing +full:- +full:parts

1 .. SPDX-License-Identifier: GPL-2.0
7 The KUnit architecture is divided into two parts:
9 - `In-Kernel Testing Framework`_
10 - `kunit_tool (Command-line Test Harness)`_
12 In-Kernel Testing Framework
19 - Organizes tests
20 - Reports test results
21 - Provides test utilities
24 ----------
32 ``generate_params`` is optional for non-parameterized tests.
38 - ``->priv``: The setup functions can use it to store arbitrary test
41 - ``->param_value``: It contains the parameter value which can be
45 -----------
50 .. code-block:: c
75 --------
77 The KUnit executor can list and run built-in KUnit tests on boot.
81 `include/asm-generic/vmlinux.lds.h <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.…
87 .. kernel-figure:: kunit_suitememorydiagram.svg
101 or parts of the kernel, each KUnit case executes in a separate thread
103 `lib/kunit/try-catch.c <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/lib…
106 ----------------
112 - ``{EXPECT|ASSERT}`` determines whether the check is an assertion or an
116 - For expectations, the test is marked as failed and the failure is logged.
118 - Failing assertions, on the other hand, result in the test case being
121 - Assertions call the function:
124 - ``__kunit_abort`` calls the function:
127 - ``kunit_try_catch_throw`` calls the function:
131 - ``<op>`` denotes a check with options: ``TRUE`` (supplied property
136 - ``[_MSG]`` prints a custom message on failure.
139 ---------------------
141 Documentation/dev-tools/ktap.rst.
146 -------------------
154 array-based common-case generators.
156 kunit_tool (Command-line Test Harness)
164 Documentation/dev-tools/kunit/run_manual.rst) or use ``kunit_tool``
165 (see Documentation/dev-tools/kunit/run_wrapper.rst).
167 - ``configure`` command generates the kernel ``.config`` from a
168 ``.kunitconfig`` file (and any architecture-specific options).
172 It parses both the existing ``.config`` and the ``.kunitconfig`` files
182 - ``build`` runs ``make`` on the kernel tree with required options
187 - ``exec`` command executes kernel results either directly (using
188 User-mode Linux configuration), or through an emulator such
191 If you already have built a kernel with built-in KUnit tests,
194 - ``parse`` extracts the KTAP output from a kernel log, parses