]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ipfilter/test/Makefile
This commit was generated by cvs2svn to compensate for changes in r156803,
[FreeBSD/FreeBSD.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: results tests
10
11 results:
12         mkdir -p results
13
14 tests: ipf nat logtests ipv6 pools bpf
15
16 ipf: ftests ptests
17
18 nat: ntests nitests intests
19
20 first:
21         -mkdir -p results
22
23 # Filtering tests
24 ftests: f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19
25
26 # Rule parsing tests
27 ptests: i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 \
28         i20 i21
29
30 ntests: n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12 n13 n14
31
32 nitests: ni1 ni2 ni3 ni4 ni5 ni6 ni7 ni8 ni9 ni10 ni11 ni12 ni13 ni14 ni15 ni16
33
34 intests: in1 in2 in3 in4 in5 in6
35
36 logtests: l1
37
38 pools: p1 p2 p3 ip1
39
40 ipv6: ipv6.1 ipv6.2 ipv6.3
41
42 bpf: bpf1 bpf-f1
43
44 f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f19:
45         @/bin/sh ./dotest `awk "/^$@ / { print; } " test.format`
46
47 f15 f16 f17 f18:
48         @/bin/sh ./mtest `awk "/^$@ / { print; } " test.format`
49
50 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 bpf1:
51         @/bin/sh ./itest `awk "/^$@ / { print; } " test.format`
52
53 n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12 n13 n14:
54         @/bin/sh ./nattest `awk "/^$@ / { print; } " test.format`
55
56 ni1 ni2 ni3 ni4 ni5 ni7 ni8 ni9 ni10 ni11 ni12 ni13 ni14 ni15 ni16:
57         @/bin/sh ./natipftest single `awk "/^$@ / { print; } " test.format`
58
59 ni6:
60         @/bin/sh ./natipftest multi `awk "/^$@ / { print; } " test.format`
61
62 in1 in2 in3 in4 in5 in6:
63         @/bin/sh ./intest `awk "/^$@ / { print; } " test.format`
64
65 l1:
66         @/bin/sh ./logtest `awk "/^$@ / { print; } " test.format`
67
68 ipv6.1 ipv6.2 ipv6.3:
69         @/bin/sh ./dotest6 `awk "/^$@ / { print; } " test.format`
70
71 p1 p2 p3:
72         @/bin/sh ./ptest `awk "/^$@ / { print; } " test.format`
73
74 ip1:
75         @/bin/sh ./iptest `awk "/^$@ / { print; } " test.format`
76
77 bpf-f1:
78         /bin/sh ./bpftest `awk "/^$@ / { print; } " test.format`
79
80 clean:
81         /bin/rm -f f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19
82         /bin/rm -f i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21
83         /bin/rm -f n1 n2 n3 n4 n5 n6 n7 n8 n9 n10 n11 n12 n13 n14
84         /bin/rm -f ni1 ni2 ni3 ni4 ni5 ni6 ni7 ni8 ni9
85         /bin/rm -f ni10 ni11 ni12 ni13 ni14 ni15 ni16
86         /bin/rm -f in1 in2 in3 in4 in5 in6
87         /bin/rm -f p1 p2 p3 ip1
88         /bin/rm -f l1
89         /bin/rm -f ipv6.1 ipv6.2 ipv6.3
90         /bin/rm -f bpf1 bpf-f1
91         /bin/rm -f results/* logout
92
93 diffs:
94         -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