summaryrefslogtreecommitdiffstats
path: root/src/pcap-thread/hexdump/test/Makefile.am
blob: a34fa61253314fdf3b1998734518e4580b7e13b3 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Author Jerry Lundström <jerry@dns-oarc.net>
# Copyright (c) 2017-2023, OARC, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in
#    the documentation and/or other materials provided with the
#    distribution.
#
# 3. Neither the name of the copyright holder nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

MAINTAINERCLEANFILES = $(srcdir)/Makefile.in -rf bad-packets

CLEANFILES = test*.log test*.trs \
    *.pcap-dist \
    dns.out \
    test2.out \
    test4.out \
    test5.out \
    test6.out \
    test7.out

TESTS = test1.sh test2.sh \
    test3_120_1120.sh test3_120_1240.sh test3_120_1400.sh test3_120_1800.sh \
    test3_120_900.sh test3_1255_2123.sh test3_1255_2345.sh test3_1255_2566.sh \
    test3_1400_2123.sh test3_1400_2345.sh test3_1400_2566.sh \
    test3_1600_2123.sh test3_1600_2345.sh test3_1600_2566.sh test3_34_1120.sh \
    test3_34_1240.sh test3_34_1400.sh test3_34_1800.sh test3_34_900.sh \
    test3_890_1120.sh test3_890_1240.sh test3_890_1400.sh test3_890_1800.sh \
    test3_890_900.sh \
    test4.sh \
    test5.sh \
    test6.sh \
    test7.sh

test1.sh: dns.pcap-dist

test2.sh: v4_frag_dup_udp.pcap-dist v4_frag_empty_udp.pcap-dist \
    v4_frag_nomf_udp.pcap-dist v4_frag_offset_offbyone1_udp.pcap-dist \
    v4_frag_offset_offbyone2_udp.pcap-dist v4_frag_order_udp.pcap-dist \
    v4_frag_skip_first_udp.pcap-dist v4_frag_skip_last_udp.pcap-dist \
    v4_frag_skip_middle_udp.pcap-dist \
    v4_frag_dup_tcp.pcap-dist v4_frag_empty_tcp.pcap-dist \
    v4_frag_nomf_tcp.pcap-dist v4_frag_offset_offbyone1_tcp.pcap-dist \
    v4_frag_offset_offbyone2_tcp.pcap-dist v4_frag_order_tcp.pcap-dist \
    v4_frag_skip_first_tcp.pcap-dist v4_frag_skip_last_tcp.pcap-dist \
    v4_frag_skip_middle_tcp.pcap-dist

test4.sh: v6_frag_dup_udp.pcap-dist v6_frag_empty_udp.pcap-dist \
    v6_frag_nomf_udp.pcap-dist v6_frag_offset_offbyone1_udp.pcap-dist \
    v6_frag_offset_offbyone2_udp.pcap-dist v6_frag_order_udp.pcap-dist \
    v6_frag_skip_first_udp.pcap-dist v6_frag_skip_last_udp.pcap-dist \
    v6_frag_skip_middle_udp.pcap-dist \
    v6_frag_dup_tcp.pcap-dist v6_frag_empty_tcp.pcap-dist \
    v6_frag_nomf_tcp.pcap-dist v6_frag_offset_offbyone1_tcp.pcap-dist \
    v6_frag_offset_offbyone2_tcp.pcap-dist v6_frag_order_tcp.pcap-dist \
    v6_frag_skip_first_tcp.pcap-dist v6_frag_skip_last_tcp.pcap-dist \
    v6_frag_skip_middle_tcp.pcap-dist

test5.sh: icmp_fuzz.pcap-dist icmpv6_fuzz.pcap-dist

test6.sh: v4_frag_timeout_udp.pcap-dist v6_frag_timeout_udp.pcap-dist \
    v4_frag_timeout_tcp.pcap-dist v6_frag_timeout_tcp.pcap-dist

test7.sh: padding.pcap-dist missing_payload.pcap-dist

cobadpkts: bad-packets/Makefile
	cd bad-packets && test -d .git && git pull

bad-packets/Makefile:
	git clone https://github.com/DNS-OARC/bad-packets.git
	cd bad-packets && git submodule update --init

.pcap.pcap-dist:
	cp "$<" "$@"

EXTRA_DIST = $(TESTS) \
    dns.gold dns.pcap \
    v4_frag_dup_udp.pcap v4_frag_empty_udp.pcap v4_frag_nomf_udp.pcap \
    v4_frag_offset_offbyone1_udp.pcap v4_frag_offset_offbyone2_udp.pcap \
    v4_frag_order_udp.pcap v4_frag_skip_first_udp.pcap v4_frag_skip_last_udp.pcap \
    v4_frag_skip_middle_udp.pcap \
    v4_frag_dup_tcp.pcap v4_frag_empty_tcp.pcap v4_frag_nomf_tcp.pcap \
    v4_frag_offset_offbyone1_tcp.pcap v4_frag_offset_offbyone2_tcp.pcap \
    v4_frag_order_tcp.pcap v4_frag_skip_first_tcp.pcap v4_frag_skip_last_tcp.pcap \
    v4_frag_skip_middle_tcp.pcap \
    test2.gold \
    v6_frag_dup_udp.pcap v6_frag_empty_udp.pcap v6_frag_nomf_udp.pcap \
    v6_frag_offset_offbyone1_udp.pcap v6_frag_offset_offbyone2_udp.pcap \
    v6_frag_order_udp.pcap v6_frag_skip_first_udp.pcap v6_frag_skip_last_udp.pcap \
    v6_frag_skip_middle_udp.pcap \
    v6_frag_dup_tcp.pcap v6_frag_empty_tcp.pcap v6_frag_nomf_tcp.pcap \
    v6_frag_offset_offbyone1_tcp.pcap v6_frag_offset_offbyone2_tcp.pcap \
    v6_frag_order_tcp.pcap v6_frag_skip_first_tcp.pcap v6_frag_skip_last_tcp.pcap \
    v6_frag_skip_middle_tcp.pcap \
    test4.gold \
    icmp_fuzz.pcap icmpv6_fuzz.pcap test5.gold \
    v4_frag_timeout_udp.pcap v6_frag_timeout_udp.pcap test6.gold \
    v4_frag_timeout_tcp.pcap v6_frag_timeout_tcp.pcap test6.gold \
    padding.pcap missing_payload.pcap test7.gold