Fix the test-all script so that it works with directories
This commit is contained in:
@@ -17,16 +17,20 @@ set -e
|
|||||||
cd $(dirname "$0")
|
cd $(dirname "$0")
|
||||||
topdir=$(pwd)
|
topdir=$(pwd)
|
||||||
|
|
||||||
# Run cargo from the src/tools directory which includes all our crates for
|
PKGS="libcretonne libreader tools"
|
||||||
# building cton-util.
|
echo ====== Rust unit tests and debug builds ======
|
||||||
cd "$topdir/src/tools"
|
for PKG in $PKGS
|
||||||
PKGS="-p cretonne -p cretonne-reader -p cretonne-tools"
|
do
|
||||||
echo ====== Rust unit tests and debug build ======
|
pushd $topdir/src/$PKG
|
||||||
cargo test $PKGS
|
cargo test
|
||||||
cargo build $PKGS
|
cargo build
|
||||||
cargo doc
|
popd
|
||||||
|
done
|
||||||
|
|
||||||
echo ====== Rust release build ======
|
# Build cton-util for parser testing.
|
||||||
|
echo ====== Rust release build and documentation ======
|
||||||
|
cd "$topdir/src/tools"
|
||||||
|
cargo doc
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
export CTONUTIL="$topdir/src/tools/target/release/cton-util"
|
export CTONUTIL="$topdir/src/tools/target/release/cton-util"
|
||||||
|
|||||||
Reference in New Issue
Block a user