Skip to content

Commit

Permalink
rust: add rust/.kunitconfig
Browse files Browse the repository at this point in the history
Add a .kunitconfig file with the required configuration options to
allow to easily run the KUnit tests without adding them manually:

	$ ./tools/testing/kunit/kunit.py run --kunitconfig=rust \
	  --make_options LLVM=1 --arch=x86_64

Note that "CONFIG_UML" is set to "n" because UML is not working at the
moment [1].

[1] Rust-for-Linux#881

Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
  • Loading branch information
JoseExposito committed Dec 8, 2022
1 parent bd12347 commit db8b526
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rust/.kunitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CONFIG_KUNIT=y
CONFIG_RUST=y
CONFIG_RUST_KERNEL_KUNIT_TEST=y

# UML is not supported at the moment
CONFIG_UML=n

0 comments on commit db8b526

Please sign in to comment.