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

Configure Feed

Select the types of activity you want to include in your feed.

Documentation: rust: rename `#[test]`s to "`rusttest` host tests"

Now that `rusttest`s are not really used much, clarify the section of
the documentation that describes them.

In addition, free the section name for the KUnit-based `#[test]`s that
will be added afterwards. To do so, rename the section into `rusttest`
host tests.

Reviewed-by: David Gow <davidgow@google.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250502215133.1923676-7-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

+7 -6
+7 -6
Documentation/rust/testing.rst
··· 130 130 131 131 https://rust.docs.kernel.org/kernel/error/type.Result.html#error-codes-in-c-and-rust 132 132 133 - The ``#[test]`` tests 134 - --------------------- 133 + The ``rusttest`` host tests 134 + --------------------------- 135 135 136 - Additionally, there are the ``#[test]`` tests. These can be run using the 137 - ``rusttest`` Make target:: 136 + These are userspace tests that can be built and run in the host (i.e. the one 137 + that performs the kernel build) using the ``rusttest`` Make target:: 138 138 139 139 make LLVM=1 rusttest 140 140 141 - This requires the kernel ``.config``. It runs the ``#[test]`` tests on the host 142 - (currently) and thus is fairly limited in what these tests can test. 141 + This requires the kernel ``.config``. 142 + 143 + Currently, they are mostly used for testing the ``macros`` crate's examples. 143 144 144 145 The Kselftests 145 146 --------------