blob: 2d516139f17e4e91a9b3e3fa23e793eaf6a2f65c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $NetBSD: Makefile,v 1.7 2006/06/29 14:01:58 rillig Exp $
#
DISTNAME= regress-make-1.0
CATEGORIES= regress
DISTFILES= # empty
MAINTAINER= rillig@NetBSD.org
COMMENT= Test Makefile quoting and make(1) bugs
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}; \
${MAKE} ${MAKEFLAGS} -s -f ${FILESDIR:Q}/${t:Q}.mk \
| diff - ${FILESDIR:Q}/${t:Q}.out
.endfor
.include "../../mk/bsd.pkg.mk"
|