Makefile 2.9 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2
# Makefile for net selftests
3

4
CFLAGS =  -Wall -Wl,--no-as-needed -O2 -g
5
CFLAGS += -I../../../../usr/include/ $(KHDR_INCLUDES)
6

7
TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh netdevice.sh \
M
Mahesh Bandewar 已提交
8
	      rtnetlink.sh xfrm_policy.sh test_blackhole_dev.sh
9
TEST_PROGS += fib_tests.sh fib-onlink-tests.sh pmtu.sh udpgso.sh ip_defrag.sh
10
TEST_PROGS += udpgso_bench.sh fib_rule_tests.sh msg_zerocopy.sh psock_snd.sh
11
TEST_PROGS += udpgro_bench.sh udpgro.sh test_vxlan_under_vrf.sh reuseport_addr_any.sh
W
Willem de Bruijn 已提交
12
TEST_PROGS += test_vxlan_fdb_changelink.sh so_txtime.sh ipv6_flowlabel.sh
13
TEST_PROGS += tcp_fastopen_backup_key.sh fcnal-test.sh l2tp.sh traceroute.sh
14
TEST_PROGS += fin_ack_lat.sh fib_nexthop_multiprefix.sh fib_nexthops.sh fib_nexthop_nongw.sh
15
TEST_PROGS += altnames.sh icmp.sh icmp_redirect.sh ip6_gre_headroom.sh
16
TEST_PROGS += route_localnet.sh
17
TEST_PROGS += reuseaddr_ports_exhausted.sh
18
TEST_PROGS += txtimestamp.sh
19
TEST_PROGS += vrf-xfrm-tests.sh
20
TEST_PROGS += rxtimestamp.sh
21
TEST_PROGS += devlink_port_split.py
22
TEST_PROGS += drop_monitor_tests.sh
23
TEST_PROGS += vrf_route_leaking.sh
24
TEST_PROGS += bareudp.sh
25
TEST_PROGS += amt.sh
26
TEST_PROGS += unicast_extensions.sh
27
TEST_PROGS += udpgro_fwd.sh
28
TEST_PROGS += udpgro_frglist.sh
P
Paolo Abeni 已提交
29
TEST_PROGS += veth.sh
30
TEST_PROGS += ioam6.sh
31
TEST_PROGS += gro.sh
32
TEST_PROGS += gre_gso.sh
33
TEST_PROGS += cmsg_so_mark.sh
34
TEST_PROGS += cmsg_time.sh cmsg_ipv6.sh
35 36 37
TEST_PROGS += srv6_end_dt46_l3vpn_test.sh
TEST_PROGS += srv6_end_dt4_l3vpn_test.sh
TEST_PROGS += srv6_end_dt6_l3vpn_test.sh
38
TEST_PROGS += vrf_strict_mode_test.sh
39
TEST_PROGS += arp_ndisc_evict_nocarrier.sh
40
TEST_PROGS += ndisc_unsolicited_na_test.sh
41
TEST_PROGS += arp_ndisc_untracked_subnets.sh
42
TEST_PROGS += stress_reuseport_listen.sh
43
TEST_PROGS_EXTENDED := in_netns.sh setup_loopback.sh setup_veth.sh
44
TEST_PROGS_EXTENDED += toeplitz_client.sh toeplitz.sh
D
David Ahern 已提交
45
TEST_GEN_FILES =  socket nettest
46
TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy reuseport_addr_any
47
TEST_GEN_FILES += tcp_mmap tcp_inq psock_snd txring_overwrite
48
TEST_GEN_FILES += udpgso udpgso_bench_tx udpgso_bench_rx ip_defrag
49
TEST_GEN_FILES += so_txtime ipv6_flowlabel ipv6_flowlabel_mgr so_netns_cookie
50
TEST_GEN_FILES += tcp_fastopen_backup_key
51
TEST_GEN_FILES += fin_ack_lat
52 53
TEST_GEN_FILES += reuseaddr_ports_exhausted
TEST_GEN_FILES += hwtstamp_config rxtimestamp timestamping txtimestamp
54
TEST_GEN_FILES += ipsec
55
TEST_GEN_FILES += ioam6_parser
C
Coco Li 已提交
56
TEST_GEN_FILES += gro
57
TEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
58
TEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls tun
C
Coco Li 已提交
59
TEST_GEN_FILES += toeplitz
60
TEST_GEN_FILES += cmsg_sender
61
TEST_GEN_FILES += stress_reuseport_listen
62
TEST_PROGS += test_vxlan_vnifiltering.sh
63

64 65
TEST_FILES := settings

66
KSFT_KHDR_INSTALL := 1
67 68
include ../lib.mk

69 70
include bpf/Makefile

71
$(OUTPUT)/reuseport_bpf_numa: LDLIBS += -lnuma
72 73
$(OUTPUT)/tcp_mmap: LDLIBS += -lpthread
$(OUTPUT)/tcp_inq: LDLIBS += -lpthread