Lines Matching +full:skip +full:- +full:config

1 .. SPDX-License-Identifier: GPL-2.0
11 - The KUnit tests.
12 - The ``#[test]`` tests.
13 - The Kselftests.
16 ---------------
27 ./tools/testing/kunit/kunit.py run --make_options LLVM=1 --arch x86_64 --kconfig_add CONFIG_RUST=y
29 Alternatively, KUnit can run them as kernel built-in at boot. Refer to
30 Documentation/dev-tools/kunit/index.rst for the general KUnit documentation
31 and Documentation/dev-tools/kunit/architecture.rst for the details of kernel
32 built-in vs. command line testing.
37 Kernel hacking -> Kernel Testing and Coverage -> KUnit - Enable support for unit tests
39 Kernel hacking -> Rust hacking -> Doctests for the `kernel` crate
41 in the kernel config system.
52 .. code-block:: rust
59 pub fn f(a: i32, b: i32) -> i32 {
64 as-is would be useful already, since it allows verifying that examples compile
66 as running those that do not depend on in-kernel APIs.
89 # rust_doctests_kernel: pass:59 fail:0 skip:0 total:59
90 # Totals: pass:59 fail:0 skip:0 total:59
93 Tests using the `? <https://doc.rust-lang.org/reference/expressions/operator-expr.html#the-question
96 .. code-block:: rust
120 addition, it may allow us to test third-party code more easily in the future.
131 https://rust.docs.kernel.org/kernel/error/type.Result.html#error-codes-in-c-and-rust
134 ---------------------
141 This requires the kernel ``.config``. It runs the ``#[test]`` tests on the host
145 --------------
149 The kernel config options required for the tests are listed in the
150 ``tools/testing/selftests/rust/config`` file and can be included with the aid
153 ./scripts/kconfig/merge_config.sh .config tools/testing/selftests/rust/config
163 Refer to Documentation/dev-tools/kselftest.rst for the general Kselftest