Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: net: List helper scripts in TEST_FILES Makefile variable

Some scripts are not tests themselves; they contain utility functions used
by other tests. According to Documentation/dev-tools/kselftest.rst, such
files should be listed in TEST_FILES. Move those utility scripts to
TEST_FILES.

Fixes: 1751eb42ddb5 ("selftests: net: use TEST_PROGS_EXTENDED")
Fixes: 25ae948b4478 ("selftests/net: add lib.sh")
Fixes: b99ac1841147 ("kselftests/net: add missed setup_loopback.sh/setup_veth.sh to Makefile")
Fixes: f5173fe3e13b ("selftests: net: included needed helper in the install targets")
Suggested-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Link: https://lore.kernel.org/r/20240131140848.360618-5-bpoirier@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Benjamin Poirier and committed by
Jakub Kicinski
06efafd8 9d851dd4

+2 -3
+2 -3
tools/testing/selftests/net/Makefile
··· 53 53 TEST_PROGS += ip_local_port_range.sh 54 54 TEST_PROGS += rps_default_mask.sh 55 55 TEST_PROGS += big_tcp.sh 56 - TEST_PROGS_EXTENDED := in_netns.sh setup_loopback.sh setup_veth.sh 57 - TEST_PROGS_EXTENDED += toeplitz_client.sh toeplitz.sh lib.sh 58 - TEST_PROGS_EXTENDED += net_helper.sh 56 + TEST_PROGS_EXTENDED := toeplitz_client.sh toeplitz.sh 59 57 TEST_GEN_FILES = socket nettest 60 58 TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy reuseport_addr_any 61 59 TEST_GEN_FILES += tcp_mmap tcp_inq psock_snd txring_overwrite ··· 95 97 TEST_PROGS += vlan_hw_filter.sh 96 98 97 99 TEST_FILES := settings 100 + TEST_FILES += in_netns.sh lib.sh net_helper.sh setup_loopback.sh setup_veth.sh 98 101 99 102 include ../lib.mk 100 103