summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-07-07 16:31:38 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-07-07 16:31:38 +0000
commit6863900e011336aaaf7a6676828c33e4167043f4 (patch)
tree9bc7ced6c4da1f49d9130e63330a8b9207634079
parent033c9a46da5d2c0d9443a25df4265a9a631b43de (diff)
Disable tests that fail due to known make bugs, fix the others.
-rw-r--r--regress/usr.bin/make/Makefile45
-rw-r--r--regress/usr.bin/make/mk123
-rw-r--r--regress/usr.bin/make/mk2114
-rw-r--r--regress/usr.bin/make/t21.out8
4 files changed, 50 insertions, 20 deletions
diff --git a/regress/usr.bin/make/Makefile b/regress/usr.bin/make/Makefile
index 0e4ff1f3708..c96f5fa3c71 100644
--- a/regress/usr.bin/make/Makefile
+++ b/regress/usr.bin/make/Makefile
@@ -1,17 +1,38 @@
-# $OpenBSD: Makefile,v 1.45 2017/07/07 14:12:43 espie Exp $
+# $OpenBSD: Makefile,v 1.46 2017/07/07 16:31:37 bluhm Exp $
-# We don't pass t7, t13, t14, t17, t19, t20 t21 t26
+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 t28 t29 \
+ t30 t31 t32 t33 t34 t35 t36 t37 t38 t38j t39 \
+ t40 t41 t42 t43 t44 t45 t46 t47
+
+# We don't pass t14 t17 t18 t20
# 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 \
- t25 t26 t27 t28 t29 t30 t31 t32 t33 t34 t35 t36 \
- t37 t38 t38j t39 t40 t41 t42 t43 t44 t45 t46 t47
+
+t14:
+ # make currently incorrectly uses annotations for suffixes
+ # rules for non-suffixes rules.
+ @echo DISABLED
+
+t17:
+ # Bug in cond-parser, ends up having too many open conds.
+ @echo DISABLED
+
+t18:
+ # Another test case: this one holds too many open conditionals,
+ # and exactly enough closes...
+ @echo DISABLED
+
+t20:
+ # Some posix tests we don't pass yet, and won't until I've
+ # added a `magic' status for variables (as SHELL is very,
+ # very special, according to POSIX/Single Unix).
+ @echo DISABLED
MALLOC_OPTIONS?=J
t1: t1.out
env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -e -r -f ${.CURDIR}/mk1 | diff - t1.out
-
# This is a POSIX test. pmake does not pass variables to submakes until
# after OpenBSD 2.7.
t2:
@@ -40,7 +61,7 @@ t5:
t6:
cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} A=good -r -f mk6 | diff - t6.out
-# This test currently fails, and will until the cond parser is rewritten.
+# This test passes since the cond parser has been rewritten.
t7:
if cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk7 2>/dev/null || test $$? -ge 128; then false; fi
@@ -65,7 +86,7 @@ t11:
t12:
cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk12 |diff - t12.out
-# Verify whitespace handling. Currently failing.
+# Verify whitespace handling.
t13:
cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk13 |diff - t13.out
@@ -89,7 +110,7 @@ t19:
cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} SHELL=/bin/zsh ${MAKE} -r -f mk19 | diff - t19.out
t20:
- cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk20 | diff - t20.out
+ cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} SHELL=/bin/sh -r -f mk20 | diff - t20.out
t21:
cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk21 | diff - t21.out
@@ -192,7 +213,7 @@ t46:
fi
t47: tok.o
- test -f tok.o || exit 1
+ test -f tok.o || exit 1
t1.out:
echo MACHINE_ARCH=${MACHINE_ARCH} >$@
@@ -201,6 +222,6 @@ t1.out:
CLEANFILES+=t1.out z.a a.a a.b mk34.b goodfile phony t15file \
t25.1st t25.2nd f26.2nd f26 t27.2nd t27.3rd \
- libt29.a t29dep t29.targ t29.targ2 tok tok.o tok.d
+ libt29.a t29dep t29.targ t29.targ2 t38.b tok tok.o tok.d
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/make/mk12 b/regress/usr.bin/make/mk12
index e82ef809baf..ea41414485d 100644
--- a/regress/usr.bin/make/mk12
+++ b/regress/usr.bin/make/mk12
@@ -12,8 +12,9 @@ all: a b c
a: ${T1}
@echo ${>:T}
+# new tests have been written with mk40, mk41, ...; filter them out with N
b: ${T2}
- @echo ${>:T}
+ @echo ${>:T:Nmk4[0-9]}
c: ${T3}
@echo ${>:T}
diff --git a/regress/usr.bin/make/mk21 b/regress/usr.bin/make/mk21
index a0f9c4137e0..0827fb42ec3 100644
--- a/regress/usr.bin/make/mk21
+++ b/regress/usr.bin/make/mk21
@@ -1,14 +1,20 @@
-# $OpenBSD: mk21,v 1.1 2004/11/21 12:58:12 espie Exp $
+# $OpenBSD: mk21,v 1.2 2017/07/07 16:31:37 bluhm Exp $
TRUC= http://heanet.dl.sourceforge.net/sourceforge/%SUBDIR%/
.for _S in ${TRUC}
-S?= ${_S:S/^${_S:C@/:[^/:]+$@/@}//:S/^://}
+S?= ${_S:S/^${_S:C@([^:/])/.+$@\1/@}//:S/^://}
.endfor
_S= ${TRUC}
-T?= ${_S:S/^${_S:C@/:[^/:]+$@/@}//:S/^://}
+T?= ${_S:S/^${_S:C@([^:/])/.+$@\1/@}//:S/^://}
+
+X?= ${TRUC:C@([^:/])/.+$@\1/@}
+Y?= ${TRUC:S/^${X}//:S/^://}
+Z?= ${TRUC:S/^${TRUC:C@([^:/])/.+$@\1/@}//:S/^://}
all:
@echo "S= $S"
@echo "T= $T"
-
+ @echo "X= $X"
+ @echo "Y= $Y"
+ @echo "Z= $Z"
diff --git a/regress/usr.bin/make/t21.out b/regress/usr.bin/make/t21.out
index bdb258de052..6043d56929c 100644
--- a/regress/usr.bin/make/t21.out
+++ b/regress/usr.bin/make/t21.out
@@ -1,3 +1,5 @@
-S= http://heanet.dl.sourceforge.net/sourceforge/%SUBDIR%/
-T= http://heanet.dl.sourceforge.net/sourceforge/%SUBDIR%/
-
+S= sourceforge/%SUBDIR%/
+T= sourceforge/%SUBDIR%/
+X= http://heanet.dl.sourceforge.net/
+Y= sourceforge/%SUBDIR%/
+Z= sourceforge/%SUBDIR%/