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/4f1100a6291c
branches:  trunk
changeset: 941115:4f1100a6291c
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 0c70f9dd32a3 -r 4f1100a6291c 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