etc/protocols - sync with NetBSD-8
[minix.git] / tests / bin / sh / dotcmd / Makefile
blobfa9376237e2f4ed082a10cc6855a701a63a70bd8
1 # $NetBSD: Makefile,v 1.2 2014/07/27 14:24:17 apb Exp $
4 .include <bsd.own.mk>
6 TESTSDIR = ${TESTSBASE}/bin/sh/dotcmd
8 TESTS_SH = t_dotcmd
10 FILESDIR = ${TESTSDIR}/out
12 # Testing scripts: dotcmd in various scopes includes a file with
13 # return / break / continue in various scopes.
15 .for cmd_scope in case compound file for func subshell until while
16 . for cmd in return break continue
17 FILES += ${cmd}_${cmd_scope}
18 FILESDIR_${cmd}_${cmd_scope} = ${TESTSDIR}
19 FILESBUILD_${cmd}_${cmd_scope} = yes
21 ${cmd}_${cmd_scope}: scoped_command
22 ${HOST_SH} ${.CURDIR}/scoped_command '${cmd_scope}' '${cmd}' '${cmd}' \
23 >'${.TARGET}'
25 . for dot_scope in case compound file for func subshell until while
26 FILES += \
27 ${dot_scope}_${cmd}_${cmd_scope} \
28 out/${dot_scope}_${cmd}_${cmd_scope}.out
29 FILESDIR_${dot_scope}_${cmd}_${cmd_scope} = ${TESTSDIR}
30 FILESBUILD_${dot_scope}_${cmd}_${cmd_scope} = yes
31 FILESMODE_${dot_scope}_${cmd}_${cmd_scope} = ${BINMODE}
33 ${dot_scope}_${cmd}_${cmd_scope}: scoped_command
34 ${HOST_SH} ${.CURDIR}/scoped_command '${dot_scope}' \
35 '. "${cmd}_${cmd_scope}"' 'dotcmd' 'dotcmd' >'${.TARGET}'
36 . endfor
37 . endfor
38 .endfor
40 .include <bsd.test.mk>