summaryrefslogtreecommitdiff
path: root/src/test/test_rust.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test_rust.sh')
-rwxr-xr-xsrc/test/test_rust.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/test/test_rust.sh b/src/test/test_rust.sh
index d87336e700..854582ec17 100755
--- a/src/test/test_rust.sh
+++ b/src/test/test_rust.sh
@@ -3,13 +3,14 @@
set -e
-CARGO_TARGET_DIR="${abs_top_builddir:-../../..}/src/rust/target" \
+
+for cargo_toml in "${abs_top_srcdir:-../../..}"/src/rust/*/Cargo.toml; do
+ CARGO_TARGET_DIR="${abs_top_builddir:-../../..}/src/rust/target" \
CARGO_HOME="${abs_top_builddir:-../../..}/src/rust" \
- find "${abs_top_srcdir:-../../..}/src/rust" \
- -mindepth 2 -maxdepth 2 \
- -type f -name 'Cargo.toml' \
- -exec "${CARGO:-cargo}" test --all-features ${CARGO_ONLINE-"--frozen"} \
- --manifest-path '{}' \;
+ "${CARGO:-cargo}" test --all-features ${CARGO_ONLINE-"--frozen"} \
+ --manifest-path "$cargo_toml" || exitcode=1
+done
+
+exit $exitcode
-exit $?