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
pooka
471d3742de
* convert 48k fs image test to FSTEST_CON/DESTRO
...
* make sure hugeblocksize doesn't accidentally succeed
2010-08-09 19:34:59 +00:00
pooka
721949c6da
allow overriding of defaults
2010-08-09 19:32:26 +00:00
pooka
2fc19132b3
Check that mounting a file system with blocksize > MAXPHYS returns an error.
2010-08-09 17:42:26 +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
edcef5fc34
Add test cases to check that sysmon/swwdog will panic and reboot
...
the kernel if left untickled.
Thanks to jmmv for the tip that doing this is possible in atf via
means of fork/wait.
2010-08-06 16:13:26 +00:00
pooka
2bb4b66566
remove leftover debug printf
2010-08-05 16:47:59 +00:00
joerg
4dfb749204
Rename h_initfini3 dso now that it is a simple module.
2010-08-04 14:59:39 +00:00
pooka
327d3aa746
need to update install filename too
2010-08-04 14:43:14 +00:00