summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl/Makefile
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-12-18 16:49:55 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-12-18 16:49:55 +0000
commit9f006b08d85577ebe82a51b651ee67f75045bc7e (patch)
tree91f41a70998ee04abfefe11327f4dcd59f59baf5 /regress/sbin/pfctl/Makefile
parente91bc917a46b06f345b8c4b57be00eadf1bde6e7 (diff)
Load regress rules into anchor regress:regress and compare the output
of pfctl -vvsr with expected output. This verifies that skip step values don't change unexpectedly.
Diffstat (limited to 'regress/sbin/pfctl/Makefile')
-rw-r--r--regress/sbin/pfctl/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index 5d69c1def0a..ee46c923a10 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,10 +1,12 @@
-# $OpenBSD: Makefile,v 1.57 2002/12/17 20:08:18 henning Exp $
+# $OpenBSD: Makefile,v 1.58 2002/12/18 16:49:54 dhartmei 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 33 34 35 36 37 38 39 40 41 42 43 44 45
PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
PFSIMPLE=1 2
PFSETUP=1
+PFLOAD=1 2 3 4 5 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29
+PFLOAD+=30 31 32 33 34 35 36 38 39 40 43 44
.for n in ${PFFAIL}
REGRESS_TARGETS+=pfail${n}
@@ -38,6 +40,18 @@ pfsimple${n}:
.endfor
+.for n in ${PFLOAD}
+REGRESS_TARGETS+=pfload${n}
+
+pfload${n}:
+ pfctl -a regress:regress -f - < ${.CURDIR}/pf${n}.in
+ pfctl -a regress:regress -vvsr | \
+ diff -u ${.CURDIR}/pf${n}.loaded /dev/stdin
+ pfctl -a regress:regress -Fn >/dev/null 2>&1
+ pfctl -a regress:regress -Fr >/dev/null 2>&1
+
+.endfor
+
.ifdef DO_PFSETUP
.for n in ${PFSETUP}
REGRESS_TARGETS+=pfsetup${n}