Commit Graph

53 Commits

Author SHA1 Message Date
pooka
7dce29201f Guess-fix a signed vs. unsigned compiler warning report by pgoyette
(it doesn't trigger in my src working copy for whatever reason).
2011-01-01 20:43:01 +00:00
pooka
4a54a2b61f fill in number of PR kern/44307 2011-01-01 20:30:56 +00:00
pooka
69eba09f50 Check that extending a file grows its size (with and without O_APPEND). 2011-01-01 20:26:22 +00:00
pooka
04cb16e7f3 fill in PR kern/44302 2010-12-31 18:26:25 +00:00
pooka
6574800027 Add some elementary tests for r/o file systems. More in 2011! 2010-12-31 18:20:32 +00:00
pooka
ec85f68cbf Convert skipped tests into proper xfails (a lazy bum is me).
prompted by pgoyette
2010-11-19 17:46:02 +00:00
pooka
88b6bdf19d skip tests which use features which rumpfs does not support
(namely: vop_rename and a file system size limit)
2010-11-11 17:44:44 +00:00
pooka
1a160862e8 use atf interfaces for error reportage 2010-11-11 16:03:55 +00:00
pooka
110455ef9e Create the process we use later in the test. Otherwise cwd doesn't
go right and the test fails because of attempting to create files
in the wrong directory.
2010-11-01 14:04:02 +00:00
he
0549224c7a Reorder the library specifications, so that we don't depend on the
library dependencies recorded in shared libraries, allowing these
to be linked statically as well.
2010-09-23 09:39:14 +00:00
njoly
7601b30df9 s/dirs/symlinks/ in USES_SYMLINKS message. 2010-09-09 11:42:52 +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
pooka
2a47331e63 update to new rump lwp/proc interfaces 2010-09-01 19:41:27 +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
ad209aacd5 Skip the full test for puffs now that we can (yes, atf issue #53) 2010-08-27 08:15:30 +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
26f689f095 Put the workaround for PR kern/43799 into the common nfs unmount routine. 2010-08-26 15:07:16 +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
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
4439733de4 Add test which fills up the file system and expects ENOSPC. 2010-08-17 11:46:16 +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
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
mlelstv
5a5f088539 The erroneous error codes described in kern/43616 have been fixed. 2010-08-01 14:50:54 +00:00
pooka
ee762b35da need to link in nfs client bits 2010-07-26 16:25:19 +00:00
njoly
dccf0d483f Add create and rename testcases to exercize filenames longer than
{NAME_MAX}.
2010-07-26 13:37:48 +00:00
pooka
7d8af8c741 Need to use the ${PRINTOBJDIR} trick for LIBISPRIVATE ... 2010-07-19 16:32:01 +00:00
pooka
370c9ab597 Convert the file system test common routines into a library to
facilitate more complex user-side stuff (like the lfs cleaner and
nfs rpc code), which are non-trivial to do by #include.
2010-07-19 16:09:07 +00:00
pooka
95cbf37326 add missing headers 2010-07-19 16:00:45 +00:00
pooka
55cb844525 convert to newstyle automagic rump compat syscalls 2010-07-19 15:35:38 +00:00
pooka
3023bfbdf9 Some of the msdosfs tests are killed by SSP due to stack limit
being exceeded.  I cannot figure out what is going on by code
reading, nor repeat this either on my desktop or in qemu, so skip
those tests for msdosfs until I can get to the bottom of it.
2010-07-16 19:16:41 +00:00
njoly
139189167c Add some sanity checks for statvfs values. 2010-07-16 17:49:38 +00:00
pooka
978c8480cc skip directory test on sysvbfs 2010-07-16 14:14:27 +00:00
pooka
b7d235f4da Fix typo in comment. comment tested by wizd. 2010-07-16 13:07:23 +00:00
pooka
16c5b04bd3 Fill in PR kern/43626 now that it exists. 2010-07-16 11:46:31 +00:00
pooka
8206e1e692 Do the famous renamerace test using directories. Uh oh, bad idea.
PR coming soon.
2010-07-16 11:33:45 +00:00
pooka
b006a8b60d This test does not always fail for LFS, so apply same kludge as
elsewhere while waiting for atf to grow support for these cases.
2010-07-16 10:50:55 +00:00
pooka
6314ba47ee xfail test on lfs. It goes badaboom faster than you can find your
multipass.  Borrow PR kern/43582 used earlier for rmdirrace, as it
looks pretty much like the same problem.
2010-07-14 21:44:40 +00:00
pooka
3b5bc723d2 Convert "The Original" rename race test from to vfs and retire the
ffs/tmpfs versions.  The only difference is that the origamical
one mounted ffs with MNT_LOG (and therein actually lay the bug).
2010-07-14 21:39:31 +00:00
pooka
ae0b9ccec6 Add an assortment of rename tests. Not complete, but at least tests
something.

This contains the tests for PR kern/43616 and PR kern/43617.
2010-07-14 20:45:48 +00:00
jmmv
9d0b4b5bb8 Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
pooka
2a5fd96f77 Add a few simple basic-level tests for vnodeops. They don't cover
corner-cases, but make sure things at least superficially work
(which they always don't).  More to come...
2010-07-13 18:13:10 +00:00
pooka
60f4d3c583 Link in puffs components for puffs tests. 2010-07-13 18:09:52 +00:00
pooka
e9ce0fb090 make compile on HEAD 2010-07-13 11:53:47 +00:00
pooka
6463b41236 Add basic tests for vfsops.
tfilehandle is a test for PR kern/43605
2010-07-13 11:51:59 +00:00
pooka
5b92553888 Make the FSTYPE macros take tc instead of derivative type "type".
ok njoly
2010-07-13 11:12:19 +00:00
njoly
e4723ab868 Pass down the test case data to the test function, to be able to use
meta-data informations such as srcdir. Requested by pooka.

While here remove fstype argument, and define it as a custom meta-data
(X-fs.type) instead.
2010-07-12 21:05:19 +00:00
njoly
14f486761f Get rid of home made filesystem type strings and use MOUNT_xxx ones
instead. While here provide some macros which do test for a specific
type.
2010-07-09 14:30:53 +00:00
njoly
136ff61968 Pass down the filesystem type to the test funtion to allow fs-specific
callpoints.

Adjust t_rmdirrace by moving LFS test specific code from common/lfs.c,
and do skip sysvbfs which does not support rmdir(2).

from pooka.
2010-07-09 14:16:05 +00:00