summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-07-23 15:31:15 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-07-23 15:31:15 +0000
commitb11c55519b176185bd7859a2f02494b76246be13 (patch)
tree8f0c72131eb62317f2359bac7dfc77b247987d28 /regress
parentcda81f9dfad8a35494df231d68209dc420747efb (diff)
Regression test, existing/non-existing files used as targets,
depending on .PHONY and such
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/make/Makefile11
-rw-r--r--regress/usr.bin/make/mk812
-rw-r--r--regress/usr.bin/make/t8.out2
3 files changed, 22 insertions, 3 deletions
diff --git a/regress/usr.bin/make/Makefile b/regress/usr.bin/make/Makefile
index 551311b3ec3..8b46bb40993 100644
--- a/regress/usr.bin/make/Makefile
+++ b/regress/usr.bin/make/Makefile
@@ -1,9 +1,9 @@
-# $OpenBSD: Makefile,v 1.2 2000/07/18 20:15:38 espie Exp $
+# $OpenBSD: Makefile,v 1.3 2000/07/23 15:31:14 espie Exp $
NOMAN=
NOPROG=
-regress: t1 t2 t3 t4 t5 t6 t7
+regress: t1 t2 t3 t4 t5 t6 t7 t8
t1: t1.out
env -i PATH=${PATH} ${MAKE} -e -r -f ${.CURDIR}/mk1 | diff - t1.out
@@ -40,10 +40,15 @@ t6:
t7:
if cd ${.CURDIR} && env -i PATH=${PATH} ${MAKE} -r -f mk7 2>/dev/null; then false; fi
+# check for existent/non existent files
+t8:
+ touch goodfile phony
+ cd ${.CURDIR} && env -i PATH=${PATH} ${MAKE} -r -f mk8 | diff - t8.out
+
t1.out:
echo MACHINE_ARCH=${MACHINE_ARCH} >$@
-.PHONY: t1 t2 t3 t4 t5 t6 t7 regress
+.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 regress
CLEANFILES+=t1.out
diff --git a/regress/usr.bin/make/mk8 b/regress/usr.bin/make/mk8
new file mode 100644
index 00000000000..40a17a9e3c4
--- /dev/null
+++ b/regress/usr.bin/make/mk8
@@ -0,0 +1,12 @@
+all: nofile goodfile phony
+
+nofile:
+ @echo 1
+
+goodfile:
+ @echo 2
+
+phony:
+ @echo 3
+
+.PHONY: phony
diff --git a/regress/usr.bin/make/t8.out b/regress/usr.bin/make/t8.out
new file mode 100644
index 00000000000..2b2f2e1b926
--- /dev/null
+++ b/regress/usr.bin/make/t8.out
@@ -0,0 +1,2 @@
+1
+3