2017-04-29 11:17:22 +00:00
|
|
|
#!/bin/sh
|
2017-10-22 04:07:16 +00:00
|
|
|
# Test all Rust crates
|
2017-04-29 11:17:22 +00:00
|
|
|
|
2017-10-27 16:54:52 +00:00
|
|
|
set -e
|
|
|
|
|
2018-03-20 20:46:19 +00:00
|
|
|
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 '{}' \;
|
2017-04-29 11:17:22 +00:00
|
|
|
|
2018-03-20 20:46:19 +00:00
|
|
|
exit $?
|