aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gcov.sh
blob: 84cd1298491c4dd0929569e3796392fe5e4503f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/bash -e

# Note: this probably requires Check 0.9.1 to work

rm -f ../libmb/.libs/*.da *.da
CF_FORK=no make check || true

for i in *.da; do
    gcov `basename $i .da`.c | grep executed
done

cd ../libmb
for i in *.c; do
    gcov -o .libs $i | grep -v /usr/include | grep executed
done