]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: add kunitconfig
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 8 Feb 2025 13:31:15 +0000 (14:31 +0100)
committerMiguel Ojeda <ojeda@kernel.org>
Wed, 19 Mar 2025 22:22:21 +0000 (23:22 +0100)
The kunitconfig file in a directory is used by kunit.py to enable all
necessary kernel configurations to run the tests in that subdirectory.
Add such a file for rust/.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: David Gow <davidgow@google.com>
Link: https://lore.kernel.org/r/20250208-rust-kunit-v1-2-94a026be6d72@weissschuh.net
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/.kunitconfig [new file with mode: 0644]

diff --git a/rust/.kunitconfig b/rust/.kunitconfig
new file mode 100644 (file)
index 0000000..9e72a5a
--- /dev/null
@@ -0,0 +1,3 @@
+CONFIG_KUNIT=y
+CONFIG_RUST=y
+CONFIG_RUST_KERNEL_DOCTESTS=y