summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2006-09-17 19:02:14 +0000
committerMarc Espie <espie@cvs.openbsd.org>2006-09-17 19:02:14 +0000
commitc9e35d07630606d0714789262d90f9ef983b0397 (patch)
tree1c99ec425f1f0e2073431101958eb922d55169a8 /regress/usr.bin
parent4608ddf94118f127a3e5399b1bcbbd2bbc0b0abe (diff)
fix badly named regress, and add suffixes rules.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/make/Makefile28
-rw-r--r--regress/usr.bin/make/mk2420
2 files changed, 42 insertions, 6 deletions
diff --git a/regress/usr.bin/make/Makefile b/regress/usr.bin/make/Makefile
index ded986b46cb..72168520ac5 100644
--- a/regress/usr.bin/make/Makefile
+++ b/regress/usr.bin/make/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.23 2005/07/15 19:43:42 espie Exp $
+# $OpenBSD: Makefile,v 1.24 2006/09/17 19:02:13 espie Exp $
-# We don't pass t7, t13, t14, t17, t19, t20 t21
+# We don't pass t7, t13, t14, t17, t19, t20 t21 t26
# and t16 yields piss poor performance
-REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24
+REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27
MALLOC_OPTIONS?=AZJ
t1: t1.out
@@ -98,7 +98,22 @@ t23:
cd ${.CURDIR} && ulimit -t 60 && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk22 a 2>&1| diff - t23.out
t24:
- if cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk24 a 2>/dev/null; then false; fi
+ if cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk23 a 2>/dev/null; then false; fi
+
+t25:
+ touch ${.OBJDIR}/t25.1st
+ rm -f ${.OBJDIR}/t25.2nd
+ if cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk24 t25.2nd 2>/dev/null; then false; fi
+
+t26:
+ touch ${.OBJDIR}/f26.2nd
+ rm -f ${.OBJDIR}/f26
+ if cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk24 f26 2>/dev/null; then false; fi
+
+t27:
+ touch ${.OBJDIR}/t27.2nd
+ rm -f ${.OBJDIR}/t27.3rd
+ if cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk24 t27.3rd 2>/dev/null; then false; fi
z.a:
touch $@
@@ -106,8 +121,9 @@ z.a:
t1.out:
echo MACHINE_ARCH=${MACHINE_ARCH} >$@
-.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 regress
+.PHONY: ${REGRESS_TARGETS} regress
-CLEANFILES+=t1.out z.a a.a a.b goodfile phony t15file
+CLEANFILES+=t1.out z.a a.a a.b goodfile phony t15file \
+ t25.1st t25.2nd f26.2nd f26 t27.2nd t27.3rd
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/make/mk24 b/regress/usr.bin/make/mk24
new file mode 100644
index 00000000000..8b1ac07cdec
--- /dev/null
+++ b/regress/usr.bin/make/mk24
@@ -0,0 +1,20 @@
+# $OpenBSD: mk24,v 1.1 2006/09/17 19:02:13 espie Exp $
+
+# .SUFFIXES should void suffixes rules
+
+.SUFFIXES: .1st .2nd .3rd
+
+# Two suffixes implicit rules
+.1st.2nd:
+ cp $*.1st $@
+
+# one suffix implicit rule
+.2nd:
+ cp $*.2nd $@
+
+.2nd.3rd:
+ cp $*.2nd $@
+
+.SUFFIXES:
+
+.SUFFIXES: .3rd