blob: 31daf26065bcf68e7e68b68110c0fd2101e10d99 (
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
|
# $NetBSD: Makefile,v 1.12 2019/03/22 22:41:06 rillig Exp $
#
DISTNAME= # not applicable
PKGNAME= regress-tools-1.2
CATEGORIES= regress
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Test whether the TOOLS do what I expect
LICENSE= 2-clause-bsd
WRKSRC= ${WRKDIR}
NO_CHECKSUM= yes
PLIST_SRC= # none
REGRESS_TESTS+= logging
REGRESS_TESTS+= awk sed sh sort tar tr
USE_TOOLS+= awk sed sh sort tar tr
TOOLS_CREATE+= script-dquot
TOOLS_SCRIPT.script-dquot= \
echo "hello; world"
TOOLS_CREATE+= script-backslash
TOOLS_SCRIPT.script-backslash= \
echo hello\;\ world
# If both of the above tools are properly quoted during logging, the
# semicolon in "hello; world" is never interpreted as a shell command
# delimiter, and this tool is never run.
TOOLS_CREATE+= world
TOOLS_SCRIPT.world= \
echo oops
do-build:
.for t in ${REGRESS_TESTS}
${RUN} cd ${WRKSRC}; \
${ECHO_MSG} "Running testsuite "${t:Q}; \
${SH} ${FILESDIR}/${t:Q}-test.sh
.endfor
.include "../../mk/bsd.pkg.mk"
|