20 lines
382 B
Plaintext
20 lines
382 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
#
|
||
|
# Run `cargo test` for every crate with the default featues
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
: "${CARGO:=cargo}"
|
||
|
|
||
|
x () {
|
||
|
echo ": $*"
|
||
|
"$@"
|
||
|
}
|
||
|
|
||
|
for crate in $(maint/list_crates); do
|
||
|
echo ==================== "$crate" ====================
|
||
|
# allow $CARGO to contain multiple words
|
||
|
# shellcheck disable=SC2086
|
||
|
x $CARGO test -p "$crate" --all-targets
|
||
|
done
|