mirror_ubuntu-kernels/tools/testing/selftests/net
Petr Machata b69c99463d selftests: net: fib_nexthops: Wait before checking reported idle time
The purpose of this test is to verify that after a short activity passes,
the reported time is reasonable: not zero (which could be reported by
mistake), and not something outrageous (which would be indicative of an
issue in used units).

However, the idle time is reported in units of clock_t, or hundredths of
second. If the initial sequence of commands is very quick, it is possible
that the idle time is reported as just flat-out zero. When this test was
recently enabled in our nightly regression, we started seeing spurious
failures for exactly this reason.

Therefore buffer the delay leading up to the test with a sleep, to make
sure there is no legitimate way of reporting 0.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-09-27 12:15:36 +01:00
..
af_unix selftests: net: af_unix: Fix makefile to use TEST_GEN_PROGS 2021-09-19 13:22:18 +01:00
forwarding selftests/net: Use kselftest skip code for skipped tests 2021-08-24 16:49:09 -07:00
mptcp selftests: mptcp: add mptcp getsockopt test cases 2021-09-18 14:20:01 +01:00
.gitignore tools/testing: add a selftest for SO_NETNS_COOKIE 2021-06-24 11:13:05 -07:00
altnames.sh selftest: net: fix typo in altname test 2021-09-12 10:48:26 +01:00
bareudp.sh selftests: set conf.all.rp_filter=0 in bareudp.sh 2020-11-12 16:14:38 -08:00
config selftests: net: Test for the IOAM insertion with IPv6 2021-07-21 08:16:11 -07:00
devlink_port_split.py selftests: net: devlink_port_split: check devlink returned an element before dereferencing it 2021-06-28 16:14:38 -07:00
drop_monitor_tests.sh selftests: net: Add drop monitor test 2020-09-30 18:01:26 -07:00
fcnal-test.sh selftests/net: Use kselftest skip code for skipped tests 2021-08-24 16:49:09 -07:00
fib_nexthop_multiprefix.sh selftests: fib_nexthop_multiprefix: fix cleanup() netns deletion 2020-07-14 15:06:12 -07:00
fib_nexthops.sh selftests: net: fib_nexthops: Wait before checking reported idle time 2021-09-27 12:15:36 +01:00
fib_rule_tests.sh selftests/net: Use kselftest skip code for skipped tests 2021-08-24 16:49:09 -07:00
fib_tests.sh ipv4: Fix device used for dst_alloc with local routes 2021-06-14 12:30:53 -07:00
fib-onlink-tests.sh
fin_ack_lat.c selftests: net: Add FIN_ACK processing order related latency spike test 2020-02-02 13:33:21 -08:00
fin_ack_lat.sh selftests: net: Add FIN_ACK processing order related latency spike test 2020-02-02 13:33:21 -08:00
gre_gso.sh selftests: add simple GSO GRE test 2021-09-02 11:33:28 +01:00
gro.c selftests/net: GRO coalesce test 2021-08-05 13:14:09 +01:00
gro.sh selftests/net: allow GRO coalesce test on veth 2021-08-26 12:03:49 +01:00
hwtstamp_config.c selftests: move timestamping selftests to net folder 2020-03-29 21:48:30 -07:00
icmp_redirect.sh selftests: icmp_redirect: IPv6 PMTU info should be cleared after redirect 2021-07-07 13:45:30 -07:00
icmp.sh selftests/net: Add icmp.sh for testing ICMP dummy address responses 2021-06-18 12:13:24 -07:00
in_netns.sh
ioam6_parser.c selftests: net: improved IOAM tests 2021-08-17 10:50:33 +01:00
ioam6.sh selftests: net: improved IOAM tests 2021-08-17 10:50:33 +01:00
ip6_gre_headroom.sh
ip_defrag.c selftests: net: ip_defrag: ignore EPERM 2020-06-02 15:54:20 -07:00
ip_defrag.sh selftests: net: ip_defrag: modprobe missing nf_defrag_ipv6 support 2020-07-17 12:49:18 -07:00
ipsec.c selftests/net/ipsec: Add test for xfrm_spdattr_type_t 2021-07-21 09:53:25 +02:00
ipv6_flowlabel_mgr.c
ipv6_flowlabel.c
ipv6_flowlabel.sh
l2tp.sh
Makefile selftests: add simple GSO GRE test 2021-09-02 11:33:28 +01:00
msg_zerocopy.c selftests/net: relax cpu affinity requirement in msg_zerocopy test 2020-08-05 12:25:35 -07:00
msg_zerocopy.sh
netdevice.sh
nettest.c selftests: net: add ESP-in-UDP PMTU test 2021-07-21 08:50:35 -07:00
pmtu.sh selftests: net: add ESP-in-UDP PMTU test 2021-07-21 08:50:35 -07:00
psock_fanout.c tools/net: Use bitwise instead of arithmetic operator for flags 2021-08-20 14:55:53 +01:00
psock_lib.h
psock_snd.c
psock_snd.sh selftests/net: remove min gso test in packet_snd 2021-08-02 10:34:04 +01:00
psock_tpacket.c
reuseaddr_conflict.c
reuseaddr_ports_exhausted.c selftests/net: fix warnings on reuseaddr_ports_exhausted 2021-03-16 15:01:21 -07:00
reuseaddr_ports_exhausted.sh selftests: net: Add SO_REUSEADDR test to check if 4-tuples are fully utilized. 2020-03-12 12:08:09 -07:00
reuseport_addr_any.c selftests/net: add definition for SOL_DCCP to fix compilation errors for old libc 2020-03-21 20:23:10 -07:00
reuseport_addr_any.sh
reuseport_bpf_cpu.c
reuseport_bpf_numa.c
reuseport_bpf.c
reuseport_dualstack.c
route_localnet.sh
rtnetlink.sh selftests: rtnetlink: load fou module for kci_test_encap_fou() test 2020-10-19 17:55:29 -07:00
run_afpackettests selftests/net: Use kselftest skip code for skipped tests 2021-08-24 16:49:09 -07:00
run_netsocktests
rxtimestamp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-08-02 01:02:12 -07:00
rxtimestamp.sh selftests/net: plug rxtimestamp test into kselftest framework 2020-06-23 20:36:46 -07:00
settings selftests/net: bump timeout to 5 minutes 2021-04-23 14:08:58 -07:00
setup_loopback.sh selftests/net: allow GRO coalesce test on veth 2021-08-26 12:03:49 +01:00
setup_veth.sh selftests/net: allow GRO coalesce test on veth 2021-08-26 12:03:49 +01:00
so_netns_cookie.c tools/testing: add a selftest for SO_NETNS_COOKIE 2021-06-24 11:13:05 -07:00
so_txtime.c selftests/net: so_txtime multi-host support 2021-03-31 17:48:21 -07:00
so_txtime.sh selftests/net: so_txtime multi-host support 2021-03-31 17:48:21 -07:00
socket.c
srv6_end_dt4_l3vpn_test.sh selftests/net: Use kselftest skip code for skipped tests 2021-08-24 16:49:09 -07:00
srv6_end_dt6_l3vpn_test.sh selftests/net: Use kselftest skip code for skipped tests 2021-08-24 16:49:09 -07:00
srv6_end_dt46_l3vpn_test.sh selftests/net: Use kselftest skip code for skipped tests 2021-08-24 16:49:09 -07:00
tcp_fastopen_backup_key.c
tcp_fastopen_backup_key.sh
tcp_inq.c
tcp_mmap.c selftests: net: tcp_mmap: Use huge pages in receive path 2020-08-20 16:14:53 -07:00
test_blackhole_dev.sh
test_bpf.sh
test_vxlan_fdb_changelink.sh
test_vxlan_under_vrf.sh selftests: test_vxlan_under_vrf: mute unnecessary error message 2020-12-14 17:38:12 -08:00
timestamping.c selftests/net: timestamping: support binding PHC 2021-07-01 13:08:18 -07:00
tls.c linux-kselftest-next-5.14-rc1 2021-07-02 13:09:15 -07:00
toeplitz_client.sh selftests/net: toeplitz test 2021-08-05 13:14:09 +01:00
toeplitz.c selftests/net: toeplitz test 2021-08-05 13:14:09 +01:00
toeplitz.sh selftests/net: toeplitz test 2021-08-05 13:14:09 +01:00
traceroute.sh selftest: net: add some traceroute tests 2019-11-06 17:35:49 -08:00
txring_overwrite.c
txtimestamp.c selftests: txtimestamp: fix compilation issue 2021-02-04 20:22:30 -08:00
txtimestamp.sh selftest: txtimestamp: fix net ns entry logic 2020-07-21 16:11:07 -07:00
udpgro_bench.sh
udpgro_fwd.sh selftests: net: use bash to run udpgro_fwd test case 2021-06-16 12:56:10 -07:00
udpgro.sh selftests: fix the return value for UDP GRO test 2021-01-05 16:59:21 -08:00
udpgso_bench_rx.c selftests: fix poll error in udpgro.sh 2020-12-10 13:22:19 -08:00
udpgso_bench_tx.c selftests: net: Fix printf format warnings on arm 2019-11-07 14:54:08 -07:00
udpgso_bench.sh
udpgso.c linux-kselftest-5.5-rc1-fixes 2019-11-25 14:58:09 -08:00
udpgso.sh
unicast_extensions.sh selftests/net: Use kselftest skip code for skipped tests 2021-08-24 16:49:09 -07:00
veth.sh selftests: net: veth: add tests for set_channel 2021-07-20 06:11:18 -07:00
vrf_route_leaking.sh selftests: Add VRF route leaking tests 2020-10-14 17:14:28 -07:00
vrf_strict_mode_test.sh selftests/net: Use kselftest skip code for skipped tests 2021-08-24 16:49:09 -07:00
vrf-xfrm-tests.sh selftests: Add tests for vrf and xfrms 2020-04-22 19:31:40 -07:00
xfrm_policy.sh xfrm: Fix wraparound in xfrm_policy_addr_delta() 2021-01-04 10:35:09 +01:00