1 # $NetBSD: Makefile,v 1.2 2014/07/27 14:24:17 apb Exp $
6 TESTSDIR
= ${TESTSBASE}/bin
/sh
/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}' \
25 . for dot_scope in case compound file for func subshell until while
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}'
40 .
include <bsd.
test.mk
>