NetBSD/tests/net
kre 9fefbad1a9 Make this test somewhat deterministic - far fewer races, and most
of what are left are "race for the bus" type - if we lose, we just
wait for the next one ... slower but still reliable.

There are two exceptions ... when starting more than one rtadvd
(on different routers) we expect to receive an RA from each, but
all that we can check is that we received the (at least) right number
of RAs.  It is possible (though unlikely) that one router sent two
before another sent any, in which case we will not have the data we
expect, and a sub-test will fail.

Second, there is no way to know for sure that we have waited long
enough when we're waiting for data to expire - in systems with
correctly working clocks that actually measure time, this should not
be an issue, if data is due to expire in < 5 seconds, and we wait
5 seconds, and the data is still there, then that indicates a
failure, which should be detected.   Unfortunately with QEMU testing
time just isn't that reliable.  But fortunately, it is generally the
sleep which takes longer, while other timers run correctly, which is
the way that makes us happy...

While here lots of cleanups - everything from white space and
line wrapping, to removing superfluous quotes and adding some
(but probably not enough) that are not (though given the data is
all known here, lack of quotes will rarely hurt.)

Also take note of the fact that current rtadvd *cannot* delete its
pidfile, so waiting for that file to be removed is doomed to failure.
Do things in a way that works, rather than simply resorting to assassination.

Because we do a lot less "sleep and hope it is long enough" and more
"wait until it is observed to happen" the tests generally run in less
elapsed time than before (20% less has been observed.)  But because we
"wait until it is observed to happen" rather than just "sleep and hope
it is long enough" sometimes things take longer (and when that happens,
we no longer fail).  Up to 7% slower (overall) has been observed.
(Observations on an amd64 DomU, no idea yet as to what QEMU might observe.)
2017-11-25 07:58:47 +00:00
..
arp Clean up the arp_rtm subtest... 2017-11-23 06:22:12 +00:00
bpf Add tests for several bpf ioctls 2017-02-09 02:18:13 +00:00
bpfilter Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
bpfjit Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
can Test bind()ing to a non-existent interface. 2017-06-09 08:23:45 +00:00
carp Clean up clunky eval strings 2017-08-03 03:16:26 +00:00
config Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
fdpass
icmp Change the default value of DEBUG of stable tests to false 2017-05-26 01:14:38 +00:00
if Add a test case of ifconfig <if_index> 2017-03-16 09:43:56 +00:00
if_bridge Separate tests for learning table of bridge 2017-03-11 04:24:52 +00:00
if_gif Clean up clunky eval strings 2017-08-03 03:16:26 +00:00
if_l2tp Clean up clunky eval strings 2017-08-03 03:16:26 +00:00
if_loop Add tests for loopback interface 2017-02-28 03:32:11 +00:00
if_pppoe Use the utility functions for rump_server 2017-03-28 01:27:46 +00:00
if_tap Share rump_server start/stop and interface creation/destruction functions 2016-11-25 08:51:16 +00:00
if_tun Accept DEBUG environment variable 2016-11-07 05:25:36 +00:00
if_vlan Since there was already a test to verify that vlan tag 4096 is 2017-11-23 04:59:49 +00:00
in_cksum remove debugging test 2015-10-18 18:27:25 +00:00
ipsec Dedup some checks 2017-11-09 04:51:07 +00:00
mcast Clean up clunky eval strings 2017-08-03 03:16:26 +00:00
mpls Add rumpdev library for config_cfdriver_attach 2016-08-10 07:50:37 +00:00
ndp Make this test somewhat deterministic - far fewer races, and most 2017-11-25 07:58:47 +00:00
net add tests for 4->6 connections. 2017-08-28 10:19:57 +00:00
npf Clean up clunky eval strings 2017-08-03 03:16:26 +00:00
route Add tests of rtcache invalidation 2017-09-20 09:36:20 +00:00
sys
Makefile merge the bouyer-socketcan branch to HEAD. 2017-05-27 21:02:54 +00:00
Makefile.inc Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
net_common.sh Cosmetic changes, NFC intended. 2017-11-24 03:28:49 +00:00