Commit Graph

393 Commits

Author SHA1 Message Date
martin 92474b670c Query the raw partition at runtime 2010-09-11 16:03:41 +00:00
christos 5472a32d66 glue glob tests 2010-09-09 22:25:38 +00:00
njoly 7601b30df9 s/dirs/symlinks/ in USES_SYMLINKS message. 2010-09-09 11:42:52 +00:00
pooka 0e59fd4080 hold object lock across page unbusy 2010-09-09 09:59:48 +00:00
pooka 6a3566f5c8 vm object must be locked during page allocation. 2010-09-08 20:40:24 +00:00
pooka d85e9c34b1 +tc (turns out the bug was elsewhere, but a test is always a test) 2010-09-07 17:09:28 +00:00
pooka 192b53ec54 fill in PR number: kern/43843 2010-09-06 15:27:18 +00:00
pooka b28267edb9 symlink to a zero-len target (and watch tmpfs go kabloom) 2010-09-06 15:21:34 +00:00
christos 758507e1aa Add tests for GLOB_STAR 2010-09-06 14:41:21 +00:00
he 5b0dfc8c63 Re-order libraries so that this links statically as well. 2010-09-02 16:55:15 +00:00
pooka a3acbf5ec9 Actually use the imagename parameter. Also, fail with err instead
of atf_tc_fail since we are not directly under the control of atf.
2010-09-02 15:13:55 +00:00
pooka 5297756997 check that curlwp for an implicit context is NULL 2010-09-02 09:57:34 +00:00
pooka 52e6ad15e6 tests for rump_lwproc 2010-09-01 21:18:14 +00:00
pooka 2a47331e63 update to new rump lwp/proc interfaces 2010-09-01 19:41:27 +00:00
pooka 46d9a8715d Add RZ(), which is like RL() except that it checks against 0 and
uses the return value as the error number instead of errno.
2010-08-31 17:21:14 +00:00
pooka c825a763b1 Make tcount volatile since a signal handler plays with it. 2010-08-30 08:30:17 +00:00
wiz 903fc89bbb Use explanation for GOP_ALLOC in message from version 1.1.
Ok pooka@.
2010-08-28 10:56:11 +00:00
pooka 27e297079d poll the putter fd instead of doing a blocking read. Long story
short:  we don't have to wait for the fs syncer to run for the
close to succeed.
2010-08-27 12:42:21 +00:00
pgoyette c70e410288 Set the cmsg_len and msg_controllen in cmsg_sendfd testcase to match
the usage in the cmsg_sendfd_bounds case.  This test now passes on an
amd64 machine.

Change suggested by and OK'd by pooka@
2010-08-27 10:03:14 +00:00
pooka faf9d0caed tests for builtin modules 2010-08-27 09:56:40 +00:00
pooka ad209aacd5 Skip the full test for puffs now that we can (yes, atf issue #53) 2010-08-27 08:15:30 +00:00
pooka d3df95fde3 Now that atf issue #53 has been fixed, remove the
child-must-dies-before-parent kludge.
2010-08-27 05:34:46 +00:00
pooka 1457068cd6 chdir() once per process is enough, no need to do it for every
thread (and doing so would cause occasional failures when some
thread would cd out of the test mountpoint while another thread
was still running in there).
2010-08-26 18:06:44 +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 26f689f095 Put the workaround for PR kern/43799 into the common nfs unmount routine. 2010-08-26 15:07:16 +00:00
pooka 478209477d include some necessary headers to fix build 2010-08-26 08:19:18 +00:00
pooka 6ec601c384 * fail with errnos
* in case unmount fails, call rump_pub_vfs_mount_print() to print
  mountpoint status and dump active vnodes.
2010-08-25 18:16:06 +00:00
pooka 4541e13321 Start many more threads for the renamerace since it seems to catch
more errors.

Add a sleepkludge to deal with NFS's sillyrename brokenness.
2010-08-25 18:11:20 +00:00
jmmv b283757fe6 Convert the libdes tests to atf. 2010-08-25 16:46:36 +00:00
pooka 5335766609 Test for cache sync noises after disk is ejected.
test case for PR kern/43785
2010-08-24 11:29:45 +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
pgoyette bb793fe2e6 Fix botched update. 2010-08-21 13:57:41 +00:00
pgoyette 60bf661b9d Add a new atf test-case to check that recursive module calls actually work. 2010-08-21 13:21:48 +00:00
pooka 909673cfa9 Start adding some I/O tests. This one does a sparse write to the
second page on a file, then writes the first, and finally checks
it can read something expected.  Adapted the from program supplied
by yamt in PR kern/36429.
2010-08-19 02:36:02 +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 4439733de4 Add test which fills up the file system and expects ENOSPC. 2010-08-17 11:46:16 +00:00
pooka 26529eabd8 Need stdlib.h.
Thanks to Sverre Froyen for pointing this out.
2010-08-16 17:01:43 +00:00
pooka d8a94b7513 Add a test case which tries to fhopen() a file handle filled with
random garbage.
2010-08-16 10:47:16 +00:00
pooka 19a6309ac7 Make random garbage more widely available. 2010-08-16 10:46:19 +00:00
pooka 5e33baaf50 Fill in PR kern/43745 now that it exists.
lfs_tfhremove: Expected failure: fhopen() for removed file succeeds (PR kern/43745): t_vfsops.c:161: Expected true value in rump_sys_fhopen(fhp, fhsize, O_RDONLY) == -1
    msdosfs_tfhremove: Expected failure: fhopen() for removed file succeeds (PR kern/43745): t_vfsops.c:161: Expected true value in rump_sys_fhopen(fhp, fhsize, O_RDONLY) == -1
2010-08-12 09:42:53 +00:00
pooka d66cb1b117 Add test case for fhopenining a removed file. This fails on msdosfs
and lfs and causes a kernel panic on nfs.  I'll fix nfs soon and
file a PR for the other two.

Also panicked ffs a few hours ago, but was fixed by hannken.
Needless to say, this test was inspired by his fix.
2010-08-12 09:34:16 +00:00
pooka 7751445fe7 return correct errno 2010-08-12 09:22:14 +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 7a2fe155ef add comment saying why the other test doesn't use fstest 2010-08-09 19:36:30 +00:00