2019-04-01 18:28:23 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -eo pipefail
|
2018-11-07 14:50:24 +00:00
|
|
|
for file in target/debug/*-*[^\.d]; do
|
|
|
|
if [[ -x "$file" ]]
|
|
|
|
then
|
|
|
|
filename=$(basename $file)
|
|
|
|
mkdir -p "target/cov/$filename"
|
|
|
|
kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$filename" "$file"
|
2019-04-19 13:00:51 +00:00
|
|
|
rm $file
|
2018-11-07 14:50:24 +00:00
|
|
|
fi
|
2019-04-01 18:28:23 +00:00
|
|
|
done
|