summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml9
-rw-r--r--Makefile.am3
2 files changed, 8 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1631c87370..33c278332e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,13 +12,14 @@ Compile minimal library:
- 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
diff --git a/Makefile.am b/Makefile.am
index 5564c9189d..4f561e3766 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -82,6 +82,9 @@ abi-check:
@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