Skip to content

Commit

Permalink
added gcov running script
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Jan 2, 2018
1 parent 754b8a2 commit 851717c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/run-gcov.sh
@@ -0,0 +1,19 @@
#!/bin/bash

SRCDIR=`pwd`

for FILE in `find . -name \*.c?`; do
#echo $FILE

FILENAME=`basename $FILE`
DIRECTORY=`dirname $FILE`
GCNO_FILE=`find . -name $FILENAME.gcno | grep $DIRECTORY`

if [ ! -z "$GCNO_FILE" ]; then
pushd $DIRECTORY
gcov $FILENAME -o $SRCDIR/$GCNO_FILE
popd
else
echo "$file: no coverage gcno file found"
fi
done

0 comments on commit 851717c

Please sign in to comment.