File: gcov.sh

package info (click to toggle)
safeclib 3.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,832 kB
  • sloc: ansic: 52,639; makefile: 1,271; perl: 528; sh: 518
file content (25 lines) | stat: -rwxr-xr-x 650 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

rm -rf src/*/.deps src/.deps tests/.deps

case `uname` in
Darwin) # linux is preferred

    echo "The repo has the stats from linux" # expect minor differences

    CC=gcc-mp-6 ./configure --enable-gcov=gcov-mp-6 --disable-shared --enable-unsafe \
                            --enable-norm-compat && \
        gmake -s -j4 all gcov ;;

Linux)

    ./configure --enable-gcov --disable-shared --enable-unsafe --enable-norm-compat && \
        make -s -j4 gcov ;;

esac

# now all done via make gcov
# fixup and post-process .gcov
#perl -pi -e's{Source:(\w+)/}{Source:}' src/*/*.gcov && \
#    gcov2perl src/*/*.gcov && \
#    cover -no-gcov