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(1): add target test-coverage



details:   https://anonhg.NetBSD.org/src/rev/8ad7ceb7ff8f
branches:  trunk
changeset: 979057:8ad7ceb7ff8f
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Dec 12 16:06:27 2020 +0000

description:
make(1): add target test-coverage

diffstat:

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

diffs (21 lines):

diff -r a3fbbf7ac160 -r 8ad7ceb7ff8f usr.bin/make/Makefile
--- a/usr.bin/make/Makefile     Sat Dec 12 15:06:11 2020 +0000
+++ b/usr.bin/make/Makefile     Sat Dec 12 16:06:27 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.109 2020/12/06 13:29:34 rillig Exp $
+#      $NetBSD: Makefile,v 1.110 2020/12/12 16:06:27 rillig Exp $
 #      @(#)Makefile    5.2 (Berkeley) 12/28/90
 
 PROG=  make
@@ -190,6 +190,11 @@
 .c.casm:
        ${COMPILE.c:S,^-c$,-S,} ${COPTS.${.IMPSRC}} ${.IMPSRC} -o ${.TARGET}
 
+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'
+
 .include <bsd.prog.mk>
 .include <bsd.subdir.mk>
 



Home | Main Index | Thread Index | Old Index