tor/contrib/coverage
2013-07-15 16:06:39 +02:00

14 lines
346 B
Bash
Executable File

#!/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/*.c src/common/*.c; do
BN=`basename $fn`
DN=`dirname $fn`
F=`echo $BN | sed -e 's/\.c$//;'`
gcov -o $DN/src_*$F.o $fn
done