diff options
author | Andrea Shepard <andrea@torproject.org> | 2013-07-15 22:33:39 -0700 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2013-07-15 22:33:39 -0700 |
commit | d1059a936644f1a3c274f97218c7224622f212df (patch) | |
tree | 0877a94701abd72d5c93b921039be00f9c18c640 /contrib | |
parent | 55f5caf0963935bebb41ded66416c730c3598cb2 (diff) | |
download | tor-d1059a936644f1a3c274f97218c7224622f212df.tar tor-d1059a936644f1a3c274f97218c7224622f212df.tar.gz |
Add optional target directory parameter to coverage script and add reset-gcov target to Makefile.am
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/coverage | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/coverage b/contrib/coverage index f51649a78..8d971660c 100755 --- a/contrib/coverage +++ b/contrib/coverage @@ -5,9 +5,16 @@ # coverage -- run gcov on the appropriate set of object files to extract # coverage information. +dst=$1 + for fn in src/or/*.c src/common/*.c; do BN=`basename $fn` DN=`dirname $fn` F=`echo $BN | sed -e 's/\.c$//;'` + GC="${BN}.gcov" gcov -o $DN/src_*$F.o $fn + if [ -n $dst ] + then + mv $GC $dst/$GC + fi done |