This enhances a test to print the code coverage of the test suite,
which in turn is being used/reported by gitlab CI interface.
- linux
except:
- tags
-Build and Check with asan:
+Build and Check with asan and coverage run:
script:
- - make autoreconf && CFLAGS="-fsanitize=address -g
- -O2" LDFLAGS="-static-libasan" ./configure --disable-doc --with-included-libtasn1 --disable-valgrind-tests --disable-non-suiteb-curves --disable-guile
- && make -j4 && make check -j4
+ - make autoreconf && CFLAGS="-fsanitize=address -g -O2" LDFLAGS="-static-libasan"
+ ./configure --disable-doc --enable-code-coverage --disable-valgrind-tests --disable-non-suiteb-curves --disable-guile &&
+ make -j4 && make check -j4 && make local-code-coverage-output
tags:
- nettle3
+ - lcov
- linux
except:
- tags
@CODE_COVERAGE_RULES@
+local-code-coverage-output: code-coverage-capture
+ cat GnuTLS-$(VERSION)-coverage/index.html|grep headerCovTableEntryLo|head -1|sed 's/^.*>\([0-9]\+\.[0-9]\+\s*%\)<.*$$/ coverage lines: \1/'
+
dist-hook: abi-check
make -C doc/ compare-makefile
make -C doc/ compare-exported