aboutsummaryrefslogtreecommitdiff
path: root/contrib/coverage
blob: 52fe96d75611b86af063cb085578c6f67567492c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Copyright 2013  The Tor Project, Inc.
# See LICENSE for licensing information.

# coverage -- run gcov on the appropriate set of object files to extract
# coverage information.

for fn in src/{or,common}/*.c; do
    BN=`basename $fn`
    DN=`dirname $fn`
    F=`echo $BN | sed -e 's/\.c$//;'`
    gcov -o $DN/src_*$F.o $fn
done