summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-06-29 14:01:58 +0000
committerrillig <rillig@pkgsrc.org>2006-06-29 14:01:58 +0000
commit9280b412727fb8c97b33e76ada77adb32f95d335 (patch)
treed34f25f6297567576c7225eb35a76ecd25376001 /regress
parentf091955572abfa40d8b70b3bcaef5447dbdc8a3e (diff)
downloadpkgsrc-9280b412727fb8c97b33e76ada77adb32f95d335.tar.gz
The regression tests that are actually run are selected based on the
platform and the bmake version, since some of the bugs have been fixed since.
Diffstat (limited to 'regress')
-rw-r--r--regress/make-quoting/Makefile36
1 files changed, 33 insertions, 3 deletions
diff --git a/regress/make-quoting/Makefile b/regress/make-quoting/Makefile
index 3580e846b4c..2d516139f17 100644
--- a/regress/make-quoting/Makefile
+++ b/regress/make-quoting/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2006/06/29 13:35:18 rillig Exp $
+# $NetBSD: Makefile,v 1.7 2006/06/29 14:01:58 rillig Exp $
#
DISTNAME= regress-make-1.0
@@ -8,15 +8,45 @@ DISTFILES= # empty
MAINTAINER= rillig@NetBSD.org
COMMENT= Test Makefile quoting and make(1) bugs
-REGRESS_TESTS= bug1 bug2 continue dblquote for ltarget nestfor newline
-REGRESS_TESTS+= quoting sglquote vtarget
+NUM_MAKE_VERSION= ${MAKE_VERSION:C/[^0-9]//g}
+
+.include "../../mk/bsd.prefs.mk"
+
+REGRESS_TESTS= # none
+
+# Has been fixed somewhere in 2005.
+.if ${NUM_MAKE_VERSION} < 20050101
+REGRESS_TESTS+= bug1
+.endif
+
+REGRESS_TESTS+= bug2
+
+# Has been fixed somewhere in 2006.
+.if ${NUM_MAKE_VERSION} < 20060101
+REGRESS_TESTS+= continue
+.endif
+
+REGRESS_TESTS+= dblquote for ltarget nestfor
+
+.if ${NUM_MAKE_VERSION} < 20060629
+REGRESS_TESTS+= newline
+.endif
+
+# The NetBSD 3.0 /bin/sh is buggy.
+.if !(${OPSYS} == "NetBSD" && !empty(OS_VERSION:M3.0*))
+REGRESS_TESTS+= quoting
+.endif
+
+REGRESS_TESTS+= sglquote vtarget
WRKSRC= ${WRKDIR}
+USE_TOOLS+= diff printf
do-build: do-regress
@${DO_NADA}
do-regress:
+ @printf "Testing bmake(1) version %s\\n" ${NUM_MAKE_VERSION:Q}""
.for t in ${REGRESS_TESTS}
@${_PKG_SILENT}${_PKG_DEBUG} \
${ECHO_MSG} "Running testcase "${t:Q}; \