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/f250f1415d61
branches: trunk
changeset: 1017092:f250f1415d61
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 e8f0db27dff6 -r f250f1415d61 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