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 Allow BROKEN_TESTS to cause TESTS to...



details:   https://anonhg.NetBSD.org/src/rev/06c86e185a5d
branches:  trunk
changeset: 379953:06c86e185a5d
user:      sjg <sjg%NetBSD.org@localhost>
date:      Tue Jun 29 00:35:23 2021 +0000

description:
Allow BROKEN_TESTS to cause TESTS to be skipped.

Some tests simply do not work in some environments.
Eg. shell-ksh on macos/arm64
Allow local site to set BROKEN_TESTS to skip those they know
will not work.

Reviewed by: rillig

diffstat:

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

diffs (22 lines):

diff -r 6ce27ab79e56 -r 06c86e185a5d usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Mon Jun 28 17:52:12 2021 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Tue Jun 29 00:35:23 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.279 2021/06/16 09:39:48 rillig Exp $
+# $NetBSD: Makefile,v 1.280 2021/06/29 00:35:23 sjg Exp $
 #
 # Unit tests for make(1)
 #
@@ -429,6 +429,12 @@ TESTS+=            varparse-mod
 TESTS+=                varparse-undef-partial
 TESTS+=                varquote
 
+# Some tests just do not work on some platforms or environments
+# so allow for some filtering.
+.if !empty(BROKEN_TESTS)
+TESTS:= ${TESTS:${BROKEN_TESTS:S,^,N,:ts:}}
+.endif
+
 # Ideas for more tests:
 #      char-0020-space.mk
 #      char-005C-backslash.mk



Home | Main Index | Thread Index | Old Index