Commit Graph

64 Commits

Author SHA1 Message Date
christos
5d5cd00fc9 Fixed reversed/child parent and check the right variable for failure from
gson@
2011-10-04 16:28:26 +00:00
christos
3608a76ca2 Fix the exceed test. 2011-10-03 14:55:23 +00:00
christos
4bea49e915 use ATF_CHECK_MSG instead of err() in atf. 2011-09-30 19:12:35 +00:00
christos
216c13827a add back the raw test and fix typo in the libraries. 2011-09-28 23:11:12 +00:00
christos
2a89e8adcf revert part of previous that was wrong. 2011-09-28 22:19:52 +00:00
christos
e244cf19e9 fix error message 2011-09-28 22:08:12 +00:00
christos
9d31325887 Add a unix socket pathname size limit test. 2011-09-28 16:13:03 +00:00
christos
b0aa149fb2 Add an rfc6056 test. 2011-09-24 18:34:18 +00:00
christos
60e8629a5d fix fallout from including signal.h from rump_syscallargs.h 2011-06-26 13:15:22 +00:00
christos
5c85f3b56b fix fallout from including signal.h in rump_syscallargs.h 2011-06-26 13:13:31 +00:00
jmmv
9b4c1721f3 Instead of doing 'atf_check ... sh -c foo', just do 'atf_check ... -x foo'. 2011-05-14 17:42:28 +00:00
martin
29b0298b15 Minor simplification 2011-04-26 18:42:08 +00:00
martin
ed194e826a Repeat the fragmentation on lo0 test, but with checksum on IFF_LOOPBACK
interfaces enabled.
2011-04-10 11:31:48 +00:00
martin
3d772d583a Remove expected failure, PR has been fixed. 2011-04-09 20:42:12 +00:00
pooka
c87fb89aa0 make netcfg produce sensible results in a non-atf env 2011-02-28 21:21:14 +00:00
kefren
233a38c913 Problem was fixed, don't expect to fail anymore 2011-02-10 07:47:50 +00:00
pooka
5e6b266d97 Time to start adding tests for the routing code to make that part
of the kernel more approachable.

Begin the task with an xfail test for PR kern/40455.
2011-02-08 10:11:28 +00:00
pooka
68e1e43ec7 add test for PR kern/44369 2011-01-11 10:51:45 +00:00
martin
7e35902cb8 Use raw buffer size (not aligned value) to limit packet size 2011-01-05 14:43:40 +00:00
martin
db69e273a2 Fix alignment of sndbuf (sparc64 got a SIGBUS in this test) 2011-01-05 14:08:12 +00:00
christos
00a6054507 PR/44310: Alexander Nasonov: write to /dev/bpf truncates size_t to int 2011-01-03 02:53:15 +00:00
pooka
bc1c80f7e8 Substitute a surgical rump_server configuration for rump_allserver
now that it's possible.  With warm fs cache, the startup time of
the former is 0.01s and the latter 0.1s.  With cold caches it's
0.2s vs 2s.
2010-12-30 16:58:07 +00:00
pooka
5a30a389c0 atf-check => atf_check 2010-12-18 08:35:53 +00:00
pooka
91ed45ab3f use ping -n, since technically we don't have dns 2010-12-14 19:08:22 +00:00
pooka
756d5b62e3 Add another version of the simple ping test, this time written as a
shell script and using rump_server, rump.ifconfig and rump.ping.

XXX: uses rump_allserver for now, though, since i noticed a problem
where the rump kernel syscall vector does not get updated for
dlopen()'d libraries (and hence if you dlopen librumpnet.so, socket()
still gives ENOSYS).  Me be fixink it later.
2010-12-14 11:03:17 +00:00
pooka
1a21107ad9 Add an xfail test for the mbuf leak described in PR kern/44196.
This is yet another example of a simple test which would be much
trickier to execute against the host kernel.  You would either need
to put networking in a complete lockdown, or do some "statistical"
methods where you trigger the bug many many times and attempt to
ascertain a rising trend in mbuf count.  And, of course, the leaked
mbufs don't go away from the host kernel once the test ends.  In
contrast, we *know* that there is no other networking activity in
a rump kernel, so we can execute the operation exactly once, plus
the leaked mbuf "disappears" when the test is done.
2010-12-06 11:32:01 +00:00
pooka
7119e5be14 convert program in PR kern/44054 to an atf test case 2010-11-07 19:53:42 +00:00
jmmv
decf2b5e0f Adjusts tests after import of atf-0.12:
- The use.fs property is gone.
- Mark the tests/fs/t_create:attrs test as broken when using the default
  unprivileged-user:_atf setting.  This probably deserves a fix somehow
  but I'm not sure at this point.
