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
pooka
937f490267
retain pr number in comment
2010-08-04 14:28:28 +00:00
pooka
d53b948607
fixed in kern_descrip.c:1.204
2010-08-04 14:26:18 +00:00
joerg
21847f857f
Simplify.
2010-08-04 13:56:10 +00:00
joerg
b6fbda43e7
TESTSBASE is provided by bsd.own.mk now.
2010-08-04 13:52:23 +00:00
pooka
fe16bec2c9
Update test program to deal with uuencoded golden data.
...
XXX: is it not possible to use a pipeline in atf_check?
2010-08-04 13:49:48 +00:00
pooka
c6145c7409
Actually, some nagging voice in my head tells me that all binary files
...
in the repo should be uuencoded, so uuencode the golden audio output.
2010-08-04 13:41:03 +00:00
pooka
f0a81636b4
Add test of pad(4): stuff some audio into /dev/audio, read it from
...
/dev/pad. Test that we got sensible output by comparing against
a previous audibly good result.
This exercises auconv, audio and pad.
2010-08-04 13:15:15 +00:00
drochner
55e1e4c9f3
.PARSEDIR doesn't work. at least not for me. Use .CURDIR instead
...
which makes a build with objdir succeed.
2010-08-03 17:24:45 +00:00
pooka
a8c7d81755
test case for PR kern/43694
2010-08-02 10:29:48 +00:00
pooka
1a22a69ce5
the old thread which does not return not returning a value
...
undetectable to all but the sh3 compiler trick
2010-08-02 09:44:23 +00:00
jmmv
2597405114
Merge the sort tests from regress/ into the existing atfified sort tests.
...
While doing this put the sort tests into a separate directory to follow
the convention of tests/util/.
2010-08-01 16:42:58 +00:00
pooka
5656c31054
* apparently operations can also fail with EIO and EOPNOTSUPP while
...
mountd hup is in progress. strange, since I can't remember seeing
those a few days ago when i ran this quite a lot. anyway, don't
make those errnos fatal failures.
* also in the "apparently" sector, although this test fails 100%
reliably on my development host, it does not always trigger in the
anita run. so apply the current "race condition test" idiom
2010-08-01 15:38:27 +00:00
mlelstv
5a5f088539
The erroneous error codes described in kern/43616 have been fixed.
2010-08-01 14:50:54 +00:00
pooka
aec11d355a
nfs now has tests in it, so need to convert from SUBDIR to
...
TESTS_SUBDIR. Once again I failed to see that one coming.
2010-08-01 08:32:17 +00:00
pooka
9cf29ab3ea
Fuzztest puffs mount. There are n different levels of testing:
...
each one pours more and more sane garbage into the args to that
the mount progresses further and further. Level 8 (at least when
writing this comment) should be the one where mounting actually
succeeds.
Our metric of success is crash / no crash.
2010-07-31 17:11:45 +00:00
pooka
9749b7715b
Revert macroization, as the default mountpath doesn't match the
...
default export path.
2010-07-30 21:10:44 +00:00
pooka
272fb16e97
Fold the puffs private and vfs tests mount/unmount routines together.
...
To achieve this, add a file system private parameter to the newfs
method (which will obviously not be used by vfs tests).
njoly ok
2010-07-30 16:15:05 +00:00
pooka
89211c7274
Wait for child (rumpnfsd) to die before declaring unmount successful.
...
(yes, should be in delfs, but delfs doesn't work due to the cleanup hassle)
2010-07-30 10:23:26 +00:00
pooka
4f870da128
whitespace
2010-07-29 14:50:32 +00:00
pooka
a963742ef4
Include & use lfs megamaid.
2010-07-29 14:47:44 +00:00
pooka
34eddb8c10
Rename xfs.c to fstest_xfs.c to avoid collisions with other
...
source files with the name xfs.c
ok njoly
2010-07-29 14:15:46 +00:00