rust: add Kconfig.test
Status from this message: Applied to `rust-next` -- thanks everyone!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | rust: tests: drop 'use crate' in bitmap and atomic KUnit testsrust/ rust/ | +2 | 1 reply | |
| 2/3 | rust: testing: add Kconfig for KUnit testinit/ rust/ rust/ +5 more | +84 | 2 replies | |
| 3/3 | Documentation: rust: testing: add Kconfig guidanceDocumentation/ | +4 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | David Gow | Gary Guo |
|---|---|---|
| Series | A-b | |
| 1/3 | R-b | |
| 2/3 | R-b | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] rust: add Kconfig.test
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
Signature · 1 line
2.51.0