mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
20 lines
431 B
Bash
Executable file
20 lines
431 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.
|
|
|
|
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
|