aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/lcov.sh
blob: 391bf89d2f6d0a4d83c8d2045f3b126581e3a031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

./configure.py --with-debug-info --with-coverage-info --with-bzip2 --with-lzma --with-sqlite --with-zlib --with-pkcs11 --with-sqlite3

make -l4 -j$(nproc) -k
./botan-test --pkcs11-lib=/usr/lib/libsofthsm2.so --run-online-tests

#LCOV_OPTIONS="--rc lcov_branch_coverage=1"
LCOV_OPTIONS=""

rm -f coverage.info coverage.info.raw
lcov $LCOV_OPTIONS --capture --directory . --output-file coverage.info.raw
lcov $LCOV_OPTIONS  --remove coverage.info.raw '/usr/*' --output-file coverage.info
genhtml $LCOV_OPTIONS coverage.info --output-directory lcov-out