diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2017-08-11 22:30:39 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2017-08-11 22:30:39 +0000 |
commit | 3abf6d5b91a5b00104791cabb0558ac75b765686 (patch) | |
tree | d28fe61f939d5340e024a06a340a2fc2e4a3fa95 /regress/sbin/pfctl | |
parent | 3645ef95eb31441462a5e7a82d9f52fda2bf33ea (diff) |
add option -N (no domain resolution)
manpage wording and reminder about usage() jmc@
ok florian@ henning@
Diffstat (limited to 'regress/sbin/pfctl')
-rw-r--r-- | regress/sbin/pfctl/Makefile | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile index ff9c38e28a8..d42bb446e68 100644 --- a/regress/sbin/pfctl/Makefile +++ b/regress/sbin/pfctl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.226 2017/07/19 13:02:46 mikeb Exp $ +# $OpenBSD: Makefile,v 1.227 2017/08/11 22:30:38 benno Exp $ # TARGETS # pf: feed pfNN.in through pfctl and check whether the output matches pfNN.ok @@ -29,6 +29,7 @@ PFOPT=1 2 6 PFIF2IP=1 2 3 PFCHKSUM=1 2 3 PFCMD=1 +PFCMDFAIL=1 MAKEOBJDIRPREFIX= @@ -252,6 +253,32 @@ REGRESS_TARGETS+=pfcmd REGRESS_ROOT_TARGETS+=pfcmd UPDATE_TARGETS+=pfcmd-update +.for n in ${PFCMDFAIL} +PFCMDFAIL_TARGETS+=pfcmdfail${n} +PFCMDFAIL_UPDATES+=pfcmdfail${n}-update + +pfcmdfail${n}: + ${SUDO} pfctl `cat ${.CURDIR}/pfcmdfail${n}.opts` \ + -f - < ${.CURDIR}/pfcmdfail${n}.in 2>&1 | \ + diff -u ${.CURDIR}/pfcmdfail${n}.ok /dev/stdin + +pfcmdfail${n}-update: + if ${SUDO} pfctl `cat ${.CURDIR}/pfcmdfail${n}.opts` \ + -f - < ${.CURDIR}/pfcmdfail${n}.in > \ + ${.CURDIR}/pfcmdfail${n}.ok 2>&1; then \ + true; \ + fi; + +.endfor + +pfcmdfail: ${PFCMDFAIL_TARGETS} +pfcmdfail-update: ${PFCMDFAIL_UPDATES} +NODEFAULT_TARGETS+=pfcmdfail +REGRESS_TARGETS+=pfcmdfail + +REGRESS_ROOT_TARGETS+=pfcmd +UPDATE_TARGETS+=pfcmd-update + .for n in ${PFSETUP} PFSETUP_TARGETS+=pfsetup${n} PFSETUP_UPDATES+=pfsetup${n}-update |