From 98fc3217338a011be7565d52e3939008be9aa2db Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Wed, 3 Feb 2016 22:00:09 +0300 Subject: [PATCH] separate coverage for util --- util/cov.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) mode change 120000 => 100755 util/cov.sh diff --git a/util/cov.sh b/util/cov.sh deleted file mode 120000 index 72bb061f8..000000000 --- a/util/cov.sh +++ /dev/null @@ -1 +0,0 @@ -../cov.sh \ No newline at end of file diff --git a/util/cov.sh b/util/cov.sh new file mode 100755 index 000000000..19aa3b892 --- /dev/null +++ b/util/cov.sh @@ -0,0 +1,9 @@ +if ! type kcov > /dev/null; then + echo "Install kcov first (details inside this file). Aborting." + exit 1 +fi + +cargo test --no-run || exit $? +mkdir -p target/coverage +kcov --exclude-pattern ~/.multirust,rocksdb,secp256k1 --include-pattern src --verify target/coverage target/debug/ethcore_util* +xdg-open target/coverage/index.html