linux/tools/testing/selftests/net
Matthieu Baerts 421eea6b41 selftests: mptcp: userspace: fix v4-v6 test in v6.1
The commit 4656d72c1e ("selftests: mptcp: userspace: validate v4-v6 subflows mix")
has been backported to v6.1.8 without any conflicts. But it looks like
it was depending on a previous one:

  commit 1cc94ac1af ("selftests: mptcp: make evts global in userspace_pm")

Without it, the test fails with:

  ./userspace_pm.sh: line 788: : No such file or directory
  # ADD_ADDR4 id:14 10.0.2.1 (ns1) => ns2, reuse port        [FAIL]
  sed: can't read : No such file or directory

This dependence refactors the way the monitoring files are being
created: only once for all the different sub-tests instead of per
sub-test.

It is probably better to avoid backporting the refactoring. That is why
the new sub-test has been adapted to work using the previous way that is
still in place here in v6.1: the monitoring is started at the beginning
of each sub-test and the created file is removed at the end.

Fixes: f59549814a ("selftests: mptcp: userspace: validate v4-v6 subflows mix")
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-22 12:59:45 +01:00
..
af_unix
bpf
forwarding
mptcp selftests: mptcp: userspace: fix v4-v6 test in v6.1 2023-02-22 12:59:45 +01:00
openvswitch
.gitignore
altnames.sh
amt.sh
arp_ndisc_evict_nocarrier.sh
arp_ndisc_untracked_subnets.sh
bareudp.sh
bind_bhash.c
bind_bhash.sh
cmsg_ipv6.sh
cmsg_sender.c
cmsg_so_mark.sh
cmsg_time.sh
config
devlink_port_split.py
drop_monitor_tests.sh
fcnal-test.sh
fib_nexthop_multiprefix.sh
fib_nexthop_nongw.sh
fib_nexthops.sh
fib_rule_tests.sh
fib_tests.sh
fib-onlink-tests.sh
fin_ack_lat.c
fin_ack_lat.sh
gre_gso.sh
gro.c
gro.sh
hwtstamp_config.c
icmp_redirect.sh
icmp.sh
in_netns.sh
io_uring_zerocopy_tx.c
io_uring_zerocopy_tx.sh
ioam6_parser.c
ioam6.sh
ip_defrag.c
ip_defrag.sh
ip6_gre_headroom.sh
ipsec.c
ipv6_flowlabel_mgr.c
ipv6_flowlabel.c
ipv6_flowlabel.sh
l2_tos_ttl_inherit.sh
l2tp.sh
Makefile
msg_zerocopy.c
msg_zerocopy.sh
ndisc_unsolicited_na_test.sh
netdevice.sh
nettest.c
pmtu.sh
psock_fanout.c
psock_lib.h
psock_snd.c
psock_snd.sh
psock_tpacket.c
reuseaddr_conflict.c
reuseaddr_ports_exhausted.c
reuseaddr_ports_exhausted.sh
reuseport_addr_any.c
reuseport_addr_any.sh
reuseport_bpf_cpu.c
reuseport_bpf_numa.c
reuseport_bpf.c
reuseport_dualstack.c
route_localnet.sh
rtnetlink.sh
run_afpackettests
run_netsocktests
rxtimestamp.c
rxtimestamp.sh
settings
setup_loopback.sh
setup_veth.sh
sk_bind_sendto_listen.c
sk_connect_zero_addr.c
so_netns_cookie.c
so_txtime.c
so_txtime.sh
socket.c
srv6_end_dt4_l3vpn_test.sh
srv6_end_dt6_l3vpn_test.sh
srv6_end_dt46_l3vpn_test.sh
srv6_end_next_csid_l3vpn_test.sh
srv6_hencap_red_l3vpn_test.sh
srv6_hl2encap_red_l2vpn_test.sh
stress_reuseport_listen.c
stress_reuseport_listen.sh
tap.c
tcp_fastopen_backup_key.c
tcp_fastopen_backup_key.sh
tcp_inq.c
tcp_mmap.c
test_blackhole_dev.sh
test_bpf.sh
test_ingress_egress_chaining.sh
test_vxlan_fdb_changelink.sh
test_vxlan_under_vrf.sh
test_vxlan_vnifiltering.sh
timestamping.c
tls.c
toeplitz_client.sh
toeplitz.c
toeplitz.sh
traceroute.sh
tun.c
txring_overwrite.c
txtimestamp.c
txtimestamp.sh
udpgro_bench.sh
udpgro_frglist.sh
udpgro_fwd.sh
udpgro.sh
udpgso_bench_rx.c
udpgso_bench_tx.c
udpgso_bench.sh
udpgso.c
udpgso.sh
unicast_extensions.sh
veth.sh
vrf_route_leaking.sh
vrf_strict_mode_test.sh
vrf-xfrm-tests.sh
xfrm_policy.sh