Module Name:    src
Committed By:   rillig
Date:           Wed Jan 26 23:00:55 UTC 2022

Modified Files:
        src/usr.bin/make: Makefile

Log Message:
make: generate coverage summary on 'make test-coverage'


To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 src/usr.bin/make/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/Makefile
diff -u src/usr.bin/make/Makefile:1.120 src/usr.bin/make/Makefile:1.121
--- src/usr.bin/make/Makefile:1.120	Sun Jan  9 18:49:28 2022
+++ src/usr.bin/make/Makefile	Wed Jan 26 23:00:55 2022
@@ -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 @@ test-coverage: .PHONY
 	@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

Reply via email to