tor/src/test/test_rust.sh

16 lines
395 B
Bash
Raw Normal View History

2017-04-29 13:17:22 +02:00
#!/bin/sh
2017-10-22 06:07:16 +02:00
# Test all Rust crates
2017-04-29 13:17:22 +02:00
set -e
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 '{}' \;
exit $?
2017-04-29 13:17:22 +02:00