Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests In meta mode we do not have to re-ru...
details: https://anonhg.NetBSD.org/src/rev/dec64b819556
branches: trunk
changeset: 956019:dec64b819556
user: sjg <sjg%NetBSD.org@localhost>
date: Sun Oct 18 22:55:52 2020 +0000
description:
In meta mode we do not have to re-run all tests when Makefile is touched
diffstat:
usr.bin/make/unit-tests/Makefile | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r a4ab9b02617c -r dec64b819556 usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile Sun Oct 18 21:58:32 2020 +0000
+++ b/usr.bin/make/unit-tests/Makefile Sun Oct 18 22:55:52 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.167 2020/10/18 16:33:18 rillig Exp $
+# $NetBSD: Makefile,v 1.168 2020/10/18 22:55:52 sjg Exp $
#
# Unit tests for make(1)
#
@@ -546,7 +546,12 @@
cvs diff "$$mi" || true
.if exists(${TEST_MAKE})
-${TESTS:=.rawout}: ${TEST_MAKE} ${.PARSEDIR}/Makefile
+${TESTS:=.rawout}: ${TEST_MAKE}
+# in meta mode, we *know* if a target script is impacted
+# by a makefile change.
+.if ${.MAKE.MODE:Unormal:Mmeta} == ""
+${TESTS:=.rawout}: ${.PARSEDIR}/Makefile
+.endif
.endif
.-include <bsd.obj.mk>
Home |
Main Index |
Thread Index |
Old Index