Use --all in some scripts. (#154)
This avoids the need to list all the packages in test-all.sh.
This commit is contained in:
@@ -6,12 +6,8 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(dirname "$0")
|
cd $(dirname "$0")
|
||||||
src=$(pwd)
|
|
||||||
|
|
||||||
# Make sure we can find rustfmt.
|
# Make sure we can find rustfmt.
|
||||||
export PATH="$PATH:$HOME/.cargo/bin"
|
export PATH="$PATH:$HOME/.cargo/bin"
|
||||||
|
|
||||||
for crate in $(find "$src" -name Cargo.toml); do
|
exec cargo fmt --all -- "$@"
|
||||||
cd $(dirname "$crate")
|
|
||||||
cargo fmt -- "$@"
|
|
||||||
done
|
|
||||||
|
|||||||
@@ -40,14 +40,9 @@ if [ -n "$needcheck" ]; then
|
|||||||
touch $tsfile || echo no target directory
|
touch $tsfile || echo no target directory
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PKGS="cretonne cretonne-reader cretonne-tools cretonne-frontend cretonne-wasm \
|
|
||||||
filecheck "
|
|
||||||
cd "$topdir"
|
cd "$topdir"
|
||||||
for PKG in $PKGS
|
banner "Rust unit tests"
|
||||||
do
|
cargo test --all
|
||||||
banner "Rust $PKG unit tests"
|
|
||||||
cargo test -p $PKG
|
|
||||||
done
|
|
||||||
|
|
||||||
# Build cton-util for parser testing.
|
# Build cton-util for parser testing.
|
||||||
cd "$topdir"
|
cd "$topdir"
|
||||||
|
|||||||
Reference in New Issue
Block a user