arti/maint/every-crate

20 lines
382 B
Bash
Executable File

#!/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