xref: /openbsd/regress/sbin/pfctl/Makefile (revision 78b63d65)
1# $OpenBSD: Makefile,v 1.11 2001/11/26 16:53:27 jasoni Exp $
2
3NOMAN=
4NOPROG=
5PFTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13
6PFFAIL=1 2 3 4 5 6 7 8
7
8.for n in ${PFFAIL}
9regress: pfail${n}
10
11pfail${n}:
12	@pfctl -nv -R - < ${.CURDIR}/pfail${n}.in > /dev/null 2>&1 && \
13	    echo 'test pfail${n} does not fail as expected' || true
14
15.PHONY: pfail${n} regress
16.endfor
17
18.for n in ${PFTESTS}
19regress: pf${n}
20
21pf${n}: pf${n}.out
22	@cmp -s ${.CURDIR}/pf${n}.ok pf${n}.out || \
23	    echo 'test pf${n} output does not match expected output'
24pf${n}.out:
25	pfctl -nv -R - < ${.CURDIR}/pf${n}.in > $@
26
27.PHONY: pf${n} regress
28CLEANFILES+=pf${n}.out
29.endfor
30
31binat1: binat1.out
32	@cmp -s ${.CURDIR}/binat1.ok binat1.out || \
33	   echo 'test binat1 output does not match expected output'
34
35binat1.out:
36	pfctl -nv -N - < ${.CURDIR}/binat1.in > $@
37
38CLEANFILES+=binat1.out
39
40regress: binat1
41
42.PHONY: regress
43.include <bsd.prog.mk>
44