diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-09-18 08:57:10 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-09-18 08:57:10 +0000 |
commit | 08ec26170a7f0ea104be2d6cdd848ce7664682c4 (patch) | |
tree | 01d2dc9eab4c9f04046596ac849bdf3fe448411f /regress/sbin | |
parent | b0cfe955886793905409287bbd855b53deb0c20a (diff) |
new kind of pfctl regression tests:
we have stuff we cannot test in our regression tests as of now as the pfctl
-nvf output varies depending on the machine config - esp. network interfaces
et all. But we can at least test wether pfctl eats the syntax.
add a test for the "self" keyword.
ok markus@
Diffstat (limited to 'regress/sbin')
-rw-r--r-- | regress/sbin/pfctl/Makefile | 11 | ||||
-rw-r--r-- | regress/sbin/pfctl/pfsimple1.in | 1 |
2 files changed, 11 insertions, 1 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile index 6193de55865..c46bcb7a8bd 100644 --- a/regress/sbin/pfctl/Makefile +++ b/regress/sbin/pfctl/Makefile @@ -1,7 +1,8 @@ -# $OpenBSD: Makefile,v 1.30 2002/09/15 17:41:43 henning Exp $ +# $OpenBSD: Makefile,v 1.31 2002/09/18 08:57:09 henning 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 PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 +PFSIMPLE=1 .for n in ${PFFAIL} REGRESS_TARGETS+=pfail${n} @@ -22,6 +23,14 @@ pf${n}: .endfor +.for n in ${PFSIMPLE} +REGRESS_TARGETS+=pfsimple${n} + +pfsimple${n}: + pfctl -nf - < ${.CURDIR}/pfsimple${n}.in + +.endfor + .PHONY: ${REGRESS_TARGETS} .include <bsd.regress.mk> diff --git a/regress/sbin/pfctl/pfsimple1.in b/regress/sbin/pfctl/pfsimple1.in new file mode 100644 index 00000000000..2d9877c8fb6 --- /dev/null +++ b/regress/sbin/pfctl/pfsimple1.in @@ -0,0 +1 @@ +block in from any to self |