summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl/Makefile
blob: 6193de558654ce40f6f0cc158c1d8442dc6ee91e (plain)
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
# $OpenBSD: Makefile,v 1.30 2002/09/15 17:41:43 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

.for n in ${PFFAIL}
REGRESS_TARGETS+=pfail${n}

pfail${n}:
	if pfctl -nv -f - < ${.CURDIR}/pfail${n}.in > /dev/null 2>&1 ; then \
		false ; \
	fi

.endfor

.for n in ${PFTESTS}
REGRESS_TARGETS+=pf${n}

pf${n}:
	pfctl -nv -f - < ${.CURDIR}/pf${n}.in | \
	    diff -u ${.CURDIR}/pf${n}.ok /dev/stdin

.endfor

.PHONY: ${REGRESS_TARGETS}

.include <bsd.regress.mk>