Lines Matching +full:existing +full:- +full:parts
1 .. SPDX-License-Identifier: GPL-2.0
7 The KUnit architecture can be divided into two parts:
9 - `In-Kernel Testing Framework`_
10 - `kunit_tool (Command Line Test Harness)`_
12 In-Kernel Testing Framework
18 - Organizes tests
19 - Reports test results
20 - Provides test utilities
23 ----------
32 ``generate_params`` is optional for non-parameterized tests.
39 - ``->priv``: The setup functions can use it to store arbitrary test
42 - ``->param_value``: It contains the parameter value which can be
46 -----------
51 .. code-block:: c
76 --------
78 The KUnit executor can list and run built-in KUnit tests on boot.
81 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/asm-generic/vmlinux…
87 .. kernel-figure:: kunit_suitememorydiagram.svg
101 or parts of the kernel, each KUnit case executes in a separate thread
103 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/lib/kunit/try-catch.c?h=v5.…
106 ----------------
112 - ``{EXPECT|ASSERT}`` determines whether the check is an assertion or an
115 - For an expectation, if the check fails, marks the test as failed
118 - An assertion, on failure, causes the test case to terminate
121 - Assertions call function:
124 - ``kunit_abort`` calls function:
127 - ``kunit_try_catch_throw`` calls function:
131 - ``<op>`` denotes a check with options: ``TRUE`` (supplied property
136 - ``[_MSG]`` prints a custom message on failure.
139 ---------------------
141 https://github.com/isaacs/testanything.github.io/blob/tap14/tap-version-14-specification.md.
147 -------------------
155 parameter. It also provides a macro to generate common-case generators based on
166 - ``configure`` command generates the kernel ``.config`` from a
167 ``.kunitconfig`` file (and any architecture-specific options).
171 It parses both the existing ``.config`` and the ``.kunitconfig`` files
181 - ``build`` runs ``make`` on the kernel tree with required options
186 - ``exec`` command executes kernel results either directly (using
187 User-mode Linux configuration), or via an emulator such
190 If you already have built a kernel with built-in KUnit tests,
193 - ``parse`` extracts the KTAP output from a kernel log, parses