summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2008-10-13 13:27:33 +0000
committermillert <millert@openbsd.org>2008-10-13 13:27:33 +0000
commitcd65ed772c5c8311b06149ee827be50366be8424 (patch)
tree56986926aa1b90719cd6a2f8eb6fe6d44a774225
parentAdd sed-based dc(1) clone. This exposes a long-standing bug in BSD sed (diff)
downloadwireguard-openbsd-cd65ed772c5c8311b06149ee827be50366be8424.tar.xz
wireguard-openbsd-cd65ed772c5c8311b06149ee827be50366be8424.zip
cleanup
-rw-r--r--regress/usr.bin/sed/Makefile28
1 files changed, 18 insertions, 10 deletions
diff --git a/regress/usr.bin/sed/Makefile b/regress/usr.bin/sed/Makefile
index cab6dabe73a..2b73e5e06ad 100644
--- a/regress/usr.bin/sed/Makefile
+++ b/regress/usr.bin/sed/Makefile
@@ -1,17 +1,25 @@
-# $OpenBSD: Makefile,v 1.1 2008/10/10 14:33:34 millert Exp $
+# $OpenBSD: Makefile,v 1.2 2008/10/13 13:27:33 millert Exp $
# $NetBSD: Makefile,v 1.1 2005/04/04 16:48:45 peter Exp $
SED= /usr/bin/sed
-regress:
- sh ${.CURDIR}/sedtest.sh ${SED} sedtest.out
- diff ${.CURDIR}/sedtest.expected sedtest.out
- printf ":abcd: : :\n\n" | ${SED} -f ${.CURDIR}/hanoi.sed > hanoi.out
- diff ${.CURDIR}/hanoi.expected hanoi.out
- ${SED} -f ${.CURDIR}/math.sed ${.CURDIR}/math.in > math.out
- diff ${.CURDIR}/math.expected math.out
- echo ________________________X___ | ${SED} -nf ${.CURDIR}/sierpinski.sed > sierpinski.out
- diff ${.CURDIR}/sierpinski.expected sierpinski.out
+REGRESS_TARGETS= sedtest hanoi math sierpinski
+
+sedtest:
+ sh ${.CURDIR}/$@.sh ${SED} $@.out
+ diff ${.CURDIR}/$@.expected $@.out
+
+hanoi:
+ ${SED} -f ${.CURDIR}/$@.sed ${.CURDIR}/$@.in > $@.out
+ diff ${.CURDIR}/$@.expected $@.out
+
+math:
+ ${SED} -f ${.CURDIR}/$@.sed ${.CURDIR}/$@.in > $@.out
+ diff ${.CURDIR}/$@.expected $@.out
+
+sierpinski:
+ ${SED} -nf ${.CURDIR}/$@.sed ${.CURDIR}/$@.in > $@.out
+ diff ${.CURDIR}/$@.expected $@.out
CLEANFILES+=*.out lines* script*