Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make: generate coverage summary on 'make test-c...



details:   https://anonhg.NetBSD.org/src/rev/448f35a2ed92
branches:  trunk
changeset: 359838:448f35a2ed92
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Jan 26 23:00:55 2022 +0000

description:
make: generate coverage summary on 'make test-coverage'

diffstat:

 usr.bin/make/Makefile |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r d096f574c1a6 -r 448f35a2ed92 usr.bin/make/Makefile
--- a/usr.bin/make/Makefile     Wed Jan 26 22:47:03 2022 +0000
+++ b/usr.bin/make/Makefile     Wed Jan 26 23:00:55 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.120 2022/01/09 18:49:28 rillig Exp $
+#      $NetBSD: Makefile,v 1.121 2022/01/26 23:00:55 rillig Exp $
 #      @(#)Makefile    5.2 (Berkeley) 12/28/90
 
 PROG=  make
@@ -186,6 +186,7 @@
        @make -s clean cleandir
        @env USE_COVERAGE=yes COPTS="-O0 -ggdb" USER_CPPFLAGS="-DCLEANUP" \
                sh -c 'make -s all -j8 && make -s test'
+       @env USE_COVERAGE=yes make report-coverage > coverage.txt
 
 .if ${USE_COVERAGE} == "yes"
 report-coverage: .PHONY



Home | Main Index | Thread Index | Old Index