opnsense-src/usr.bin/make/tests/shell/replace/Makefile.test
Julio Merino d525bcd959 Migrate tools/regression/usr.bin/make/ to the new tests layout.
Note that these tests are for fmake, not bmake, and thus they are not
installed nor run when bmake is selected (the default).  Yes, I have
wasted a *ton* of time on moving tests for no real reason other than
ensuring they are not left behind.

But maybe, just maybe, it was not work in vain: the majority of these
tests also work with bmake and the few that don't may point at broken
stuff.  For example, the tests for the "archive" feature do not work
with bmake, but bmake's manpage and source tree seem to imply that they
should.  So... to be investigated later; need to poke sjg@.
2014-03-19 12:29:20 +00:00

21 lines
692 B
Makefile

#
# Test that we can replace the shell and set all the shell parameters
# (except meta and builtin which have their own test). This is done by
# using a shell script for the shell that echoes all command line
# arguments and its standard input. The shell name should not be one of
# the builtin shells.
#
# XXX There seems to be a problem here in -j1 mode: for the line without
# @- make should switch on echoing again, but it doesn't.
#
# $FreeBSD$
.SHELL: name="shell" path="${.CURDIR}/shell" \
quiet="be quiet" echo="be verbose" filter="be verbose" \
echoFlag="x" errFlag="y" \
hasErrCtl=y check="check errors" ignore="ignore errors"
.PHONY: test1
test1:
-@funny $$
funnier $$