Update kcov

This commit is contained in:
howardwu 2021-03-15 21:44:26 -07:00
parent 0a324ec817
commit 5325a38643

View File

@ -2,9 +2,16 @@ cd /home/circleci/project/ &&
echo "---START_LIST---"
ls target/debug/deps
echo "---END_LIST---"
for file in target/debug/deps/leo*-*[^\.d];
do
mkdir -p "target/cov/$(basename $file)";
echo "Processing target/cov/$(basename $file)"
/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file";
done
#for file in target/debug/deps/leo*-*[^\.d];
# do
# mkdir -p "target/cov/$(basename $file)";
# echo "Processing target/cov/$(basename $file)"
# /usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file";
# done
for file in target/debug/deps/*-*;
do
if [[ "$file" != *\.* ]];
then mkdir -p "target/cov/$(basename $file)";
/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file";
fi
done