Removing --verify [ci skip]
This commit is contained in:
parent
3159e20814
commit
d9aeafa40e
@ -10,30 +10,34 @@
|
|||||||
# $ cmake .. && make && sudo make install
|
# $ cmake .. && make && sudo make install
|
||||||
|
|
||||||
### Running coverage
|
### Running coverage
|
||||||
|
if ! type kcov > /dev/null; then
|
||||||
KCOV_CMD=${1:-kcov}
|
|
||||||
|
|
||||||
if ! type $KCOV_CMD > /dev/null; then
|
|
||||||
echo "Install kcov first (details inside this file). Aborting."
|
echo "Install kcov first (details inside this file). Aborting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
. ./scripts/targets.sh
|
cargo test \
|
||||||
|
-p ethkey \
|
||||||
cargo test $TARGETS --no-run || exit $?
|
-p ethstore \
|
||||||
|
-p ethash \
|
||||||
|
-p ethcore-util \
|
||||||
|
-p ethcore \
|
||||||
|
-p ethsync \
|
||||||
|
-p ethcore-rpc \
|
||||||
|
-p parity \
|
||||||
|
-p ethcore-signer \
|
||||||
|
-p ethcore-dapps \
|
||||||
|
--no-run || exit $?
|
||||||
rm -rf target/coverage
|
rm -rf target/coverage
|
||||||
mkdir -p target/coverage
|
mkdir -p target/coverage
|
||||||
|
|
||||||
EXCLUDE="~/.multirust,rocksdb,secp256k1,/usr/,/.cargo,/root/.multirust,src/tests,util/json-tests,util/src/network/tests,sync/src/tests,ethcore/src/tests,ethcore/src/evm/tests,ethstore/tests target/kcov"
|
EXCLUDE="~/.multirust,rocksdb,secp256k1,src/tests,util/json-tests,util/src/network/tests,sync/src/tests,ethcore/src/tests,ethcore/src/evm/tests,ethstore/tests"
|
||||||
$KCOV_CMD --exclude-pattern $EXCLUDE --include-pattern src --verify target/coverage target/debug/deps/ethkey-*
|
kcov --exclude-pattern $EXCLUDE --include-pattern src target/coverage target/debug/deps/ethkey-*
|
||||||
$KCOV_CMD --exclude-pattern $EXCLUDE --include-pattern src --verify target/coverage target/debug/deps/ethstore-*
|
kcov --exclude-pattern $EXCLUDE --include-pattern src target/coverage target/debug/deps/ethstore-*
|
||||||
$KCOV_CMD --exclude-pattern $EXCLUDE --include-pattern src --verify target/coverage target/debug/deps/ethcore-*
|
kcov --exclude-pattern $EXCLUDE --include-pattern src target/coverage target/debug/deps/ethcore-*
|
||||||
$KCOV_CMD --exclude-pattern $EXCLUDE --include-pattern src --verify target/coverage target/debug/deps/ethash-*
|
kcov --exclude-pattern $EXCLUDE --include-pattern src target/coverage target/debug/deps/ethash-*
|
||||||
$KCOV_CMD --exclude-pattern $EXCLUDE --include-pattern src --verify target/coverage target/debug/deps/ethcore_util-*
|
kcov --exclude-pattern $EXCLUDE --include-pattern src target/coverage target/debug/deps/ethcore_util-*
|
||||||
$KCOV_CMD --exclude-pattern $EXCLUDE --include-pattern src --verify target/coverage target/debug/deps/ethsync-*
|
kcov --exclude-pattern $EXCLUDE --include-pattern src target/coverage target/debug/deps/ethsync-*
|
||||||
$KCOV_CMD --exclude-pattern $EXCLUDE --include-pattern src --verify target/coverage target/debug/deps/ethcore_rpc-*
|
kcov --exclude-pattern $EXCLUDE --include-pattern src target/coverage target/debug/deps/ethcore_rpc-*
|
||||||
$KCOV_CMD --exclude-pattern $EXCLUDE --include-pattern src --verify target/coverage target/debug/deps/ethcore_signer-*
|
kcov --exclude-pattern $EXCLUDE --include-pattern src target/coverage target/debug/deps/ethcore_signer-*
|
||||||
$KCOV_CMD --exclude-pattern $EXCLUDE --include-pattern src --verify target/coverage target/debug/deps/ethcore_dapps-*
|
kcov --exclude-pattern $EXCLUDE --include-pattern src target/coverage target/debug/deps/ethcore_dapps-*
|
||||||
$KCOV_CMD --exclude-pattern $EXCLUDE --include-pattern src --verify target/coverage target/debug/deps/ethjson-*
|
|
||||||
$KCOV_CMD --exclude-pattern $EXCLUDE --include-pattern src --verify target/coverage target/debug/parity-*
|
|
||||||
xdg-open target/coverage/index.html
|
xdg-open target/coverage/index.html
|
||||||
|
Loading…
Reference in New Issue
Block a user