aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/lcov.sh
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-26 06:05:34 -0500
committerJack Lloyd <[email protected]>2016-11-26 06:08:05 -0500
commitd695dfadc0daf8290d344f82697d456fd011d153 (patch)
tree9cb0b623f8ecfa8076ab5a8c04622a161e5bdbfc /src/scripts/lcov.sh
parentf397471782357aa57b55cf8d3ec5c3018e9b0aaf (diff)
Add script for running lcov report
Add configure.py option --with-coverage-info which enables coverage but does not disable optimizations. Changes the scripts to use --with-coverage-info --no-optimization which is the same behavior as --with-coverage except explicit about what is happening. [ci skip]
Diffstat (limited to 'src/scripts/lcov.sh')
-rwxr-xr-xsrc/scripts/lcov.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/scripts/lcov.sh b/src/scripts/lcov.sh
new file mode 100755
index 000000000..f1340c787
--- /dev/null
+++ b/src/scripts/lcov.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+./configure.py --with-debug-info --with-coverage-info --no-optimizations --with-bzip2 --with-lzma --with-sqlite --with-zlib --with-pkcs11 --with-openssl --with-sqlite3
+
+make -l4 -j8 -k
+./botan-test --pkcs11-lib=/usr/lib/libsofthsm2.so
+
+lcov --rc lcov_branch_coverage=1 --capture --directory . --output-file coverage.info.raw
+lcov --remove coverage.info.raw '/usr/*' --output-file coverage.info
+genhtml --rc lcov_branch_coverage=1 coverage.info --output-directory lcov-out