diff options
Diffstat (limited to 'src/scripts')
-rwxr-xr-x | src/scripts/ci/travis/build.sh | 2 | ||||
-rwxr-xr-x | src/scripts/lcov.sh | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/scripts/ci/travis/build.sh b/src/scripts/ci/travis/build.sh index 336d2c629..5fb6bec2d 100755 --- a/src/scripts/ci/travis/build.sh +++ b/src/scripts/ci/travis/build.sh @@ -32,7 +32,7 @@ elif [ "$BUILD_MODE" = "parallel" ]; then fi elif [ "$BUILD_MODE" = "coverage" ]; then - CFG_FLAGS+=(--with-coverage) + CFG_FLAGS+=(--with-coverage --no-optimizations) elif [ "$BUILD_MODE" = "sanitizer" ]; then export ASAN_OPTIONS=detect_leaks=0 CFG_FLAGS+=(--with-sanitizers --disable-modules=locking_allocator) 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 |