arti/maint/every-crate

20 lines
383 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
#
2023-07-22 08:10:34 +01:00
# Run `cargo test` for every crate with the default features
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