blob: 3b8a629ea242d7ff3dc9ad2da5f678a00ea31b23 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $OpenBSD: Makefile,v 1.12 2002/01/01 23:05:30 art Exp $
PFTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13
PFFAIL=1 2 3 4 5 6 7 8
.for n in ${PFFAIL}
REGRESSTARGETS+=pfail${n}
pfail${n}:
@pfctl -nv -R - < ${.CURDIR}/pfail${n}.in > /dev/null 2>&1 && \
echo 'test pfail${n} does not fail as expected' || true
.PHONY: pfail${n} regress
.endfor
.for n in ${PFTESTS}
REGRESSTARGETS+=pf${n}
pf${n}: pf${n}.out
@cmp -s ${.CURDIR}/pf${n}.ok pf${n}.out || \
echo 'test pf${n} output does not match expected output'
pf${n}.out:
pfctl -nv -R - < ${.CURDIR}/pf${n}.in > $@
.PHONY: pf${n} regress
CLEANFILES+=pf${n}.out
.endfor
binat1: binat1.out
@cmp -s ${.CURDIR}/binat1.ok binat1.out || \
echo 'test binat1 output does not match expected output'
binat1.out:
pfctl -nv -N - < ${.CURDIR}/binat1.in > $@
CLEANFILES+=binat1.out
REGRESSTARGETS+=binat1
.include <bsd.regress.mk>
|