aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/netfilter/Makefile
blob: ee2d1a5254f847874af055de8891f6e6e9e8a414 (plain) (blame)
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
# SPDX-License-Identifier: GPL-2.0

top_srcdir = ../../../../..

HOSTPKG_CONFIG := pkg-config
MNL_CFLAGS := $(shell $(HOSTPKG_CONFIG) --cflags libmnl 2>/dev/null)
MNL_LDLIBS := $(shell $(HOSTPKG_CONFIG) --libs libmnl 2>/dev/null || echo -lmnl)

TEST_PROGS := \
	br_netfilter.sh \
	br_netfilter_queue.sh \
	bridge_brouter.sh \
	conntrack_clash.sh \
	conntrack_dump_flush.sh \
	conntrack_icmp_related.sh \
	conntrack_ipip_mtu.sh \
	conntrack_resize.sh \
	conntrack_reverse_clash.sh \
	conntrack_sctp_collision.sh \
	conntrack_tcp_unreplied.sh \
	conntrack_vrf.sh \
	ipvs.sh \
	nf_conntrack_packetdrill.sh \
	nf_nat_edemux.sh \
	nft_audit.sh \
	nft_concat_range.sh \
	nft_conntrack_helper.sh \
	nft_fib.sh \
	nft_flowtable.sh \
	nft_interface_stress.sh \
	nft_meta.sh \
	nft_nat.sh \
	nft_nat_zones.sh \
	nft_queue.sh \
	nft_synproxy.sh \
	nft_tproxy_tcp.sh \
	nft_tproxy_udp.sh \
	nft_zones_many.sh \
	rpath.sh \
	vxlan_mtu_frag.sh \
	xt_string.sh \
# end of TEST_PROGS

TEST_PROGS_EXTENDED = nft_concat_range_perf.sh

TEST_GEN_FILES = \
	audit_logread \
	connect_close \
	conntrack_dump_flush \
	conntrack_reverse_clash \
	nf_queue \
	sctp_collision \
	udpclash \
# end of TEST_GEN_FILES

include ../../lib.mk

$(OUTPUT)/nf_queue: CFLAGS += $(MNL_CFLAGS)
$(OUTPUT)/nf_queue: LDLIBS += $(MNL_LDLIBS)

$(OUTPUT)/conntrack_dump_flush: CFLAGS += $(MNL_CFLAGS)
$(OUTPUT)/conntrack_dump_flush: LDLIBS += $(MNL_LDLIBS)
$(OUTPUT)/udpclash: LDLIBS += -lpthread

TEST_FILES := \
	lib.sh \
	packetdrill \
# end of TEST_FILES

TEST_INCLUDES := \
	$(wildcard ../lib/sh/*.sh) \
	../lib.sh \
# end of TEST_INCLUDES