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/linux#881

Reviewed-by: David Gow <[email protected]>
Signed-off-by: José Expósito <[email protected]>
  • Loading branch information
JoseExposito committed Dec 8, 2022
1 parent bd12347 commit bed39f1
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 bed39f1

Please sign in to comment.