Commit Graph

51 Commits

Author SHA1 Message Date
pooka 0714e24da4 fix !USE_ATF 2010-05-01 10:46:29 +00:00
pooka ebcc5a9913 fix !USE_ATF case 2010-05-01 10:43:31 +00:00
pooka c4e2577190 Undo infamous "mad \"scientist\"" experiment. There is no need
for complicated application frobbing to get a kernel module loaded
into rump -- it will be loaded from the host automatically now.
2010-04-26 23:47:25 +00:00
pooka 27b6b96670 Add the typical #ifdef USE_ATF stuff so I can debug the test if it
goes wrong.
2010-04-16 14:05:32 +00:00
pooka 994e33429b Build & install msdosfs snapshot test and deal with the happy happy
joy joy setlistdist etcetc. stuff.
2010-04-13 10:27:52 +00:00
pooka 33304497d7 Add msdosfs snapshot test. This one just slightly different from
the ffs test because msdosfs doesn't support VFS_SNAPSHOT, only
VFS_SUSPEND, i.e. we need external storage for the snapshot instead
of internal storage.
2010-04-13 10:21:47 +00:00
pooka 0d66aa2889 Split snapshot test into fs-independent backend and fs-specific frontend.
I really wish all our fs tests were like this (in principle, that
is.  I'm not talking about this hacky implementation).  I've been
wishing this for quite a few years now.  Seems like my wishes don't
come true.
2010-04-13 10:19:25 +00:00
pooka a9ac6f044d move check next to operation 2010-04-12 23:15:24 +00:00
pooka 5af2edd9e6 test for the very basic snapshot features 2010-04-12 22:58:53 +00:00
pooka 344e2f2f16 Following nullfs, rename rumpfs_umapfs to rumpfs_umap to make the
basename the same as the kernel module (this too was in-tree only
for a little over a week with the old name).
2010-04-11 05:45:57 +00:00
pooka b764352d60 Rename librumpfs_nullfs to librumpfs_null to make the basename the
same as with the kernel module (and hence MOUNT_NULL).

I added the old name to the obsolete list, but given that it was
in-tree for only a bit over a week, I'll remove the entries in a
few weeks.
2010-04-10 21:32:59 +00:00
pooka 986be8ce69 Add some basic tests for kernfs (getdents & changing hostname).
Per a "mad \"scientist\"" experiment, on i386 load kernfs support
from the installed kernel module instead of linking the driver in.
2010-03-31 19:14:30 +00:00
njoly 055c56a77b Use tp-glob keys when requesting for test pattern. 2010-03-31 18:40:26 +00:00
njoly d7b0a6276c The Atffile tp/tp-glob keys does not allow more than one word. Put new
union value on its own line.
2010-03-31 18:37:06 +00:00
pooka 08910e9e3d anti-pasto 2010-03-30 01:40:29 +00:00
pooka afe21a63b7 Add basic test for umapfs functionality.
XXX: the reverse mapping case (last subsubtest in t_basic) does
not make any sense, but apparently that how umapfs works.  I'm not
familiar enough with the code to determine if this is a wanted
feature or a pure and simple bug.
2010-03-30 01:05:28 +00:00
pooka d32fe93431 Basic test for nullfs, which just checks that the two views act
somewhat sensibly.
2010-03-30 01:02:47 +00:00
pooka 9e4e4976ad Add basic union test. 2010-03-29 18:19:19 +00:00
pooka b501712ab5 regression test for fifos on ffs
XXX: same test apart for mount/unmount could be used on other
fifo-supporting file systems (r/w support required, though).
2010-03-29 13:26:32 +00:00
mlelstv 10019347da filesystems now use getdisksize() which is in librumpdev_disk. 2010-01-31 14:30:22 +00:00
pooka bf3992af18 Adjust names of external rump control interfaces to match the
new rump_pub namespace.
2009-10-14 18:22:50 +00:00
pooka 36c33536d3 Set timeout to 20 because for some reason this test hangs in qemu.
(Well, it *still* hangs even after the timeout has passed, but at
least there's multiple problems to debug now)
2009-09-17 13:12:51 +00:00
pooka f0190dc27d rump_fakeblk -> rump_etfs 2009-08-03 14:25:24 +00:00
pooka d5ac376c40 Mount test fs onto /mp instead of /. This way it can be unmounted
and we can detect vnode reference leaks.
2009-05-03 12:10:00 +00:00
pooka 45ef580f17 Merge librumpfs_ufs into librumpfs_ffs. This reflects what happened
with the ffs kernel module and follows the trend of retiring ufs.
It also allows to get rid of a special case kludge in runtime module
loading, since ufs was not really a module.  librumpfs_ufs is now
obsoleted and ffs consumers should be linked solely against
librumpfs_ffs.
2009-05-02 01:15:52 +00:00
pooka 296ba25baa * register fakeblk
* fix error message
2009-04-29 15:46:01 +00:00
pooka 067a8b527b Use rump_sys_mount() instead of ukfs_mount(). Just a few more
steps and we can have a switch for if we want to run tests against
a rump kernel or a real kernel.
2009-04-26 15:15:38 +00:00
pooka 95ab63fa91 WARNS=4 2009-04-14 10:20:22 +00:00
pooka 3df59b06ac Add atf_tc_fail_errno(), which appends strerror(errno) to the
message string.  Adding it to h_macros suggested by jmmv
2009-04-14 10:19:38 +00:00
pooka 1b5f62901e Hmm, this case was for MNT_LOG so enable it. No wonder I couldn't
repeat the problem with the patch reverted.  regression test
regression.
2009-04-08 12:29:05 +00:00
pooka 565dd9ed11 descend into ffs 2009-04-08 12:09:04 +00:00
pooka a56fe8c09f regression test for kern/40948 2009-04-08 12:08:17 +00:00
pooka f698904d75 * convert to KNF
* pass WARNS
2009-04-08 09:11:34 +00:00
pooka d08d606875 atf_tc_fail() instead of err() 2009-04-08 09:05:16 +00:00
pooka f7bf33df40 make test duration bound by time instead of by number of rounds 2009-04-08 08:57:24 +00:00
pooka 163d880b1a add regression test for kern/41128 2009-04-07 20:51:46 +00:00
jmmv 454557d79e Adjust tests to work with the new API in ATF 0.6. 2009-01-19 07:15:46 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
jmmv d5094734ca Add tests for rillig@'s recent fix to mount_tmpfs: ensure that error messages
do not mention the source path, which is unused.
2008-02-13 14:58:42 +00:00
jmmv 5166760e85 Re-add the NetBSD CVS Id tag to the header. It just had to be quoted to
be accepted by the parser; i.e. no bug in the code :-)

Note to self: do not try to "fix" stuff the last minute before going to
sleep.
2007-12-30 09:13:32 +00:00
jmmv ef8f5fcf1e Copy the host key into the work directory and tell the server to use this
instead of the source file, because we need to set strict permissions on it.
Otherwise sshd refuses to start.

Note that we cannot set the permissions of the installed ssh_config_key file
to 400 because unprivileged users could then be unable to run the tests.
2007-12-29 23:07:17 +00:00
jmmv 9644efc887 Use proper specification for a glob pattern. 2007-12-29 23:03:10 +00:00
jmmv 24b05c38e9 Back out the change to introduce the X-NetBSD-Id header entry. For some
reason the parser does not accept its contents...  You know, one should
always test even trivial changes!

Will review this in more depth tomorrow to find the real root cause of the
problem and rule out a fix for ATF.
2007-12-29 23:02:51 +00:00
jmmv 92f6ea962c Properly capture the output of the SSH server. Its -e flag is supposed to
be used alongside -D, but as this was not documented I thought it was a bug
and "fixed" -e's behavior locally (so I got the correct output before, but
nobody else).

Also, fix a race condition that could cause the SSH server to not be killed
if the pid file was not written before the kill, which might happen on very
fast machines.  There still may be a problem when trying to do the connection
if the server has not yet finished initialization...
2007-12-28 08:57:42 +00:00
jmmv c14077091f Install the data files. 2007-12-26 22:33:54 +00:00
jmmv 4178bab5b6 Add the NetBSD Id tag to the Atffiles. Issue raised by pooka@ a while ago. 2007-12-26 21:04:47 +00:00
jmmv c3572c6033 Enable the puffs tests. 2007-12-26 20:50:31 +00:00
jmmv 255c0c3501 Beleatedly add some regression tests for a couple of problems I found in
psshfs and that pooka@ already fixed a while ago.  These were rather tricky
to get working.
2007-12-26 20:50:06 +00:00
jmmv 80c834ed18 Explicitly define TESTSDIR, because the automatic deduction of its value
breaks the build if some component of NETBSDSRCDIR is a symlink.  Reported
by drochner@.
2007-11-21 15:39:33 +00:00