1 # $NetBSD: Makefile,v 1.1 2014/05/31 14:29:06 christos Exp $ 2 # 3 4 .include <bsd.own.mk> 5 6 TESTSDIR = ${TESTSBASE}/bin/sh/dotcmd 7 8 TESTS_SH = t_dotcmd 9 10 FILESDIR = ${TESTSDIR}/out 11 12 # Testing scripts: dotcmd in various scopes includes a file with 13 # return / break / continue in various scopes. 14 # 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 20 21 ${cmd}_${cmd_scope}: scoped_command 22 ${.CURDIR}/scoped_command '${cmd_scope}' '${cmd}' '${cmd}' \ 23 >'${.TARGET}' 24 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} 32 33 ${dot_scope}_${cmd}_${cmd_scope}: scoped_command 34 ${.CURDIR}/scoped_command '${dot_scope}' \ 35 '. "${cmd}_${cmd_scope}"' 'dotcmd' 'dotcmd' >'${.TARGET}' 36 . endfor 37 . endfor 38 .endfor 39 40 .include <bsd.test.mk> 41