diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-02-14 10:59:21 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-02-14 10:59:21 +0000 |
commit | 0e47b858f9a4c278d7586c254d91b57711dbfb2e (patch) | |
tree | 70fd0f5e9658e378185cd75df430836183372276 | |
parent | 34d6e0ffa12ee534a932d1eb8bff899952066c9a (diff) |
test -Dmacro=value
-rw-r--r-- | regress/sbin/pfctl/Makefile | 12 | ||||
-rw-r--r-- | regress/sbin/pfctl/pfopt1.in | 2 | ||||
-rw-r--r-- | regress/sbin/pfctl/pfopt1.ok | 2 | ||||
-rw-r--r-- | regress/sbin/pfctl/pfopt1.opts | 1 |
4 files changed, 16 insertions, 1 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile index 9ee520ba885..843f1083834 100644 --- a/regress/sbin/pfctl/Makefile +++ b/regress/sbin/pfctl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.68 2003/02/03 15:44:52 dhartmei Exp $ +# $OpenBSD: Makefile,v 1.69 2003/02/14 10:59:20 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 27 PFTESTS+=28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 @@ -10,6 +10,7 @@ PFLOAD+=30 31 32 34 36 38 39 40 44 49 #disabled now due to no altq and table in anchors #PFLOAD+=33 35 43 48 PFTABLE=1 2 3 4 5 6 7 8 9 10 11 12 +PFOPT=1 .for n in ${PFFAIL} REGRESS_TARGETS+=pfail${n} @@ -64,6 +65,15 @@ pfr${n}: .endfor +.for n in ${PFOPT} +REGRESS_TARGETS+=pfopt${n} + +pfopt${n}: + pfctl -nv -f - `cat ${.CURDIR}/pfopt${n}.opts` \ + < ${.CURDIR}/pfopt${n}.in | \ + diff -u ${.CURDIR}/pfopt${n}.ok /dev/stdin + +.endfor .ifdef DO_PFSETUP .for n in ${PFSETUP} diff --git a/regress/sbin/pfctl/pfopt1.in b/regress/sbin/pfctl/pfopt1.in new file mode 100644 index 00000000000..8b75a8d1c96 --- /dev/null +++ b/regress/sbin/pfctl/pfopt1.in @@ -0,0 +1,2 @@ +extif="wi0" +block in on $extif all diff --git a/regress/sbin/pfctl/pfopt1.ok b/regress/sbin/pfctl/pfopt1.ok new file mode 100644 index 00000000000..e7805570caf --- /dev/null +++ b/regress/sbin/pfctl/pfopt1.ok @@ -0,0 +1,2 @@ +extif = "wi0" +block drop in on lo0 all diff --git a/regress/sbin/pfctl/pfopt1.opts b/regress/sbin/pfctl/pfopt1.opts new file mode 100644 index 00000000000..77202773d13 --- /dev/null +++ b/regress/sbin/pfctl/pfopt1.opts @@ -0,0 +1 @@ +-Dextif=lo0 |