rust: str: convert `rusttest` tests into KUnit
authorMiguel Ojeda <ojeda@kernel.org>
Fri, 2 May 2025 21:51:29 +0000 (23:51 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 27 May 2025 18:09:59 +0000 (20:09 +0200)
commit028df914e5466a02326829427bb8e26a31a05545
tree502537d851629eb09fe6648fbf7d1966188ab7a4
parent897d1df6532f05814acd364af9055cd6628fd1b3
rust: str: convert `rusttest` tests into KUnit

In general, we should aim to test as much as possible within the actual
kernel, and not in the build host.

Thus convert these `rusttest` tests into KUnit tests.

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