summaryrefslogtreecommitdiff
path: root/maint/every-crate
blob: 8f840db705b573e07f6e7b3f2bacace781604e03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
#
# Run `cargo test` for every crate with the default features

set -euo pipefail

: "${CARGO:=cargo}"

x () {
    echo ": $*"
    "$@"
}

for crate in $(maint/list_crates --all); do
    echo ==================== "$crate" ====================
    # allow $CARGO to contain multiple words
    # shellcheck disable=SC2086
    x $CARGO test -p "$crate" --all-targets
done