2010-11-07 17:51:16 +00:00
christos
fb0d4bcc11 make that u_int, because it is passed as a socket option. 2010-11-03 21:44:46 +00:00
christos
0f10aa9dce add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)
2010-11-03 16:10:19 +00:00
pooka
cf1237d3ad setsockopt() wants int instead of size_t. Should fix this on LP64. 2010-08-26 17:24:14 +00:00
pooka
b846a386dc Add a delay between startup of pinger and pingee here too.
XXX: there's apparently some race condition which appears to trigger
if a broadcast arp arrives around the same time as the arpwhohas
is sent.  This causes original packet to never be sent by the
arpwhohas requestor.  If this rings a bell to someone, please let
me know.
2010-08-23 10:49:27 +00:00
pooka
217080730a .. put a timeout here just in case the receive does not increase
the counter.
2010-08-18 21:23:48 +00:00
pooka
b3495ecc48 Add a test for the "ping of death". Declare the test a success
when the receiver increases the "ip toolong" stat counter.
2010-08-18 21:22:34 +00:00
pooka
cfe11fb280 send pings in ascending order 2010-08-18 17:49:03 +00:00
pooka
9a3c295ef2 Add a two-way floodping test and a test which sends icmp echos with
various sizes.
2010-08-18 16:39:22 +00:00
pooka
75487b056b add a test which floodpings another host 2010-08-17 15:51:11 +00:00
pooka
5b778e8098 * add interface for virtif creation (in addition to the already present shmif)
* don't leak sockets
2010-08-17 12:04:34 +00:00
pooka
7c8855f1e2 Put some sleeps between forking the hosts. Otherwise a race may
be triggered which appears to cause one host to go berzerk with
sending carp advertisements and ignore ping requests.

I'll get to the bottom of this eventually, but this is a stopgap
to prevent the test from failing, hopefully -- the race doesn't
appear to trigger for me even with 0.1s on a loaded machine, so
0.5s should be better than fine.

(hi jmmv ;)
2010-08-11 13:10:03 +00:00
pooka
1a6a53bd1a Add a most elementary carp test: it forks off two processes,
configures carp in each of them, and after verifying that the shared
address responds to ping it brutally kills the master like a proper
carnivore (none of that ifconfig down sissy vegan nonsense).  Then
the test checks if the backup got its act together by pinging the
shared address and passes verdict.
2010-08-10 21:55:28 +00:00
pooka
a2530e0bfd may be __unused 2010-08-09 15:39:41 +00:00
pooka
96f76684bb test that kernel reponds to ping 2010-08-09 15:08:43 +00:00
pooka
576ad32eba add a simple pingtest 2010-08-09 15:07:51 +00:00
pooka
3c23c993d0 Remove stuff handled by common code now. 2010-07-26 14:10:31 +00:00
pooka
6b62441252 Calculate broadcast IP instead of requiring it as a config parameter. 2010-07-26 14:07:04 +00:00
pooka
e8fbc2f15e necessary headers 2010-07-25 22:28:48 +00:00
pooka
3185d2a443 Add xfail test for kernel diagnostic panic described in PR kern/43664 2010-07-25 21:42:08 +00:00
pooka
772871ea1c make interface/routing configuration a bit more generic 2010-07-25 21:39:20 +00:00
pooka
1d14124dd5 fix routine name in error message 2010-07-18 12:43:22 +00:00
jmmv
9d0b4b5bb8 Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00