public inbox for rust-for-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] rust: add Kconfig.test
@ 2026-04-17  3:15 Yury Norov
  2026-04-17  3:15 ` [PATCH 1/3] rust: tests: drop 'use crate' in bitmap and atomic KUnit tests Yury Norov
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Yury Norov @ 2026-04-17  3:15 UTC (permalink / raw)
  To: Miguel Ojeda, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
	Danilo Krummrich, Jonathan Corbet, Shuah Khan, Lorenzo Stoakes,
	Vlastimil Babka, Liam R. Howlett, Uladzislau Rezki, Burak Emir,
	Yury Norov, Brendan Higgins, David Gow, Rae Moar, Will Deacon,
	Peter Zijlstra, Mark Rutland, Nathan Chancellor, Kees Cook,
	Nicolas Schier, Thomas Weißschuh, Thomas Gleixner,
	Douglas Anderson, Shakeel Butt, Christian Brauner, Randy Dunlap,
	Tamir Duberstein, rust-for-linux, linux-doc, linux-kernel,
	linux-kselftest, kunit-dev
  Cc: Yury Norov

There are 6 individual Rust KUnit tests. All the tests are compiled
unconditionally now, which adds ~200 kB to the kernel image on my
x86_64 buld. As Rust matures, this bloating will inevitably grow.

Add Kconfig.test, which provides a RUST_KUNIT_TESTS menu, and all
individual tests under it.

Yury Norov (3):
  rust: tests: drop 'use crate' in bitmap and atomic KUnit tests
  rust: testing: add Kconfig for KUnit test
  Documentation: rust: testing: add Kconfig guidance

 Documentation/rust/testing.rst       |  5 ++-
 init/Kconfig                         |  2 +
 rust/kernel/Kconfig.test             | 76 ++++++++++++++++++++++++++++
 rust/kernel/alloc/allocator.rs       |  1 +
 rust/kernel/alloc/kvec.rs            |  1 +
 rust/kernel/bitmap.rs                |  5 +--
 rust/kernel/kunit.rs                 |  1 +
 rust/kernel/str.rs                   |  1 +
 rust/kernel/sync/atomic/predefine.rs |  5 +--
 9 files changed, 79 insertions(+), 7 deletions(-)
 create mode 100644 rust/kernel/Kconfig.test

-- 
2.51.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-04-17 14:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-17  3:15 [PATCH 0/3] rust: add Kconfig.test Yury Norov
2026-04-17  3:15 ` [PATCH 1/3] rust: tests: drop 'use crate' in bitmap and atomic KUnit tests Yury Norov
2026-04-17  9:00   ` David Gow
2026-04-17  3:15 ` [PATCH 2/3] rust: testing: add Kconfig for KUnit test Yury Norov
2026-04-17  9:00   ` David Gow
2026-04-17  3:15 ` [PATCH 3/3] Documentation: rust: testing: add Kconfig guidance Yury Norov
2026-04-17  9:00   ` David Gow
2026-04-17 14:11 ` [PATCH 0/3] rust: add Kconfig.test Gary Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox