Commit Graph

89 Commits

Author SHA1 Message Date
christos
c54cb81102 Don't play with "../.." in includes for h_macros.h; deal with it centrally.
Minor fixes.
2017-01-13 21:30:39 +00:00
dholland
796a8727a3 Remove rubbish. 2015-08-30 18:27:26 +00:00
dholland
aeaad94cd5 Fix glaringly wrong indent. 2015-08-29 19:19:43 +00:00
riastradh
1674867715 zfs tests don't actually need privileges. 2015-03-24 23:22:47 +00:00
njoly
db479b4209 Retrict rumpfs to the provided size, like other filesystems. 2014-03-16 10:28:03 +00:00
joerg
5c4c6caf71 Make the abs() use check non-fatal for a bogus use in the LFS cleanerd. 2014-03-04 21:06:47 +00:00
pooka
2e16209595 Remove what looks like an outdated assert (there was something very sneaky
about this code, but my memory is fading ...)
2013-09-09 19:47:38 +00:00
reinoud
61c2992d1e Use the new extension to newfs_udf to generate a decent image for rump to work
on instead of an FFS(!) version.
2013-07-02 15:00:55 +00:00
martin
5e7b1b08fc Initialize mount args version info.
Add comment about a bogusly used "newfs" where "newfs_udf" is meant.
2013-06-30 15:42:43 +00:00
martin
05df297d98 Fix copy & pasto, notice by Nicolas Joly, one step closer to solving
PR kern/47974.
2013-06-30 15:05:49 +00:00
reinoud
591c440aa2 Add UDF as one of the filesytems to test. Might help understand why rump is
misbehaving on it.
2013-06-26 19:29:24 +00:00
jmmv
c2e8322972 Mark the zfs tests as requiring root.
This is wrong.  The zfs tests already use rump so they should not require
root.  However, I've already spent much more time than I wanted trying to
figure out why that's the case without much luck.  If you can find why,
just remove this hack.
2013-03-16 05:24:59 +00:00
christos
28c9d06150 Highly uncool to stash a partial copy of the ti-rpc code here. 2013-03-05 19:58:33 +00:00
christos
d614974138 use the proper fd_set.
XXX: Instead of making a copy of the libc rpc files here we should re-use the
files from libc, and use macros to provide the extra functionality needed here.
SoC project?
2013-03-05 16:54:08 +00:00
christos
3af68658a0 catch up with libc. 2013-03-05 05:39:54 +00:00
hannken
2242432b52 Test taking a snapshot from a stressed file system.
Checks snapshot meta data only with fsck.

OK: Antti Kantee <pooka@netbsd.org>
2013-02-06 09:05:01 +00:00
pooka
ebca36f90a Hook ZFS tests to MKZFS instead of a homegrown variable. 2012-08-31 14:46:53 +00:00
pooka
88392d44db Add a vfstest zfs attachment. This is a compile-time option,
default off, due the large numbers of failing tests (some of them
look like quite trivial failures).
2012-08-20 16:37:35 +00:00
riastradh
57dd555999 Fix ffs_fstest_delfs's error branch for rump_pub_etfs_remove.
rump_pub_etfs_remove returns an error code, rather than setting errno
and returning -1.
2012-08-05 02:03:05 +00:00
njoly
346de04ed8 Initialise permissions mask to a sensible value (0755).
While here convert leading spaces to tabs.
2012-03-26 15:10:26 +00:00
uch
154297fd6a add ATF tests for v7fs. patch by njoly@. thank you. 2011-08-11 10:52:12 +00:00
mrg
8f5647d330 apply some -fno-strict-aliasing
XXX -- someone please fix this properly.
2011-06-29 02:36:13 +00:00
christos
01c7e2ef5b ggr, how many of those I will need to fix. Fallout from the bogus inclusion
of <signal.h> in rump_syscallargs.h.
2011-06-26 13:06:00 +00:00
jmmv
9a17a325dd Remove unnecessary (and broken) cleanup routines.
The cleanup routines were being used to kill the rump process and to delete
the temporary image file.  These are things automatically done by atf-run,
but it looks like this code was added here to workaround a previous bug in
the atf-run code.

Note that, in the existing form, the cleanup routines segfault (haven't
spent the time to track down why).  atf-run does not care about this
(although it should), buy Kyua does.

As a side effect, this has a teeny-tiny performance speedup in the execution
of the tests including this file.

OKed by njoly@.
2011-03-22 16:50:16 +00:00
pooka
f8a62255a4 Put p2k_ffs back there -- i can't repeat any problems in my qemu/anita
runs.
2011-03-05 20:56:28 +00:00
pooka
ab076a3e59 g/c use of unused variable too 2011-02-28 21:08:46 +00:00
pooka
cb7e71e280 g/c unused variable 2011-02-28 21:08:13 +00:00
pooka
d7421024b5 bump nfdsargv[] size belatedly (and add a few extra for needs of future bugs) 2011-02-28 21:03:15 +00:00
bouyer
c6bd32e710 Test the right fd after rump_sys_open(). 2011-02-12 18:13:46 +00:00
njoly
96506c0e2a Do initialise allocated file system args structures for puffs and nfs
(fix some puffs tests failures with MALLOC_OPTIONS=J).
While here, detect and report args allocation failure.

ok from pooka.
2011-02-10 16:35:01 +00:00
pooka
e05c64d657 wrap system() in SIG_DFL so that child-bearing fs tests (puffs,
nfs) don't go cuckoo when the process executed by system() takes a
backstage left.
2011-01-13 12:55:19 +00:00
pooka
dac028c1ff Apparently the atf in the qemu runs doesn't like p2k_ffs and hangs
completely.  Remove it for until I have a chance to debug what's
going on.
2011-01-07 19:54:48 +00:00
pooka
4ba41bccb2 Adjust atf_check_type() to make it work again.
Do we need tests for the tests? ;)
2011-01-07 12:16:17 +00:00
pooka
71074032ea Set an extra xvar indicating MOUNT_FOO 2011-01-07 12:00:34 +00:00
pooka
604e46b650 antipasto 2011-01-07 11:58:21 +00:00
pooka
c63717e4a5 add another fstype for ffs -o log 2011-01-07 11:52:59 +00:00
pooka
1c9b2b7d1e Don't panic if "unnecessary" dir already exists.
(helpful when running the test without atf-run)
2011-01-07 11:50:37 +00:00
pooka
dbc0117ffb adjust another place where X-fs.type is set 2011-01-07 11:41:40 +00:00
pooka
6939ec24b6 Use our internal name instead of MOUNT_FOO to identify file system
since otherwise we now run into dupes (e.g. nfs and nfsro, puffs
and p2k_ffs).
2011-01-07 11:36:27 +00:00
pooka
764f692eba Add a puffs-p2k-ffs file system type to automated tests. Inspired
by the file handle problem in p2k.
2011-01-07 10:45:45 +00:00
pooka
1b60b72463 Introduce r/o tests. They do two mounts: the first one is r/w and
runs a generator which primes the fs.  The second one is r/o and
does the actual testing.  Also, introduce a nfsro fstype which does
a clientside r/w mount for a r/o server export.

requested by yamt

(one nfsro test currently fails with EROFS vs. EACCES.  Hopefully
someone else can debate the correct errno)
2010-12-31 18:16:41 +00:00
pooka
02c3d76e8b Sprinkle some KNF. No functional change. 2010-12-31 18:12:51 +00:00
pooka
9dec851430 Configure two network addresses for the nfs server. One exports
/myexport r/w to the client in the same subnet and the other one
exports /myexport r/o to the client in the same subnet.
2010-12-31 18:11:27 +00:00
yamt
9b72a3c9c6 don't assume atomic read/write on socketpair. puffs_kargs at least is
too large to assume atomic read/write.  this makes some tests including
fs/puffs/t_basic pass on my environment.
2010-12-29 22:56:59 +00:00
pooka
e60986a223 Add rumpfs to list of file systems to be autotested. 2010-11-11 17:39:29 +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
pooka
dd96c7dab8 Make the shovel threads resilient to file server exit. 2010-11-01 16:27:07 +00:00
pgoyette
4b71a48296 Fix format strings so it builds on amd64 2010-10-31 22:33:16 +00:00
pooka
bc79809067 Since rump implicit threads now bind to proc1 instead of proc0, we
need our shovel threads bound to proc1 instead of proc0 in order
to have access to the same set of descriptors as the implicit thread
which opens the fd in the rump kernel.

Also, sprinkle some printfs and make failure more dramatic.

fixes the puffs tests.  pointed out by pgoyette.
2010-10-31 22:05:35 +00:00
he
16b74f200d Do symbol renaming for these bits as well, so that we don't get
link-time errors caused by conflicts with normal user-space libraries
when we link statically.

The tests still pass for i386 after this set of changes, and this now
builds for sun2 (after a few more changes).
2010-09-23 09:38:14 +00:00