17 lines
263 B
Bash
Executable File
17 lines
263 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
ERROR=0
|
|
|
|
while IFS= read -r -d '' f; do
|
|
dir="$(dirname "${f}")"
|
|
|
|
echo "run 'cargo test' in ${dir}"
|
|
cd "${dir}" && cargo test
|
|
|
|
if [[ $? -ne 0 ]]; then
|
|
ERROR=1
|
|
fi
|
|
done < <(find . -type f -name 'Cargo.toml' -print0)
|
|
|
|
exit ${ERROR}
|