kselftests/net: add missed tests to Makefile
Subsystems (3)
v2 cover kselftests/net: add missed tests to Makefile
When generating the selftest to another folder, some tests are missing as they are not added in Makefile. e.g.
make -C tools/testing/selftests/ install \
TARGETS="net" INSTALL_PATH=/tmp/kselftestsThese pathset add them separately to make the Fixes tags less. It would also make the stable tree or downstream backport easier.
If you think there is no need to add the Fixes tag for this minor issue. I can repost a new patch and merge all the fixes together.
Thanks
v2: move toeplitz.sh/toeplitz_client.sh under TEST_PROGS_EXTENDED.
Hangbin Liu (5):
kselftests/net: add missed icmp.sh test to Makefile kselftests/net: add missed setup_loopback.sh/setup_veth.sh to Makefile kselftests/net: add missed SRv6 tests
kselftests/net: add missed vrf_strict_mode_test.sh test to Makefile kselftests/net: add missed toeplitz.sh/toeplitz_client.sh to Makefile
tools/testing/selftests/net/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Signature · 1 line
2.31.1
PATCH v2 1/5 kselftests/net: add missed icmp.sh test to Makefile
When generating the selftests to another folder, the icmp.sh test will miss as it is not in Makefile, e.g.
make -C tools/testing/selftests/ install \
TARGETS="net" INSTALL_PATH=/tmp/kselftests--- tools/testing/selftests/net/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/Makefile +1 -1
@@ -12,7 +12,7 @@ TEST_PROGS += udpgro_bench.sh udpgro.sh test_vxlan_under_vrf.sh reuseport_addr_a TEST_PROGS += test_vxlan_fdb_changelink.sh so_txtime.sh ipv6_flowlabel.sh TEST_PROGS += tcp_fastopen_backup_key.sh fcnal-test.sh l2tp.sh traceroute.sh TEST_PROGS += fin_ack_lat.sh fib_nexthop_multiprefix.sh fib_nexthops.sh -TEST_PROGS += altnames.sh icmp_redirect.sh ip6_gre_headroom.sh +TEST_PROGS += altnames.sh icmp.sh icmp_redirect.sh ip6_gre_headroom.sh TEST_PROGS += route_localnet.sh TEST_PROGS += reuseaddr_ports_exhausted.sh TEST_PROGS += txtimestamp.sh
Signature · 1 line
2.31.1
PATCH v2 2/5 kselftests/net: add missed setup_loopback.sh/setup_veth.sh to Makefile
In reply to Hangbin LiuWhen generating the selftests to another folder, the include file setup_loopback.sh/setup_veth.sh for gro.sh/gre_gro.sh are missing as they are not in Makefile, e.g.
make -C tools/testing/selftests/ install \
TARGETS="net" INSTALL_PATH=/tmp/kselftests--- tools/testing/selftests/net/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/Makefile +1 -1
@@ -28,7 +28,7 @@ TEST_PROGS += veth.sh TEST_PROGS += ioam6.sh TEST_PROGS += gro.sh TEST_PROGS += gre_gso.sh -TEST_PROGS_EXTENDED := in_netns.sh +TEST_PROGS_EXTENDED := in_netns.sh setup_loopback.sh setup_veth.sh TEST_GEN_FILES = socket nettest TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy reuseport_addr_any TEST_GEN_FILES += tcp_mmap tcp_inq psock_snd txring_overwrite
Signature · 1 line
2.31.1
PATCH v2 3/5 kselftests/net: add missed SRv6 tests
In reply to Hangbin LiuWhen generating the selftests to another folder, the SRv6 tests are missing as they are not in Makefile, e.g.
make -C tools/testing/selftests/ install \
TARGETS="net" INSTALL_PATH=/tmp/kselftests--- tools/testing/selftests/net/Makefile | 3 +++ 1 file changed, 3 insertions(+)
tools/testing/selftests/net/Makefile +3 -0
@@ -28,6 +28,9 @@ TEST_PROGS += veth.sh TEST_PROGS += ioam6.sh TEST_PROGS += gro.sh TEST_PROGS += gre_gso.sh +TEST_PROGS += srv6_end_dt46_l3vpn_test.sh +TEST_PROGS += srv6_end_dt4_l3vpn_test.sh +TEST_PROGS += srv6_end_dt6_l3vpn_test.sh TEST_PROGS_EXTENDED := in_netns.sh setup_loopback.sh setup_veth.sh TEST_GEN_FILES = socket nettest TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy reuseport_addr_any
Signature · 1 line
2.31.1
PATCH v2 4/5 kselftests/net: add missed vrf_strict_mode_test.sh test to Makefile
In reply to Hangbin LiuWhen generating the selftests to another folder, the vrf_strict_mode_test.sh test will miss as it is not in Makefile, e.g.
make -C tools/testing/selftests/ install \
TARGETS="net" INSTALL_PATH=/tmp/kselftests--- tools/testing/selftests/net/Makefile | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/net/Makefile +1 -0
@@ -31,6 +31,7 @@ TEST_PROGS += gre_gso.sh TEST_PROGS += srv6_end_dt46_l3vpn_test.sh TEST_PROGS += srv6_end_dt4_l3vpn_test.sh TEST_PROGS += srv6_end_dt6_l3vpn_test.sh +TEST_PROGS += vrf_strict_mode_test.sh TEST_PROGS_EXTENDED := in_netns.sh setup_loopback.sh setup_veth.sh TEST_GEN_FILES = socket nettest TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy reuseport_addr_any
Signature · 1 line
2.31.1
PATCH v2 5/5 kselftests/net: add missed toeplitz.sh/toeplitz_client.sh to Makefile
In reply to Hangbin LiuWhen generating the selftests to another folder, the toeplitz.sh and toeplitz_client.sh are missing as they are not in Makefile, e.g.
make -C tools/testing/selftests/ install \
TARGETS="net" INSTALL_PATH=/tmp/kselftestsMaking them under TEST_PROGS_EXTENDED as they test NIC hardware features and are not intended to be run from kselftests.
---
v2: move the tests under TEST_PROGS_EXTENDED as Willem suggested.
--- tools/testing/selftests/net/Makefile | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/net/Makefile +1 -0
@@ -33,6 +33,7 @@ TEST_PROGS += srv6_end_dt4_l3vpn_test.sh TEST_PROGS += srv6_end_dt6_l3vpn_test.sh TEST_PROGS += vrf_strict_mode_test.sh TEST_PROGS_EXTENDED := in_netns.sh setup_loopback.sh setup_veth.sh +TEST_PROGS_EXTENDED += toeplitz_client.sh toeplitz.sh TEST_GEN_FILES = socket nettest TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy reuseport_addr_any TEST_GEN_FILES += tcp_mmap tcp_inq psock_snd txring_overwrite
Signature · 1 line
2.31.1
Re: [PATCHv2 net 5/5] kselftests/net: add missed toeplitz.sh/toeplitz_client.sh to Makefile
Quoted 4 lines · Hangbin Liu
When generating the selftests to another folder, the
toeplitz.shandtoeplitz_client.share missing as they are not inMakefile, e.g.
Quoted 8 lines
make -C tools/testing/selftests/ install \ TARGETS="net" INSTALL_PATH=/tmp/kselftestsMaking them under
TEST_PROGS_EXTENDEDas they test NIC hardware features and are not intended to be run from kselftests.Fixes 5ebfb4cc3048 ("selftests/net: toeplitz test")Signed-off-by Hangbin Liu <[email protected]>
The same might apply to the icmp and vrf tests? I am not familiar with those.
Re: [PATCHv2 net 5/5] kselftests/net: add missed toeplitz.sh/toeplitz_client.sh to Makefile
Quoted 8 lines · Willem de Bruijn
Quoted 7 lines · Hangbin Liu
When generating the selftests to another folder, the
toeplitz.shandtoeplitz_client.share missing as they are not inMakefile, e.g.make -C tools/testing/selftests/ install \ TARGETS="net" INSTALL_PATH=/tmp/kselftests
Quoted 7 lines
Quoted 5 lines
Making them under
TEST_PROGS_EXTENDEDas they test NIC hardware features and are not intended to be run from kselftests.Fixes 5ebfb4cc3048 ("selftests/net: toeplitz test")Signed-off-by Hangbin Liu <[email protected]>Reviewed-by Willem de Bruijn <[email protected]>
Thanks for the review.
Quoted 2 lines
The same might apply to the icmp and vrf tests? I am not familiar with those.
icmp and vrf are running for selftests. They should be added to TEST_PROGS.
Thanks
Hangbin
Jakub Kicinski
maintainerQuoted 11 lines · On Tue, 2 Nov 2021 09:36:31 +0800 Hangbin Liu wrote:
When generating the selftest to another folder, some tests are missing as they are not added in
Makefile. e.g.make -C tools/testing/selftests/ install \ TARGETS="net" INSTALL_PATH=/tmp/kselftestsThese pathset add them separately to make the Fixes tags less. It would also make the stable tree or downstream backport easier.
If you think there is no need to add the Fixes tag for this minor issue. I can repost a new patch and merge all the fixes together.
Thanks! Could you rebase on latest net/master and resend? We just forwarded the net tree for the next merge window.