blob: 854582ec1766974944d7d71573815126d7ef6ae5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# Test all Rust crates
set -e
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" \
"${CARGO:-cargo}" test --all-features ${CARGO_ONLINE-"--frozen"} \
--manifest-path "$cargo_toml" || exitcode=1
done
exit $exitcode
|