Ignore the previous patch; it didn't update EXTRA_DIST.  Use this one
instead.
From 2515568b8151e205707f861d725abb01057f3162 Mon Sep 17 00:00:00 2001
From: Alan Somers <[email protected]>
Date: Mon, 15 Jun 2020 12:11:02 -0600
Subject: [PATCH] plugins/rust: run "cargo test" during "make check"

---
 plugins/rust/Makefile.am | 3 +++
 plugins/rust/test.sh     | 3 +++
 2 files changed, 6 insertions(+)
 create mode 100755 plugins/rust/test.sh

diff --git a/plugins/rust/Makefile.am b/plugins/rust/Makefile.am
index bb5ada33..b9096044 100644
--- a/plugins/rust/Makefile.am
+++ b/plugins/rust/Makefile.am
@@ -38,6 +38,7 @@ EXTRA_DIST = \
 	nbdkit-rust-plugin.pod \
 	README.md \
 	src/lib.rs \
+	test.sh \
 	tests/bare_bones.rs \
 	tests/common/mod.rs \
 	tests/full_featured.rs \
@@ -56,6 +57,8 @@ target/release/libnbdkit.rlib: Cargo.toml src/lib.rs
 target/release/examples/libramdisk.so: Cargo.toml examples/ramdisk.rs
 	cargo build --release --example ramdisk
 
+TESTS = test.sh
+
 if HAVE_POD
 
 man_MANS = nbdkit-rust-plugin.3
diff --git a/plugins/rust/test.sh b/plugins/rust/test.sh
new file mode 100755
index 00000000..fcc47aa8
--- /dev/null
+++ b/plugins/rust/test.sh
@@ -0,0 +1,3 @@
+#! /bin/sh
+# cargo test wrapper suitable for invocation from automake-generated makefiles
+cargo test && cargo test --release
-- 
2.26.2

_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to