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