xref: /freebsd/usr.bin/bmake/tests/shell/replace/Makefile.test (revision 5ae59dec60e3815b621ae87f74a377cf3449ca55)
1*5ae59decSJulio Merino#
2*5ae59decSJulio Merino# Test that we can replace the shell and set all the shell parameters
3*5ae59decSJulio Merino# (except meta and builtin which have their own test). This is done by
4*5ae59decSJulio Merino# using a shell script for the shell that echoes all command line
5*5ae59decSJulio Merino# arguments and its standard input. The shell name should not be one of
6*5ae59decSJulio Merino# the builtin shells.
7*5ae59decSJulio Merino#
8*5ae59decSJulio Merino# XXX There seems to be a problem here in -j1 mode: for the line without
9*5ae59decSJulio Merino# @- make should switch on echoing again, but it doesn't.
10*5ae59decSJulio Merino#
11*5ae59decSJulio Merino# $FreeBSD$
12*5ae59decSJulio Merino
13*5ae59decSJulio Merino.SHELL: name="shell" path="${.CURDIR}/shell"			\
14*5ae59decSJulio Merino	quiet="be quiet" echo="be verbose" filter="be verbose"	\
15*5ae59decSJulio Merino	echoFlag="x" errFlag="y"				\
16*5ae59decSJulio Merino	hasErrCtl=y check="check errors" ignore="ignore errors"
17*5ae59decSJulio Merino
18*5ae59decSJulio Merino.PHONY: test1
19*5ae59decSJulio Merinotest1:
20*5ae59decSJulio Merino	-@funny $$
21*5ae59decSJulio Merino	funnier $$
22