From: Thomas Bertschinger <tahbertschinger@gmail.com>
To: kent.overstreet@linux.dev, linux-bcachefs@vger.kernel.org,
bfoster@redhat.com
Cc: Thomas Bertschinger <tahbertschinger@gmail.com>
Subject: [PATCH TOOLS] add Makefile target for Rust bch_bindgen tests
Date: Tue, 27 Feb 2024 18:50:09 -0700 [thread overview]
Message-ID: <20240228015009.83502-1-tahbertschinger@gmail.com> (raw)
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.
Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com>
---
Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 37101af..395a526 100644
--- a/Makefile
+++ b/Makefile
@@ -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:
--
2.43.0
reply other threads:[~2024-02-28 1:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240228015009.83502-1-tahbertschinger@gmail.com \
--to=tahbertschinger@gmail.com \
--cc=bfoster@redhat.com \
--cc=kent.overstreet@linux.dev \
--cc=linux-bcachefs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).