2006-06-29 16:01:58 +02:00
|
|
|
# $NetBSD: Makefile,v 1.7 2006/06/29 14:01:58 rillig Exp $
|
2005-05-15 23:10:16 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= regress-make-1.0
|
|
|
|
CATEGORIES= regress
|
|
|
|
DISTFILES= # empty
|
|
|
|
|
|
|
|
MAINTAINER= rillig@NetBSD.org
|
2005-08-01 02:40:30 +02:00
|
|
|
COMMENT= Test Makefile quoting and make(1) bugs
|
2005-05-15 23:10:16 +02:00
|
|
|
|
2006-06-29 16:01:58 +02:00
|
|
|
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
|
2005-05-15 23:10:16 +02:00
|
|
|
|
2006-05-12 01:10:50 +02:00
|
|
|
WRKSRC= ${WRKDIR}
|
2006-06-29 16:01:58 +02:00
|
|
|
USE_TOOLS+= diff printf
|
2006-05-12 01:10:50 +02:00
|
|
|
|
|
|
|
do-build: do-regress
|
|
|
|
@${DO_NADA}
|
|
|
|
|
2005-05-19 12:59:10 +02:00
|
|
|
do-regress:
|
2006-06-29 16:01:58 +02:00
|
|
|
@printf "Testing bmake(1) version %s\\n" ${NUM_MAKE_VERSION:Q}""
|
2005-05-15 23:10:16 +02:00
|
|
|
.for t in ${REGRESS_TESTS}
|
|
|
|
@${_PKG_SILENT}${_PKG_DEBUG} \
|
|
|
|
${ECHO_MSG} "Running testcase "${t:Q}; \
|
|
|
|
${MAKE} ${MAKEFLAGS} -s -f ${FILESDIR:Q}/${t:Q}.mk \
|
|
|
|
| diff - ${FILESDIR:Q}/${t:Q}.out
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|