File: run-gcov-unittests.sh

package info (click to toggle)
modsecurity 3.0.4-2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 37,876 kB
  • sloc: cpp: 26,238; ansic: 15,058; sh: 5,346; python: 2,934; yacc: 2,872; makefile: 1,409; lex: 1,344; php: 42; perl: 36
file content (18 lines) | stat: -rwxr-xr-x 570 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
#
# Code coverage for data only (not unit tests)
#
./autogen.sh
./configure-gcov.sh
make
cd src
make testdriver
rm -f libinjection.info
rm -rf lcov-html
mkdir lcov-html
lcov -b . --directory . --zerocounters
libtool --mode=execute ./testdriver ../tests/test-*.txt
lcov -b . --directory . --capture --output-file libinjection.info
lcov -b . --directory . --remove libinjection.info '/usr/include*' -o libinjection.info
lcov -b . --directory . --remove libinjection.info 'testdriver' -o libinjection.info
genhtml --branch-coverage -o lcov-html libinjection.info