Makefile 1.3 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 6
CFLAGS += -I../../../../usr/include/

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
D
David Ahern 已提交
13
TEST_PROGS += tcp_fastopen_backup_key.sh fcnal-test.sh l2tp.sh
14
TEST_PROGS_EXTENDED := in_netns.sh
D
David Ahern 已提交
15
TEST_GEN_FILES =  socket nettest
16
TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy reuseport_addr_any
17
TEST_GEN_FILES += tcp_mmap tcp_inq psock_snd txring_overwrite
18
TEST_GEN_FILES += udpgso udpgso_bench_tx udpgso_bench_rx ip_defrag
W
Willem de Bruijn 已提交
19
TEST_GEN_FILES += so_txtime ipv6_flowlabel ipv6_flowlabel_mgr
20
TEST_GEN_FILES += tcp_fastopen_backup_key
21
TEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
22
TEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls
23

24
KSFT_KHDR_INSTALL := 1
25 26
include ../lib.mk

27
$(OUTPUT)/reuseport_bpf_numa: LDLIBS += -lnuma
28
$(OUTPUT)/tcp_mmap: LDFLAGS += -lpthread
29
$(OUTPUT)/tcp_inq: LDFLAGS += -lpthread