summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2002-11-22 16:34:59 +0000
committermarkus <markus@openbsd.org>2002-11-22 16:34:59 +0000
commitbafbc23c5274883901e63c3d65139ed0c41eaace (patch)
tree05af62c7fc6d24657fc820952f5ab078210f0643
parentfix fd handling, so 'make build >log 2>fixme' really works (diff)
downloadwireguard-openbsd-bafbc23c5274883901e63c3d65139ed0c41eaace.tar.xz
wireguard-openbsd-bafbc23c5274883901e63c3d65139ed0c41eaace.zip
add (disabled) self tests (make self); ok frantzen
-rw-r--r--regress/sbin/pfctl/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index 3fa4b6dc6c4..bbb4357a2ff 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.39 2002/11/07 17:11:51 henning Exp $
+# $OpenBSD: Makefile,v 1.40 2002/11/22 16:34:59 markus Exp $
PFTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
PFTESTS+=28 29 30 31 32
@@ -22,6 +22,19 @@ pf${n}:
pfctl -nv -f - < ${.CURDIR}/pf${n}.in | \
diff -u ${.CURDIR}/pf${n}.ok /dev/stdin
+#REGRESS_TARGETS+=selfpf${n}
+selfpf${n}:
+ if pfctl -nv -f - < ${.CURDIR}/pf${n}.in | \
+ sed 's/^@[^ ]* //' |\
+ pfctl -nvf - > /dev/null ; then \
+ true ; \
+ else \
+ pfctl -nv -f - < ${.CURDIR}/pf${n}.in; \
+ false ; \
+ fi
+
+self: selfpf${n}
+
.endfor
.for n in ${PFSIMPLE}