Files
resy/ci/run-cargo-test.sh
2017-04-03 19:10:50 +02:00

15 lines
244 B
Bash
Executable File

#!/usr/bin/env bash
ERROR=0
while IFS= read -r -d '' f; do
echo "run 'cargo test' with ${f}"
cargo test --manifest-path="${f}"
if [[ $? -ne 0 ]]; then
ERROR=1
fi
done < <(find . -type f -name 'Cargo.toml' -print0)
exit ${ERROR}