]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add target for local coverage report generation
authorNeil Horman <nhorman@openssl.org>
Mon, 16 Jun 2025 22:38:34 +0000 (18:38 -0400)
committerNeil Horman <nhorman@openssl.org>
Fri, 20 Jun 2025 10:40:14 +0000 (06:40 -0400)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/27839)

Configurations/unix-Makefile.tmpl

index 1fc14475d77eaf880b9e7b6e689215c1ee80f401..be772bfebf0c005b38c1b7fa85a58cddf2035293 100644 (file)
@@ -540,6 +540,9 @@ debuginfo: $(SHLIBS)
                $(OBJCOPY) --strip-debug --add-gnu-debuglink=$$i.debug $$i; \
        done;
 
+cov-report: $(SHLIBS)
+    @set -e; gcovr -r . --txt-metric=branch --html --html-details -o openssl-metrics.html
+
 ##@ Documentation
 build_generated_pods: $(GENERATED_PODS)
 build_docs: build_man_docs build_html_docs ## Create documentation