Module Name: src Committed By: sjg Date: Tue Jun 29 00:35:23 UTC 2021
Modified Files: src/usr.bin/make/unit-tests: Makefile Log Message: 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 To generate a diff of this commit: cvs rdiff -u -r1.279 -r1.280 src/usr.bin/make/unit-tests/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/unit-tests/Makefile diff -u src/usr.bin/make/unit-tests/Makefile:1.279 src/usr.bin/make/unit-tests/Makefile:1.280 --- src/usr.bin/make/unit-tests/Makefile:1.279 Wed Jun 16 09:39:48 2021 +++ src/usr.bin/make/unit-tests/Makefile Tue Jun 29 00:35:23 2021 @@ -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