xref: /linux/tools/testing/selftests/net/Makefile (revision ae24bab257bb2043b53c80e65cdd8b507ace06c4)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2a6f68034SDavid S. Miller# Makefile for net selftests
3a6f68034SDavid S. Miller
43c2c3c16SDaniel BorkmannCFLAGS =  -Wall -Wl,--no-as-needed -O2 -g
5a6f68034SDavid S. MillerCFLAGS += -I../../../../usr/include/
6a6f68034SDavid S. Miller
7b69d540dSFlorian WestphalTEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh netdevice.sh \
8509e56b3SMahesh Bandewar	      rtnetlink.sh xfrm_policy.sh test_blackhole_dev.sh
902c7f38bSPeter OskolkovTEST_PROGS += fib_tests.sh fib-onlink-tests.sh pmtu.sh udpgso.sh ip_defrag.sh
1075f0139fSWillem de BruijnTEST_PROGS += udpgso_bench.sh fib_rule_tests.sh msg_zerocopy.sh psock_snd.sh
116254e5c6SPeter OskolkovTEST_PROGS += udpgro_bench.sh udpgro.sh test_vxlan_under_vrf.sh reuseport_addr_any.sh
123fb321fdSWillem de BruijnTEST_PROGS += test_vxlan_fdb_changelink.sh so_txtime.sh ipv6_flowlabel.sh
133c28d99fSFrancesco RuggeriTEST_PROGS += tcp_fastopen_backup_key.sh fcnal-test.sh l2tp.sh traceroute.sh
14919a23e9SHangbin LiuTEST_PROGS += fin_ack_lat.sh fib_nexthop_multiprefix.sh fib_nexthops.sh
15919a23e9SHangbin LiuTEST_PROGS += altnames.sh icmp_redirect.sh ip6_gre_headroom.sh
16919a23e9SHangbin LiuTEST_PROGS += route_localnet.sh
177f204a7dSKuniyuki IwashimaTEST_PROGS += reuseaddr_ports_exhausted.sh
185ef5c90eSJian YangTEST_PROGS += txtimestamp.sh
193f251d74SDavid AhernTEST_PROGS += vrf-xfrm-tests.sh
200558c396StannerloveTEST_PROGS += rxtimestamp.sh
21f3348a82SDanielle RatsonTEST_PROGS += devlink_port_split.py
22b7cc6d3cSIdo SchimmelTEST_PROGS += drop_monitor_tests.sh
231a017276SMichael JeansonTEST_PROGS += vrf_route_leaking.sh
24bbbc7aa4SGuillaume NaultTEST_PROGS += bareudp.sh
259b0b7837SSeth David SchoenTEST_PROGS += unicast_extensions.sh
26a062260aSPaolo AbeniTEST_PROGS += udpgro_fwd.sh
271c3cadbeSPaolo AbeniTEST_PROGS += veth.sh
281751eb42SAnders RoxellTEST_PROGS_EXTENDED := in_netns.sh
29acda655fSDavid AhernTEST_GEN_FILES =  socket nettest
306254e5c6SPeter OskolkovTEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy reuseport_addr_any
31358be656SWillem de BruijnTEST_GEN_FILES += tcp_mmap tcp_inq psock_snd txring_overwrite
3202c7f38bSPeter OskolkovTEST_GEN_FILES += udpgso udpgso_bench_tx udpgso_bench_rx ip_defrag
33*ae24bab2SLorenz BauerTEST_GEN_FILES += so_txtime ipv6_flowlabel ipv6_flowlabel_mgr so_netns_cookie
3410fbcdd1SJason BaronTEST_GEN_FILES += tcp_fastopen_backup_key
35af8c8a45SSeongJae ParkTEST_GEN_FILES += fin_ack_lat
365ef5c90eSJian YangTEST_GEN_FILES += reuseaddr_ports_exhausted
375ef5c90eSJian YangTEST_GEN_FILES += hwtstamp_config rxtimestamp timestamping txtimestamp
38bc2652b7SDmitry SafonovTEST_GEN_FILES += ipsec
39e06d79fbSJosef BacikTEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
407f657d5bSDave WatsonTEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls
415e29a910SMichael Ellerman
42b881d089SPo-Hsu LinTEST_FILES := settings
43b881d089SPo-Hsu Lin
44b2d35fa5SAnders RoxellKSFT_KHDR_INSTALL := 1
455e29a910SMichael Ellermaninclude ../lib.mk
465e29a910SMichael Ellerman
47870f193dSFathi Boudra$(OUTPUT)/reuseport_bpf_numa: LDLIBS += -lnuma
483e839363SDmitry Safonov$(OUTPUT)/tcp_mmap: LDLIBS += -lpthread
493e839363SDmitry Safonov$(OUTPUT)/tcp_inq: LDLIBS += -lpthread
50