NetBSD/regress/sys/kern/ipf/Makefile

106 lines
2.8 KiB
Makefile
Raw Normal View History

2005-02-20 00:30:24 +03:00
# $NetBSD: Makefile,v 1.9 2005/02/19 21:30:25 martti Exp $
2002-05-13 10:33:09 +04:00
#
# (C)opyright 1993-1996 by Darren Reed.
#
2004-07-23 09:39:03 +04:00
# See the IPFILTER.LICENCE file for details on licencing.
2002-05-13 10:33:09 +04:00
#
2002-05-13 10:34:13 +04:00
.include <bsd.prog.mk>
2002-05-13 10:33:09 +04:00
2004-07-23 09:39:03 +04:00
regress all: results tests
results:
mkdir -p results
tests: ipf nat logtests ipv6 pools
ipf: ftests ptests
nat: ntests nitests intests
2002-05-13 10:33:09 +04:00
first:
-mkdir -p results
# Filtering tests
ftests: f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17
# Rule parsing tests
2005-02-08 10:01:52 +03:00
ptests: i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15
2002-05-13 10:33:09 +04:00
2005-02-08 10:01:52 +03:00
ntests: n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12
2002-05-13 10:33:09 +04:00
2004-07-23 09:39:03 +04:00
nitests: ni1 ni2 ni3 ni4 ni5 ni6 ni7 ni8 ni9 ni10 ni11 ni12
2002-05-13 10:33:09 +04:00
2005-02-20 00:30:24 +03:00
intests: in1 in2 in3 in4 in5 in6
2002-05-13 10:33:09 +04:00
logtests: l1
2004-07-23 09:39:03 +04:00
pools: p1 p2 p3 ip1
2002-05-13 10:33:09 +04:00
2004-07-23 09:39:03 +04:00
ipv6: ipv6.1 ipv6.2 ipv6.3
2002-05-13 10:33:09 +04:00
2004-07-23 09:39:03 +04:00
bpf: bpf1 bpf-f1
2002-05-13 10:33:09 +04:00
2004-07-23 09:39:03 +04:00
f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14:
@${HOST_SH} ${.CURDIR}/dotest ${.CURDIR} \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
2002-05-13 10:33:09 +04:00
2004-07-23 09:39:03 +04:00
f15 f16 f17:
@${HOST_SH} ${.CURDIR}/mtest ${.CURDIR} \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
2002-05-13 10:33:09 +04:00
2005-02-08 10:01:52 +03:00
i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 bpf1:
2004-07-23 09:39:03 +04:00
@${HOST_SH} ${.CURDIR}/itest ${.CURDIR} \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
2002-05-13 10:33:09 +04:00
2005-02-08 10:01:52 +03:00
n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12:
2004-07-23 09:39:03 +04:00
@${HOST_SH} ${.CURDIR}/nattest ${.CURDIR} \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
2002-05-13 10:33:09 +04:00
2004-07-23 09:39:03 +04:00
ni1 ni2 ni3 ni4 ni5 ni7 ni8 ni9 ni10 ni11 ni12:
@${HOST_SH} ${.CURDIR}/natipftest ${.CURDIR} single \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
2002-05-13 10:33:09 +04:00
2004-07-23 09:39:03 +04:00
ni6:
@${HOST_SH} ${.CURDIR}/natipftest ${.CURDIR} multi \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
2002-05-13 10:33:09 +04:00
2005-02-20 00:30:24 +03:00
in1 in2 in3 in4 in5 in6:
2004-07-23 09:39:03 +04:00
@${HOST_SH} ${.CURDIR}/intest ${.CURDIR} \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
2002-05-13 10:33:09 +04:00
l1:
2004-07-23 09:39:03 +04:00
@${HOST_SH} ${.CURDIR}/logtest ${.CURDIR} \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
2002-05-13 10:33:09 +04:00
2004-07-23 09:39:03 +04:00
ipv6.1 ipv6.2 ipv6.3:
@${HOST_SH} ${.CURDIR}/dotest6 ${.CURDIR} \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
p1 p2 p3:
@${HOST_SH} ${.CURDIR}/ptest ${.CURDIR} \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
ip1:
@${HOST_SH} ${.CURDIR}/iptest ${.CURDIR} \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
bpf-f1:
@${HOST_SH} ${.CURDIR}/bpftest ${.CURDIR} \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
2002-05-13 10:33:09 +04:00
clean:
2004-07-23 09:39:03 +04:00
/bin/rm -f f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17
2005-02-08 10:01:52 +03:00
/bin/rm -f i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15
/bin/rm -f n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12
2004-07-23 09:39:03 +04:00
/bin/rm -f ni1 ni2 ni3 ni4 ni5 ni6 ni7 ni8 ni9 ni10 ni11 ni12
2005-02-20 00:30:24 +03:00
/bin/rm -f in1 in2 in3 in4 in5 in6
2004-07-23 09:39:03 +04:00
/bin/rm -f p1 p2 p3 ip1
2002-05-13 10:33:09 +04:00
/bin/rm -f l1
2004-07-23 09:39:03 +04:00
/bin/rm -f ipv6.1 ipv6.2 ipv6.3
/bin/rm -f bpf1 bpf-f1
/bin/rm -f results/* logout
/bin/rm -rf results
2004-07-23 09:39:03 +04:00
diffs:
-cd expected; for i in *; do if [ -f $$i -a ! -f ../$$i -a -f ../results/$$i ] ; then diff -c $$i ../results/$$i >> ../diff.out; fi done