Promote the src/tools crate to the top-level workspace.

The 'src' and 'tests' top-level directories now contain tools sources
and integration tests for any of the library crates.
This commit is contained in:
Jakob Stoklund Olesen
2016-10-17 14:57:42 -07:00
parent 0764df28b5
commit a8a79df620
18 changed files with 25 additions and 23 deletions

View File

@@ -34,14 +34,14 @@ RUSTFMT_VERSION="0.6.2"
if cargo install --list | grep -q "^rustfmt v$RUSTFMT_VERSION"; then
banner "Rust formatting"
$topdir/src/format-all.sh --write-mode=diff
$topdir/format-all.sh --write-mode=diff
else
echo "Please install rustfmt v$RUSTFMT_VERSION to verify formatting."
echo "If a newer version of rustfmt is available, update this script."
fi
PKGS="cretonne cretonne-reader cretonne-tools filecheck"
cd "$topdir/src/tools"
cd "$topdir"
for PKG in $PKGS
do
banner "Rust $PKG unit tests"
@@ -49,7 +49,7 @@ do
done
# Build cton-util for parser testing.
cd "$topdir/src/tools"
cd "$topdir"
banner "Rust documentation"
echo "open $topdir/target/doc/cretonne/index.html"
cargo doc