File: test-coverage

package info (click to toggle)
sniproxy 0.6.1%2Bgit20240321-0.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 644 kB
  • sloc: ansic: 5,594; perl: 1,673; sh: 237; makefile: 131
file content (20 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (5)
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