diff options
| author | Yury Norov <ynorov@nvidia.com> | 2026-04-16 23:15:28 -0400 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2026-06-08 02:30:33 +0200 |
| commit | e74b7a3f5aee02c7df33c79991fd867ce421051b (patch) | |
| tree | f514ec9cfedf616ccaebc49b4703ef6362741798 /init | |
| parent | 90b67443f04a6dde73111fbcf5ae5cb91cf3e14b (diff) | |
| download | linux-e74b7a3f5aee02c7df33c79991fd867ce421051b.tar.gz linux-e74b7a3f5aee02c7df33c79991fd867ce421051b.zip | |
rust: tests: add Kconfig for KUnit test
There are 6 individual Rust KUnit test suites (plus the doctests one). All
the tests are compiled unconditionally now, which adds ~200 kB to the
kernel image for me on x86_64. As Rust matures, this bloating will
inevitably grow.
Add Kconfig.test which includes a RUST_KUNIT_TESTS menu, and all
individual tests under it.
As usual, new tests are all enabled if KUNIT_ALL_TESTS=y.
Suggested-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Yury Norov <ynorov@nvidia.com>
Reviewed-by: David Gow <david@davidgow.net>
Acked-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260417031531.315281-3-ynorov@nvidia.com
[ Fixed capitalization. Used singular for "API" for consistency.
Reworded to clarify these are suites and that there exists
the doctests one (which is the biggest at the moment by
far). - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'init')
| -rw-r--r-- | init/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index 7ef3fa222ca3..bf1281569678 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -2213,6 +2213,8 @@ config RUST If unsure, say N. +source "rust/kernel/Kconfig.test" + config RUSTC_VERSION_TEXT string depends on RUST |
