summaryrefslogtreecommitdiffstats
path: root/contrib/bmake/unit-tests
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2012-11-16 01:37:25 +0000
committersjg <sjg@FreeBSD.org>2012-11-16 01:37:25 +0000
commitd281294411049c9ca9fad03441663d96ccb73476 (patch)
treef309932499193bc9bb630ead5d6aeb07eeb582a8 /contrib/bmake/unit-tests
parent48176b8f78106dce8ff54e657c3116365c3506d8 (diff)
parentb9451e8e2e7c949c7a89c32cfed6b2399aef0115 (diff)
downloadFreeBSD-src-d281294411049c9ca9fad03441663d96ccb73476.zip
FreeBSD-src-d281294411049c9ca9fad03441663d96ccb73476.tar.gz
Merge bmake-20121111
Also pay attention to MK_SHARED_TOOLCHAIN. Approved by: marcel (mentor)
Diffstat (limited to 'contrib/bmake/unit-tests')
-rw-r--r--contrib/bmake/unit-tests/Makefile.in6
-rw-r--r--contrib/bmake/unit-tests/order20
-rw-r--r--contrib/bmake/unit-tests/test.exp3
3 files changed, 27 insertions, 2 deletions
diff --git a/contrib/bmake/unit-tests/Makefile.in b/contrib/bmake/unit-tests/Makefile.in
index 4e3592d..e5bf9b2 100644
--- a/contrib/bmake/unit-tests/Makefile.in
+++ b/contrib/bmake/unit-tests/Makefile.in
@@ -1,6 +1,6 @@
-# $Id: Makefile.in,v 1.38 2012/06/19 23:38:48 sjg Exp $
+# $Id: Makefile.in,v 1.39 2012/11/09 19:16:10 sjg Exp $
#
-# $NetBSD: Makefile,v 1.34 2012/06/19 23:25:53 sjg Exp $
+# $NetBSD: Makefile,v 1.35 2012/11/09 19:08:28 sjg Exp $
#
# Unit tests for make(1)
# The main targets are:
@@ -40,6 +40,7 @@ SUBFILES= \
modorder \
modts \
modword \
+ order \
phony-end \
posix \
qequals \
@@ -52,6 +53,7 @@ SUBFILES= \
all: ${SUBFILES}
flags.doterror=
+flags.order=-j1
# the tests are actually done with sub-makes.
.PHONY: ${SUBFILES}
diff --git a/contrib/bmake/unit-tests/order b/contrib/bmake/unit-tests/order
new file mode 100644
index 0000000..175da47
--- /dev/null
+++ b/contrib/bmake/unit-tests/order
@@ -0,0 +1,20 @@
+# $NetBSD: order,v 1.1 2012/11/09 19:08:28 sjg Exp $
+
+# Test that .ORDER is handled correctly.
+# The explicit dependency the.o: the.h will make us examine the.h
+# the .ORDER will prevent us building it immediately,
+# we should then examine the.c rather than stop.
+
+all: the.o
+
+.ORDER: the.c the.h
+
+the.c the.h:
+ @echo Making $@
+
+.SUFFIXES: .o .c
+
+.c.o:
+ @echo Making $@ from $?
+
+the.o: the.h
diff --git a/contrib/bmake/unit-tests/test.exp b/contrib/bmake/unit-tests/test.exp
index 932d84e..368dc31 100644
--- a/contrib/bmake/unit-tests/test.exp
+++ b/contrib/bmake/unit-tests/test.exp
@@ -310,6 +310,9 @@ LIST:tw:C/ /,/g="one two three four five six"
LIST:tw:C/ /,/1g="one two three four five six"
LIST:tw:tW:C/ /,/="one,two three four five six"
LIST:tW:tw:C/ /,/="one two three four five six"
+Making the.c
+Making the.h
+Making the.o from the.h the.c
.TARGET="phony" .PREFIX="phony" .IMPSRC=""
.TARGET="all" .PREFIX="all" .IMPSRC=""
.TARGET="ok" .PREFIX="ok" .IMPSRC=""
OpenPOWER on IntegriCloud