]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/ipfilter/test/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / ipfilter / test / Makefile
1 #
2 # (C)opyright 1993-1996 by Darren Reed.
3 #
4 # See the IPFILTER.LICENCE file for details on licencing.
5 #
6 BINDEST=/usr/local/bin
7 SBINDEST=/sbin
8 MANDIR=/usr/share/man
9 all: expected.d results tests
10
11 expected.d:
12         (cd expected; make)
13
14 results:
15         mkdir -p results
16
17 tests: ipf nat logtests ipv6 pools bpf
18
19 ipf: ftests ptests
20
21 nat: ntests nitests intests
22
23 first:
24         -mkdir -p results
25
26 # Filtering tests
27 ftests: f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19 f20 f24
28
29 # Rule parsing tests
30 ptests: i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 \
31         i20 i21
32
33 ntests: n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12 n13 n14 n16
34
35 nitests: ni1 ni2 ni3 ni4 ni5 ni6 ni7 ni8 ni9 ni10 ni11 ni12 ni13 ni14 ni15 \
36         ni16 ni19 ni20 ni21 ni23
37
38 intests: in1 in2 in3 in4 in5 in6
39
40 logtests: l1
41
42 pools: p1 p2 p3 p5 ip1 ip2
43
44 ipv6: ipv6.1 ipv6.2 ipv6.3 ipv6.5 ipv6.6
45
46 bpf: bpf1 bpf-f1
47
48 f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f19:
49         @/bin/sh ./dotest `awk "/^$@ / { print; } " test.format`
50
51 f15 f16 f17 f18 f20 f24:
52         @/bin/sh ./mtest `awk "/^$@ / { print; } " test.format`
53
54 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 bpf1:
55         @/bin/sh ./itest `awk "/^$@ / { print; } " test.format`
56
57 n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12 n13 n14 n16:
58         @/bin/sh ./nattest `awk "/^$@ / { print; } " test.format`
59
60 ni2 ni3 ni4 ni5 ni7 ni8 ni9 ni10 ni11 ni12 ni13 ni14 ni15 ni16 ni19 ni20:
61         @/bin/sh ./natipftest single `awk "/^$@ / { print; } " test.format`
62
63 ni1 ni6 ni21 ni23:
64         @/bin/sh ./natipftest multi `awk "/^$@ / { print; } " test.format`
65
66 in1 in2 in3 in4 in5 in6:
67         @/bin/sh ./intest `awk "/^$@ / { print; } " test.format`
68
69 l1:
70         @/bin/sh ./logtest `awk "/^$@ / { print; } " test.format`
71
72 ipv6.1 ipv6.2 ipv6.3 ipv6.5 ipv6.6:
73         @/bin/sh ./dotest6 `awk "/^$@ / { print; } " test.format`
74
75 p1 p2 p3 p5:
76         @/bin/sh ./ptest `awk "/^$@ / { print; } " test.format`
77
78 ip1 ip2:
79         @/bin/sh ./iptest `awk "/^$@ / { print; } " test.format`
80
81 bpf-f1:
82         /bin/sh ./bpftest `awk "/^$@ / { print; } " test.format`
83
84 clean:
85         /bin/rm -f f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19 f20 f24
86         /bin/rm -f i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21
87         /bin/rm -f n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12 n13 n14 n16
88         /bin/rm -f ni1 ni2 ni3 ni4 ni5 ni6 ni7 ni8 ni9
89         /bin/rm -f ni10 ni11 ni12 ni13 ni14 ni15 ni16 ni19 ni20 ni21 ni23
90         /bin/rm -f in1 in2 in3 in4 in5 in6
91         /bin/rm -f p1 p2 p3 p5 ip1 ip2
92         /bin/rm -f l1
93         /bin/rm -f ipv6.1 ipv6.2 ipv6.3 ipv6.5 ipv6.6
94         /bin/rm -f bpf1 bpf-f1
95         /bin/rm -f results/* logout
96         (cd expected; make clean)
97
98 diffs:
99         -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