summaryrefslogtreecommitdiffstats
path: root/contrib/bmake/unit-tests/posix.mk
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2015-04-21 04:40:38 +0000
committersjg <sjg@FreeBSD.org>2015-04-21 04:40:38 +0000
commitaf117d16cb9971b98daadf0901466cbf38bd45b5 (patch)
treed4404a0b758eb6a0547daa01b5eec4d7df64362f /contrib/bmake/unit-tests/posix.mk
parent909d1933055072a88a7712a6e880c731d40fce75 (diff)
parentbee1aeb88e274fb1036152cf5e1176049e2dc417 (diff)
downloadFreeBSD-src-af117d16cb9971b98daadf0901466cbf38bd45b5.zip
FreeBSD-src-af117d16cb9971b98daadf0901466cbf38bd45b5.tar.gz
Merge bmake-20150418
PR: 199486
Diffstat (limited to 'contrib/bmake/unit-tests/posix.mk')
-rw-r--r--contrib/bmake/unit-tests/posix.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/bmake/unit-tests/posix.mk b/contrib/bmake/unit-tests/posix.mk
new file mode 100644
index 0000000..608a24a
--- /dev/null
+++ b/contrib/bmake/unit-tests/posix.mk
@@ -0,0 +1,24 @@
+# $Id: posix.mk,v 1.1.1.1 2014/08/30 18:57:18 sjg Exp $
+
+all: x plus subs err
+
+x:
+ @echo "Posix says we should execute the command as if run by system(3)"
+ @echo "Expect 'Hello,' and 'World!'"
+ @echo Hello,; false; echo "World!"
+
+plus:
+ @echo a command
+ +@echo "a command prefixed by '+' executes even with -n"
+ @echo another command
+
+subs:
+ @echo make -n
+ @${.MAKE} -f ${MAKEFILE} -n plus
+ @echo make -n -j1
+ @${.MAKE} -f ${MAKEFILE} -n -j1 plus
+
+err:
+ @(echo Now we expect an error...; exit 1)
+ @echo "Oops! you shouldn't see this!"
+
OpenPOWER on IntegriCloud