File: test-coverage

package info (click to toggle)
sniproxy 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 640 kB
  • sloc: ansic: 5,537; perl: 1,664; sh: 237; makefile: 128
file content (20 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

find . -name \*.gcno -delete
find . -name \*.gcda -delete
find . -name \*.gcov -delete

./configure CFLAGS="-fprofile-arcs -ftest-coverage" && \
    make clean all check

# Run additional network dependent tests
pushd tests && \
    ./wildcard_test && \
    ./hostname_test && \
    popd

find . -name \*.gcda | while read FILE; do
    pushd $( dirname ${FILE} )
    gcov $( basename ${FILE} )
    popd
done