Create cov.sh

add --verify
add RUSTFLAGS="-C link-dead-code"
This commit is contained in:
Denis S. Soldatov aka General-Beck 2017-06-13 02:22:37 +03:00 committed by GitHub
parent 2501334ed7
commit 42ad8bbdb0

View File

@ -21,7 +21,7 @@ if ! type $KCOV > /dev/null; then
fi fi
. ./scripts/targets.sh . ./scripts/targets.sh
cargo test $TARGETS --no-run || exit $? RUSTFLAGS="-C link-dead-code" cargo test $TARGETS --no-run || exit $?
KCOV_TARGET="target/cov" KCOV_TARGET="target/cov"
@ -46,10 +46,10 @@ mkdir -p $KCOV_TARGET
echo "Cover RUST" echo "Cover RUST"
for FILE in `find target/debug/deps ! -name "*.*"` for FILE in `find target/debug/deps ! -name "*.*"`
do do
$KCOV --exclude-pattern $EXCLUDE $KCOV_FLAGS $KCOV_TARGET $FILE $KCOV --exclude-pattern $EXCLUDE $KCOV_FLAGS $KCOV_TARGET $FILE --verify
done done
$KCOV --exclude-pattern $EXCLUDE $KCOV_FLAGS $KCOV_TARGET target/debug/parity-* $KCOV --exclude-pattern $EXCLUDE $KCOV_FLAGS $KCOV_TARGET target/debug/parity-* --verify
echo "Cover JS" echo "Cover JS"
cd js cd js
npm install&&npm run test:coverage npm install&&npm run test:coverage