blob: a71f0190c731a9d975e6b35d14d4a85566c6c2df (
plain) (
blame)
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
|
# $OpenBSD: Makefile,v 1.3 2017/07/07 23:15:27 bluhm Exp $
REGRESS_TARGETS= hit miss cleanup
CLEANFILES= stamp-*
stamp-setup:
${SUDO} pfctl -qt __regress_tbl -T add -f ${.CURDIR}/table.in
date >$@
cleanup:
rm -f stamp-setup
${SUDO} pfctl -qt __regress_tbl -T kill
hit: stamp-setup
for i in `cat ${.CURDIR}/table.hit`; do \
echo -n "hit $$i "; \
${SUDO} pfctl -qt __regress_tbl -T test $$i || exit 1; \
echo success; \
done; \
exit 0
miss: stamp-setup
for i in `cat ${.CURDIR}/table.miss`; do \
echo -n "miss $$i "; \
${SUDO} pfctl -qt __regress_tbl -T test $$i && exit 1; \
echo success; \
done; \
exit 0
.PHONY: hit miss
.include <bsd.regress.mk>
|