Skip to contentSkip to conversation

add Makefile target for Rust bch_bindgen tests

PATCH New Thomas Bertschinger 1 participant 1 message Feb 28, 2024 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add Makefile target for Rust bch_bindgen tests

Use:

$ make rust_tests
or
$ make tests

to run the bindgen tests.

Currently there are no Rust tests under src/. However, if any are added, they can be added to this Make target.

---
 Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Makefile +5 -1
index 37101af..395a526 100644
@@ -153,7 +153,11 @@ debug: CFLAGS+=-Werror -DCONFIG_BCACHEFS_DEBUG=y -DCONFIG_VALGRIND=y
 debug: bcachefs
 
 .PHONY: tests
-tests: tests/test_helper
+tests: tests/test_helper rust_tests
+
+rust_tests:
+	$(Q)$(CARGO) test -p bch_bindgen
+
 
 .PHONY: TAGS tags
 TAGS:
Signature · 1 line
2.43.0