xref: /freebsd/contrib/bmake/unit-tests/posix.mk (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1# $NetBSD: posix.mk,v 1.3 2022/01/23 18:15:29 rillig Exp $
2
3all:	x plus subs err
4
5x:
6	@echo "Posix says we should execute the command as if run by system(3)"
7	@echo "Expect 'Hello,' and 'World!'"
8	@echo Hello,; false; echo "World!"
9
10plus:
11	@echo a command
12	+@echo "a command prefixed by '+' executes even with -n"
13	@echo another command
14
15subs:
16	@echo make -n
17	@${.MAKE} -r -f ${MAKEFILE} -n plus
18	@echo make -n -j1
19	@${.MAKE} -r -f ${MAKEFILE} -n -j1 plus
20
21err:
22	@(echo Now we expect an error...; exit 1)
23	@echo "Oops! you shouldn't see this!"
24