Skip to content

Commit

Permalink
Create cov.sh
Browse files Browse the repository at this point in the history
add --verify
add RUSTFLAGS="-C link-dead-code"
  • Loading branch information
General-Beck authored Jun 12, 2017
1 parent 2501334 commit 42ad8bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/cov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if ! type $KCOV > /dev/null; then
fi

. ./scripts/targets.sh
cargo test $TARGETS --no-run || exit $?
RUSTFLAGS="-C link-dead-code" cargo test $TARGETS --no-run || exit $?


KCOV_TARGET="target/cov"
Expand All @@ -46,10 +46,10 @@ mkdir -p $KCOV_TARGET
echo "Cover RUST"
for FILE in `find target/debug/deps ! -name "*.*"`
do
$KCOV --exclude-pattern $EXCLUDE $KCOV_FLAGS $KCOV_TARGET $FILE
$KCOV --exclude-pattern $EXCLUDE $KCOV_FLAGS $KCOV_TARGET $FILE --verify
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"
cd js
npm install&&npm run test:coverage
Expand Down

0 comments on commit 42ad8bb

Please sign in to comment.