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
pooka
862a7ebf2c
install to right place. from pgoyette
2010-07-28 19:23:01 +00:00
pooka
6d749c2c28
Add test for service interruption while mountd handles SIGHUP.
...
This is an xfail test for the problem described in PR kern/5844
per highly surreptitious nudge from mrg
2010-07-28 15:24:54 +00:00
pooka
0f9324ee3d
Move nfstestargs to header "because I need them". A more sweeping
...
action would be good here.
2010-07-28 15:16:50 +00:00
pooka
ce798b3d87
Defer definitely-nonreentrant signal handler to thread context.
...
This protects from rump kernel reentry and makes things not
crash && burn.
2010-07-28 15:15:22 +00:00
pooka
0d8d8d2b19
Make sure we are not executed in non-debug mode (which forks).
2010-07-28 15:12:17 +00:00
pooka
1411ba67f8
Don't ignore SIGHUP here since mountd uses it. The mountd signal
...
handler is installed later, so technically this is unnecessary,
but try to be complete.
2010-07-28 15:11:30 +00:00
pooka
5781e02fa3
Add FSTEST_CONSTRUCTOR/FSTEST_DESTRUCTOR which create/mount the
...
file system with default params. Make ATF_FS_APPLY use the
constructor (can't use the destructor due to the (useless) cleanup).
2010-07-28 14:23:02 +00:00
macallan
7a5d0aeabe
initialize a few variables to shut up compiler warnings
2010-07-27 14:04:47 +00:00
pooka
3dd552295f
comment out lp64-offensive line (the syslog() calls are not used currently)
2010-07-26 19:24:35 +00:00
pooka
f64ec08558
Install the exports file too so that the server can find it.
2010-07-26 19:17:37 +00:00
pooka
4c4a775b33
Add for-fun cast ... no, not really. casting is never fun.
...
But now this code builds both on 5.0 and -current.
2010-07-26 18:51:02 +00:00
pooka
13a893ded4
retire unwieldy casts
2010-07-26 18:47:36 +00:00
pooka
2823460ad3
make unsignedness match
2010-07-26 17:53:21 +00:00
pooka
ee762b35da
need to link in nfs client bits
2010-07-26 16:25:19 +00:00
pooka
fd87d4c523
fix TESTSDIR
2010-07-26 16:17:21 +00:00
pooka
82233993ff
Add NFS to the list of file systems exercised by the "vfs" tests.
...
How it works:
NFS tests fork and exec the nfs service from fs/nfs/nfsservice.
The child then:
a) creates a FFS file system
b) mounts it
c) starts rpcbind
d) starts mountd
e) starts nfsd
f) handles requests
The client, as expected, does the standard RPC regotiation and
calls mount(MOUNT_NFS). It then proceeds to execute the test.
An individual test which executes everything described above and
does a few file operations on the NFS mount takes 0.16s wall time
on my laptop from start to finish. This means it is feasible to
run hundreds of tests while still getting results in a timely
fashion.
Like in other networked tests, the two processes are connected via
the rump shmif which uses mmapped files as ethernet busses. The
entire test suite can be executed by an unprivileged account.
As a side effect, these tests exercise also the kernel NFS server
in addition to the kernel NFS client.
While everything is currently targetted at executing the vfs tests,
there is no reason this could not be extended to exercise features
specific to NFS. For example, the server can run through all
exportable file system types, permissions can be tested, etc.
2010-07-26 16:15:49 +00:00
pooka
e0ac41f174
Add libc rpc bits modified to be suitable for testing the nfs
...
server & client.
2010-07-26 15:56:45 +00:00
pooka
25f5a6a3a9
Add NFS service suitable for use in testing.
2010-07-26 15:53:00 +00:00
pooka
522a0d0c47
catch "child died"
2010-07-26 14:53:52 +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
3ccd6a8fda
support pathconf (more or less copypasted from ufs). for njoly's tests.
2010-07-21 06:58:25 +00:00
njoly
898bc4f345
Update ATF_TC_FSADD macro use ATF cleanup function. And call
...
xx_fstest_delfs() from here instead of test body.
2010-07-20 17:44:01 +00:00
pooka
58f45c4ce6
common cannot be a TESTS_SUBDIR, since one of those without a test
...
behind it confuses atf-run. change to SUBDIR as hinted by jmmv.
2010-07-20 15:09:32 +00:00
pooka
7d8af8c741
Need to use the ${PRINTOBJDIR} trick for LIBISPRIVATE ...
2010-07-19 16:32:01 +00:00
pooka
cca4b54ef7
Include h_fsmacros instead of ffs.c and link in test lib.
2010-07-19 16:22:05 +00:00
pooka
1901d7bfe1
* namespace some macros under FSTEST
...
* inline atf_check_tc() since this is a header
2010-07-19 16:21:22 +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
5aa789e743
Check that nobody raced us into the source dir while it was unlocked
...
in preparation for rename.
2010-07-14 21:24:40 +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
pooka
7d034c7a9d
Return correct error values from a bunch of questionable renames.
...
There's no substitute for single-stepping do_sys_rename() into ffs
when trying to figure out what error should come from what layer...
well, at least apart from TNT.
2010-07-14 17:10:14 +00:00
pooka
6a86e782e9
* remove target node from right directory
...
* remove what i guess to be a useless if-clause (although with
file systems you can never be sure)
2010-07-14 16:59:35 +00:00
pooka
28a6875445
check we don't rename onto a non-empty directory
2010-07-14 14:22:15 +00:00
pooka
58d9a55076
prevent rename of source directory under itself
2010-07-14 13:09:52 +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
34de412690
off_t -> uint64_t to hopefully avoid some lp64 signedness whines.
2010-07-13 17:49:24 +00:00
pooka
63ef4b38f6
Run puffs/dtfs as part of the vfs tests.
2010-07-13 16:48:15 +00:00
njoly
fb13fa89fd
Add testcase data argument to all fstest helper functions.
...
Needed by pooka for puffs fstest support.
2010-07-13 15:50:31 +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
enami
5559382642
Make this compile again.
2010-07-13 01:42:21 +00:00
njoly
95f6e757bd
Update filesystem helper functions namespace (from XXX_mount to
...
XXX_fstest_mount) to avoid conflicts with existing functions such as
puffs_mount.
2010-07-12 21:37:47 +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
pooka
84244a9f10
put stuff requiring -lpuffs behind -DPUFFSDUMP
2010-07-12 13:09:19 +00:00
pooka
373c282cc2
WARNS=2
2010-07-11 12:33:38 +00:00
pooka
a436045559
Add some basic tests for inactive/reclaim. To make this possible,
...
adjust the read/write shovel threads so, that we can tap into the
operations between puffs(9) and the file server.
2010-07-11 12:26:19 +00:00
pooka
3909f0ed5c
Remove the lfs race condition hack now that it's properly in the
...
test instead of the fs-specific part.
2010-07-11 11:25:22 +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
pooka
fbcc1c5736
fill in PR number now that we have one
2010-07-08 13:30:53 +00:00
pooka
df74e53708
Add LFS to vfs test list. TODO: start cleanerd too.
...
It fails in a number of different ways. Some of them seem to appear
as a function of the file system size (i'm not sure if it's because
the lack of the cleaner or not. i'm guessing ``no'', though).
ok njoly
2010-07-08 13:21:02 +00:00
pooka
5544227ec7
Add test cases for file servers which present the root node not as
...
a directory but as a regular file, symbolic link (although that
can't be unmounted without killing the server!), fifo or character
device.
2010-07-07 10:49:51 +00:00
pooka
a8b198e2fa
fix TESTSDIR
2010-07-06 16:44:26 +00:00
pooka
34edcf6bbe
* need TESTSDIR
...
* remove force-fed -g
2010-07-06 16:43:48 +00:00
pooka
3d327ac6a6
NO ATFFILE HERE
2010-07-06 16:32:35 +00:00
pooka
42f6cd1ef7
Call rump_init() only after we have fork&exec'd the file server.
...
Otherwise the test would on rare occasions hang (I guess this was
due to calling sprintf/close between fork&exec in a threaded
program?).
2010-07-06 15:42:24 +00:00
pooka
81a57dd008
Add the most basic test for puffs(dtfs): mount/unmount. There's
...
still a lot of work to do here, but I want to get to testbuilding
the tree ;)
TODO examples:
* integrate this with rump_syspuffs (and remove the stupid ``sys'' from there)
* integrate with njoly's fs-independent tests
* cleanup a lot
* write more tests
*sigh*, I wish we'd had testing tools like this 5 years ago when
I was writing puffs. It would have made a lot of things a lot
better and a lot easier.
2010-07-06 14:44:29 +00:00
pooka
3626443e21
Move the Delectable Test File System from share/examples/puffs/dtfs
...
to tests/fs/puffs/h_dtfs.
No functional change (apart from adjusting the Makefile for test builds).
2010-07-06 14:16:44 +00:00
pooka
7f396ca714
Move tests psshfs from fs/puffs to fs/psshfs. The former is going
...
to be populated by tests which actually test puffs soon.
jmmv ok
2010-07-06 14:06:21 +00:00
pooka
83eca23e73
* fill PR number to xfail now that we have one -- let's try not
...
to add any xfail tests without an associated PR
* move xfail to the correct place
2010-07-05 17:12:48 +00:00
jmmv
9c8ebeed66
Use expect_fail instead of defining xfail. Looks like I missed this one
...
during the import of atf 0.10. Thanks pooka@.
2010-07-05 16:34:41 +00:00
jmmv
e834f57d5e
Properly mark some test cases as having a cleanup routine. Stupidity of
...
the API? Most likely; will revise it.
Fixes atf-run breaking when running t_psshfs. This does not resolve the
underlying issue though, which is atf-run getting confused trying to
unmount the temporary mount point by itself (I think). (I'm now wondering
if atf should be bothering about unmounting stuff at all. Maybe not. It is
a tricky and uncommon thing.)
2010-07-05 16:27:08 +00:00
njoly
41df35f7e1
Fix more copyrights, where i forgot to add my name.
2010-07-05 14:53:03 +00:00
njoly
78043be0cf
Fix copyright, noted by Jukka Ruohonen.
2010-07-05 13:03:19 +00:00
njoly
1511eb19e2
Add test program that use sample code from kern/41937, and fs rump
...
helpers to check currently supported filesystems.
t_rmdirrace (1/1): 5 test cases
ext2fs_race: Passed.
ffs_race: Passed.
msdosfs_race: Passed.
sysvbfs_race: Passed.
tmpfs_race: Passed.
2010-07-05 12:53:58 +00:00
pooka
d2c2528c3b
Add a test case for PR kern/36681 demonstrating how easy it is to
...
get tmpfs rename to "tstile".
Note1: triggering this on any non-SMP system is not as easy (because
one system call tends to run from start to finish in one go) and
therefore I've limited it to i386 and amd64. Incidentally, I'm
still waiting for the eternally elusive MI CPU_INFO_FOREACH (or at
least something else than a stupid macro) ...
Note2: this is a "race condition" test. I tested it on my development
host and in qemu and it triggers pretty instantly. But YMMV.
2010-07-04 12:43:23 +00:00
pooka
44307e8d84
Improve previous a bit more: now it works correctly in all cases
...
with or without xfail.
There is still room for improvement, though: with xfail the
errno != EROFS branch does not report why open failed.
2010-07-03 13:37:22 +00:00
pooka
a8bfb4f650
enhance fail check
2010-07-03 12:23:04 +00:00
pooka
8da786abde
Remove ufs mount where not necessary due to rumpfs now supporting
...
VOP_WHITEOUT.
2010-07-03 12:10:35 +00:00
pooka
4fbc020440
Add xfail tests for two cases described in PR kern/43560.
2010-07-03 12:08:37 +00:00
jmmv
56e49f7fbe
Re-add PR number and expected failure condition (as a comment, because the
...
problem is resolved). Per pooka's request.
2010-07-03 08:31:37 +00:00
jmmv
7562f3f929
Replace custom xfail settings with the new expected failure support in
...
atf 0.10.
2010-07-03 08:18:30 +00:00
njoly
24850d26c8
Small xfail testcase to exercise 48k ffs image mount, from problem
...
reported by Hubert Feyrer on netbsd-users@.
2010-06-30 21:54:56 +00:00
njoly
1bb5701860
Add helper code and macros to ease writing filesystem tests with rump.
...
Support currently limited to ext2fs, ffs, msdos, sysvbfs and tmpfs.
2010-06-30 20:39:39 +00:00
pooka
51f4669ad3
qemu has been fixed, so remove timeout
...
(not that it helped in the first place ...)
2010-06-30 16:37:12 +00:00
hannken
a377d2aa24
Test no longer fails with rev. 1.62 of src/sys/fs/union/union_vfsops.c.
2010-06-30 14:10:14 +00:00
pooka
73a09406dc
xfail test for problem described in PR kern/23986
2010-06-29 15:25:28 +00:00
pooka
61ee6255d1
add test for PR kern/43503
2010-06-28 09:45:06 +00:00
pooka
2327d76dfc
If kernel modules are set to autoload, skip the vfslist part of
...
the check when determining if there is kernel support for a given
fs. Makes tmpfs tests run and fixes PR misc/43304.
2010-06-23 11:19:17 +00:00
pooka
4c4df11b4b
Fix test: we need to mount /dev/pts to /null/dev/pts, not /dev to
...
/null/dev: we're interested in /dev/pts and nullfs doesn't traverse
underlying mountpoints.
(I had code for nullfs mountpoint traversal in the tree i used to
test this originally... but I assume the rest of the world doesn't.
Before this change the test would still fail, but fail in the wrong
place and due to the wrong reason.)
2010-06-16 15:57:11 +00:00
pooka
a17a919421
Set xfail for tests which have a PR for them.
2010-06-16 15:39:41 +00:00
pooka
0420748b8f
Descend into ptyfs tests now that the necessary rump components are there.
2010-06-14 14:51:41 +00:00
pooka
f1809fcd66
Add some ptyfs tests.
...
Note: I'm not adding these to the build yet, since they depend on
some other other cleanup I might get done only after the weekend.
Even so, t_nullpts serves a simple example of how to repeat the
crash described in PR kern/43456 (just remove "rump_sys_" from the
calls and it should compile and you should get a host kernel panic
instead of a coredump).
2010-06-11 23:52:38 +00:00
pooka
ee5ea4a164
``twistymount'' regression test for scenario described in PR kern/43439
2010-06-09 08:37:16 +00:00
pooka
9eda5fdbbb
Use rump component libs on all platforms. I'll add kernel module
...
autoloading as a separate test later.
2010-06-08 10:43:40 +00:00
riz
b8ec406166
Remove a test (that a created directory had a predictable inode number)
...
that no longer makes sense since the vmlocking2 branch was merged.
2010-06-07 03:43:50 +00:00
riz
94a47d543f
Use atf_check to su in a couple cases, to make the test failure
...
easier to understand when the unprivileged user has /sbin/nologin
for a shell.
2010-06-07 03:39:41 +00:00
jmmv
6b84fb92ac
atf-0.9 introduces an use.fs test-case property to allow tests to write to
...
their work directory. The purpose is to be able to know which tests intend
to touch the file system and to allow a minor optimization in atf-run.
Define use.fs=true for all those tests requiring it. (This highlights that
some tests currently require modifying the file system but conceptually
they shouldn't be... which leaves room for further improvements/cleanups
later :-)
2010-06-04 08:39:40 +00:00
pooka
104b695ac0
Now that atf gdb/coredump conflicts have been solved (thanks jmmv!),
...
remove USE_ATF ifdefs.
2010-05-31 23:44:54 +00:00
dholland
3f2b5f0ddd
Requires <sys/param.h>.
2010-05-30 06:09:17 +00:00
dholland
8f40ab4ef3
Use PATH_MAX instead of MAXPATHLEN and include limits.h.
2010-05-30 05:35:48 +00:00
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
jmmv
9b7401e7cb
Convert the regress/sys/fs/tmpfs tests to the atf
...
This change converts all the existing regression tests in
regress/sys/fs/tmpfs to the new framework provided by atf. As a side
effect, this also moves all the tests programs in regress/sys/fs/tmpfs to
tests/fs/tmpfs.
2007-11-12 15:18:07 +00:00