Commit Graph

1004 Commits

Author SHA1 Message Date
jruoho
5ceeb0400d Add also a basic, naive, test for fast_divide32(3). 2011-03-24 07:37:04 +00:00
jruoho
56d0179b95 Add some naive test cases for the ffs32(3) family of functions. 2011-03-24 07:06:34 +00:00
joerg
081dffd915 Explicitly terminate threads to prevent crashes on exit. 2011-03-23 13:57:04 +00:00
jmmv
a6fb334d92 Clean up some late-night braindeadness:
- Make the pidfile name generation functions return their value as a return
  value, not an output pointer.  And homogenize these into a single function.
- Free allocated memory.  Not truly necessary because the test cases die
  immediately anyway, but nice to do.
- Remove the pidfile__ prefix from test case names.  (This was in advance of
  some changes I want to propose to pidfile(3), but it turns out my approach
  was flawed.  Preemptive smartness is evil!)
2011-03-23 09:13:54 +00:00
jmmv
f8d6f5f369 Add some tests for pidfile(3).
I want to touch this module to attempt a feature addition but I need some
tests beforehand!
2011-03-22 23:07:32 +00:00
njoly
f031bfef0a Test case from PR/44189 should not fail anymore. 2011-03-22 22:29:18 +00:00
pooka
4975925b02 check that nfsd works with kernel module autoloading 2011-03-22 17:07:11 +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
jmmv
ecaa6aed45 Force cleanup parts to exit with a success status. Failures in cleanup
should not be allowed by atf-run (although they currently are ignored).
2011-03-22 16:16:30 +00:00
hannken
d8c44cec40 Remove a vnode reference leak from msdosfs_rename. Release tdvp if either
doscheckpath() or relookup() fails.

Adjust test fs/vfs/t_vnops.c and remove the link count test for msdos.

Fixes PR #44661
2011-03-19 20:05:21 +00:00
jruoho
acf13bc7e1 Add a simple test file for <sys/bitops.h>. For now, only ilog2(3) is tested. 2011-03-19 06:39:17 +00:00
jmmv
cfadf0aa6e Remove hack introduced in revision 1.6 to workaround a bug in atf-run that
would cause it to lock up while waiting for the p2k_ffs_fillfs test case
to complete (in some cases only).

This has been fixed by the upstream revision
3dd2481ec97b2fde76521939b6451d03ce989745 which I have just pulled into
our copy of atf.
2011-03-17 19:48:37 +00:00
skrll
267d99344b Blame where blame is due. 2011-03-17 15:59:32 +00:00
pooka
040c5b8d22 Use /dev/null instead of stdin for fd. Otherwise if the tests are
run with stdin as a pipe (e.g. from cron) the test fails with ESPIPE.
2011-03-14 20:41:25 +00:00
pooka
bc1269c4f5 Apparently this way of triggering the msdosfs rename vnode leak
does not bite every time (most commonly observed on the amd64/qemu
runs), so add a race condition catcher.
2011-03-14 19:05:19 +00:00
pooka
3bc8d7931c test RUMPHIJACK fdoff=8 2011-03-14 15:56:40 +00:00
pooka
46ba5a2180 xfail PR bin/44721 2011-03-14 09:25:01 +00:00
pooka
0a6d25cd9a Use tcpdump -tt so that TZ doesn't affect the test result. 2011-03-13 15:40:01 +00:00
christos
2d8f83e77b Fix various vis/unvis issues:
- no need for all the weak symbols
- define a new _VIS_END flag for UNVIS_END so that there are no collisions
  between and vis and unvis flags.
- add bound versions of the vis and unvis functions that take the length of
  the destination buffer. Unlike the OpenBSD ones they return -1 or NULL if
  the buffer is not large enough, instead of silently truncating.
2011-03-12 19:52:45 +00:00
bouyer
fa4ca53da4 Add a test for rpc.rquotad(8) 2011-03-12 14:03:38 +00:00
bouyer
577c32edc7 Add support for multiple rump servers in shutdown and cleanup 2011-03-12 13:43:58 +00:00
pooka
1217ea6fe7 get the directories right ... 2011-03-11 16:41:27 +00:00
pooka
6dd7be55d5 dumdidumdum, can't generate an incompatible test busfile and assume
that test will work.  so replace the test data with something a bit
more realistic.
2011-03-11 10:35:29 +00:00
pooka
2385406381 Add one simple test case which checks that zpool create results in
a mounted file system.  Then run away as quickly as possible.
2011-03-10 20:02:26 +00:00
pooka
f8e076eb7c remember to install test data files too. thanks, Paul. 2011-03-10 14:49:17 +00:00
skrll
11c999cbce Deal with all objdir methods. 2011-03-10 14:31:07 +00:00
pooka
bbc7636114 Add a test checks that 16 rump kernels on one shmif bus can ping
each other.
2011-03-10 14:09:46 +00:00
pooka
baaf9cb9d3 * remove juiblex from nfsd startup (i was using -DDEBUG nfsd yesterday)
* some minor nits
2011-03-10 13:42:33 +00:00
pooka
efd10a6525 add tests for shmif_dumpbus(1) 2011-03-10 11:13:33 +00:00
joerg
aad599979d Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
2011-03-09 23:10:05 +00:00
pooka
1bafe88e56 nfsd + mount_nfs test with stock system binaries 2011-03-09 21:25:59 +00:00
tron
4339a30cbc Don't descend into non-existing subdirectory "clients". 2011-03-09 20:13:47 +00:00
bouyer
37628c8c74 Use librumphijack for quota commands instead of rumpifed versions. 2011-03-09 19:04:57 +00:00
pooka
7e4239caf4 some blanket tests 2011-03-08 22:21:52 +00:00
pooka
5ec619238a test case for runon prefixes 2011-03-08 21:36:25 +00:00
pooka
a495c82c5f Enable the "send a lot of syscall requests before exec" code, since
it works now.  (or at least works in my tests)
2011-03-08 15:35:28 +00:00
pooka
fe92fa8193 print out the unexpected rv too 2011-03-08 14:53:03 +00:00
pooka
46dfa511bc add test case for multithreaded client calling exec 2011-03-08 12:40:25 +00:00
enami
08376a9153 Fix link error. 2011-03-07 03:29:26 +00:00
bouyer
063f96f3c2 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
pooka
951e801a6b Add a race catcher for p2k_ffs renamerace -- it seems like the
problem doesn't trigger always especially in a qemu env (but triggers
100% of the time on my desktop).
2011-03-06 16:00:16 +00:00
pooka
172587ab09 Add a kludge to prevent a test run from completely hanging.
Some analysis:

1) p2k_ffs test program opens a socketpair and forks off rump_ffs
2) after mounting the file system, test program decides it
   wants to skip the test and exits
3) somehow, the puffs event thread of rump_ffs stays in kqueue
   waiting for activity.  fstat+gdb suggests it's waiting for the
   now-orphaned socketpair (but I didn't fully verify.  is there
   an easy way to dump the state of a kqueue descriptor?).
4) test program is a zombie
5) atf-run waits forever

Note: this doesn't trigger always.

So, it seems there are at least two bugs: 1) test case doesn't
timeout 2) the kevent call in rump_ffs never returns even though
the sockerpair is orphaned

So, explicitly unmount the file system before skipping the test.
Obviously the above bugs needs to be properly fixed, since other
skipping test cases can unbeknowingly trigger the issue.
2011-03-06 10:33:40 +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
pgoyette
107fdb641e Add tests for verifying the recent changes to ps_strings
From joerg@ with atf-ification from myself.
2011-03-05 18:14:33 +00:00
pooka
4adfadb23c chown the workdir to unpriv user instead of chmod 711. Otherwise,
if your (root's) login shell is {t,}csh, su -m gets outoutsmarted.
2011-03-05 07:41:11 +00:00
riz
c9ff785918 Back out previous; it's causing intermittent problems which I don't
fully understand yet.
2011-03-04 17:56:53 +00:00
riz
1242e4fa63 Switch from using "rump_ffs" to mount the file system image to
using a rump_server to mount it in a rump kernel, and librumphijack.so
to enable accessing it from the test program.  Among other things,
this allows the tests to run as an unprivileged user.
2011-03-03 16:25:15 +00:00
pooka
771df007e3 add tests for hijacked /bin/sh (mostly redirection now) 2011-03-03 11:54:11 +00:00
pooka
814186ded7 The re-enabled renamerace test also triggers the recent msdosfs
vnode leak.  xfail this under the blanket of PR kern/44661.
2011-03-03 11:01:27 +00:00
pooka
61dcfafee6 Apparently my last commit to msdosfs_vnops.c fixed the (harmless?)
buffer overrun in rename (>15 years old bug), so re-enable other
msdosfs rename tests too.
2011-03-03 10:57:30 +00:00
riz
1680d3ca61 Skip the sigfpe_flt and sigfpe_int tests on powerpc; powerpc does
not fault on divide-by-zero.  As discussed on tech-userlevel.
2011-03-02 03:42:56 +00:00
riz
736d6f3deb PR#44239 is now fixed, remove the xfail from the test. 2011-03-01 22:52:54 +00:00
pooka
1939d9d97e msdosfs xfail for PR kern/44661 2011-03-01 20:16:33 +00:00
pooka
bb225c94f3 xfail dir_rmdirdotdot for tmpfs (PR kern/44657) 2011-03-01 15:33:35 +00:00
pooka
da0742f9b8 Reset node's parent pointer when it's removed. Technically the
parent still exists, but allows us to avoid complicated g/c algorithms
if the parent *is* removed.
2011-03-01 15:14:35 +00:00
pooka
878d41e6e9 Rmdir the dir you're in and its parent and try to cd ..
Fails on tmpfs (crash), puffs (cd .. succeeds) and rumpfs (cd .. succeeds).

another testcase derived from the bugfinding genious of Taylor R Campbell
2011-03-01 15:04:47 +00:00
pooka
8a3bb78f03 Comment out msdosfs skip -- i'm not sure if it will still fail with
the "stack size" problem, but at least it fails due to yet another
refcounting snafu in the msdosfs rename method.
2011-03-01 14:27:32 +00:00
pooka
1157445be6 augment rename test case with the failure from PR kern/44288 2011-03-01 14:21:46 +00:00
pooka
866d358b14 Attempt further qemu heuristics to avoid failures due to non-working FPU 2011-03-01 12:47:43 +00:00
pooka
e71885fb04 Create a pipe on which to select. selecting on STDIN_FILENO seems
to be succesful *sometimes* on some archs (i'm suspecting this is
in some way related to lib/libc/ttyio/t_ttyio failing).
2011-03-01 08:54:18 +00:00
pooka
c87fb89aa0 make netcfg produce sensible results in a non-atf env 2011-02-28 21:21:14 +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
pooka
6ae16092a5 Add simple test case for access(2), including panicky scenario from
PR kern/44648.
2011-02-28 03:40:45 +00:00
njoly
3b61a87b12 Add a small testcase that shrink a file using 2 consecutive ftruncate
calls.
2011-02-27 15:16:31 +00:00
pgoyette
bb1ec3c88c The ssp/raw test is useless. Remove it. 2011-02-26 02:41:33 +00:00
martin
0d52446307 Remove xfail for sparc64, alignement issues have been fixed 2011-02-25 20:54:18 +00:00
pgoyette
08b100965c Disable the "raw" test case. The test is bogus, and did not work before
conversion from src/regress/ to atf
2011-02-25 18:11:53 +00:00
pooka
899e147859 adjust location of xfail in previous for more accuracy 2011-02-24 17:29:48 +00:00
pooka
66864f8999 xfail PR kern/44631 on sparc64 2011-02-24 17:26:46 +00:00
pooka
ca626b1df7 Add tests to check "cc" can compile a working hello world.
(this test fails at least on riz's macppc)
2011-02-24 10:24:23 +00:00
pooka
c97bdaa639 in reconnect, ignore any all reconnect messages 2011-02-24 08:40:06 +00:00
pooka
2486194718 some tests for mv(1) 2011-02-23 16:38:08 +00:00
pooka
9f3340d97a simple vfs tests (mount ffs, cp/pax files there, un/remount,
check with diff)
2011-02-23 13:01:57 +00:00
yamt
0aabb9242a add some tests 2011-02-22 21:23:19 +00:00
pooka
02b6060dda make the timeouts a bit more generous for really slow systems 2011-02-22 18:41:04 +00:00
pooka
6ac867388f One more lseek test case: in case of an error, check rv == -1
(so that it's not e.g UINT_MAX).
2011-02-22 13:25:18 +00:00
pooka
9107903fbe test lseek return value (off_t, might be >register_t) 2011-02-22 10:36:13 +00:00
riz
9613b94f2f mutex2/mutex3 are expected to fail on powerpc because of
PR port-powerpc/44387.

XXX the ugly sleep at the end is because ATF will mark an un-triggered
race condition (ie, the test passes unexpectedly) as a test failure otherwise.
2011-02-21 21:43:41 +00:00
pooka
91971b5261 Skip instead of fail test if tmpfs cannot be mounted and the
error is "Operation not supported".

makes the tmpfs tests produce a sensible result on platforms where
tmpfs is not available (such as the hpc* test runs)
2011-02-21 10:14:29 +00:00
pooka
f8da5a9891 check that poll on an invalid fd doesn't hang in the dual poll case 2011-02-20 23:45:46 +00:00
jmmv
15a3581f5e Adjust tests now that the values of atf_arch and atf_machine have been
reversed to carry their real intended meanings.

This is part of PR bin/44305.
2011-02-20 20:57:46 +00:00
pooka
d9795c60c4 explicitly set the signal model 2011-02-20 19:45:45 +00:00
jmmv
0553513a0e The mutex3 test is supposed to use a static initializer so that it differs
to the mutex2 test.  This detail was lost during the atfification of these
tests.

Spotted by pooka@ and riz@.
2011-02-20 14:37:44 +00:00
pooka
a7b761c335 Add a test that checks that the client receives SIGIO for an O_ASYNC
socket.
2011-02-20 13:27:46 +00:00
pooka
91a9bf9486 more test cases:
* // prefix
  * fchdir
  * cd-via-symlink
2011-02-19 19:57:28 +00:00
pooka
44ff4bdcb3 a basic getcwd() test 2011-02-19 13:19:52 +00:00
pooka
828eb9131f Run sockstat with -n so that difference in /etc/services don't
affect the test outcome.
2011-02-19 09:59:12 +00:00
pooka
362dcd5366 set reconnect property now that it's off by default 2011-02-19 09:56:45 +00:00
pooka
7e9c3f5ca7 Add test case for /->: conversion from PR kern/44523 by
Taylor R Campbell.

I adjusted the test to uudecode + bunzip2 the supplied image, and
removed the "null-finder" from the dirent code, since it had an
off-by-one which made the test fail.
2011-02-18 13:07:54 +00:00
pooka
5b509bbede Test the -d type parameter of rump_server(1).
XXX: these tests only work with a dynamic userland, dunno how to
specify a "skip" clause for that
2011-02-17 16:08:48 +00:00
pooka
5c6cde8ab3 RUMPHIJACK_RETRY -> RUMPHIJACK_RETRYCONNECT 2011-02-16 19:31:31 +00:00
pooka
1a01113004 test rumpclient_vfork() 2011-02-16 17:57:44 +00:00
pooka
daf96a009b no need to create a hardlinked name for the helper, just fake argv[] 2011-02-16 16:02:52 +00:00
pooka
9f22773c99 Don't use hijack here since exec is now easy in pure rump clients. 2011-02-16 15:34:18 +00:00
pooka
3f47eb3b3b remove unnecessary debug printf 2011-02-15 15:57:33 +00:00
pooka
36823968f7 test FD_CLOEXEC 2011-02-15 15:54:56 +00:00
pooka
fd59a0e429 add some exec() tests 2011-02-15 15:16:46 +00:00
pooka
3e3af76e8c explicitly set BLOCKSIZE so that we don't get fooled again 2011-02-14 19:56:30 +00:00
pooka
c754a0ea3b -debugging crud 2011-02-14 19:54:29 +00:00
pooka
e7ac403943 Test that hijacked ssh/sshd work.
Copypastes jmmv's sshd magic from fs/psshfs.
(dunno if it's worth sharing the code, or even what the
best practice for doing so would be)
2011-02-14 15:14:00 +00:00
uebayasi
fd945b5131 Typo. 2011-02-13 12:47:27 +00:00
bouyer
c6bd32e710 Test the right fd after rump_sys_open(). 2011-02-12 18:13:46 +00:00
pooka
e43200f113 Add test case from PR lib/44552 by Alexander Nasonov. I also lobbed
in a test for select(0, NULL, NULL, NULL, &tv) in there.
2011-02-12 10:28:08 +00:00
pooka
f9f796a4cf add test for fix in rev 1.36 of librumphijack/hijack.c 2011-02-11 15:38:14 +00:00
pooka
bec0b44f57 Use sshd's pidfile instead of $! and wait for the pidfile to appear.
This plugs a race condition where sshd did not have a chance to
open a sucket before we attempted to connect to it.
2011-02-11 13:19:46 +00:00
pooka
9285c5cc41 update /dev/null rump minor to make test pass again 2011-02-10 20:10:54 +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
58a824fcb1 explicitly zero-fill the initial md backend 2011-02-10 13:29:02 +00:00
kefren
233a38c913 Problem was fixed, don't expect to fail anymore 2011-02-10 07:47:50 +00:00
pooka
dab4b449d7 Add test which checks rumpclient does not use fds 0-2 for its
internal purposes.
2011-02-09 14:32:45 +00:00
pooka
5e6b266d97 Time to start adding tests for the routing code to make that part
of the kernel more approachable.

Begin the task with an xfail test for PR kern/40455.
2011-02-08 10:11:28 +00:00
pooka
6296f7395c Limit test duration based on wall time instead of loops
(took a long time on slow platforms).
2011-02-07 20:05:09 +00:00
matt
e538011342 This is no longer broken for macppc. 2011-02-07 09:40:52 +00:00
pooka
fbc821a08c Add a simple test for the purpose of making sure rumphijack works
on -current in addition to 5.x.  The test serves a simple index.html
on a hijacked bozohttpd and checks the file can be retrieved.
2011-02-06 18:44:29 +00:00
pooka
5cae2aa40c test case for PR kern/44515 2011-02-04 19:58:10 +00:00
pooka
bcbc24966e convert tests from oldstyle dd rif/rof to newstyle dd | rump.dd 2011-02-04 19:44:00 +00:00
pooka
34e15b860b commit works better when you cvs add first 2011-02-03 17:21:17 +00:00
pooka
f43ab2f10c add tests for the -d functionality of rump_server(1) 2011-02-03 15:38:18 +00:00
pooka
6ebb7d5324 add a few overwrite-related tests 2011-02-02 14:42:15 +00:00
njoly
9634a49aaa Now that PR/44302 is fixed, fs/vfs/t_ro:sysvbfs_rmfile should not fail
anymore.
2011-01-31 18:53:29 +00:00
pooka
e8bcfa54fd Add test case for F_GETLK pid-oddness from PR kern/44494.
I found the test case a little difficult to understand (because of
many indices), so I added a few more comments after I think I
figured out what was going on.
2011-01-31 10:01:26 +00:00
pooka
7605725b2b test for rumpclient reconnect feature 2011-01-24 17:51:29 +00:00
pooka
4fec18bfb3 Represent test data as bytes to make it "endian-independent".
from martin
2011-01-24 08:26:23 +00:00
martin
2f62f26a09 Fix off by one that made most of these tests die with a bus error in the
sparc64 runs.
2011-01-15 20:16:57 +00:00
pooka
1a076ae981 test remove signal delivery 2011-01-14 13:23:15 +00:00
pooka
054b6364bc elementary tests for rump sigmodels 2011-01-14 13:08:00 +00:00
pgoyette
7a60df3213 Moving t_hsearch - belongs in stdlib/ 2011-01-13 14:32:35 +00:00
pgoyette
4eb3e8521c Another test moving: lib/libc/t_inet --> lib/libc/inet/t_inet_network 2011-01-13 13:53:49 +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
d83ec60314 xfail PR kern/44383: whiteouts are generally speaking kaput 2011-01-13 11:00:19 +00:00
pooka
43c818f719 Add a test case for a r/o lower layer which attempts to create some
whiteouts and opaque dirs in the upper layer.  The sad news is this
simple test fails across the board.  It's pretty hard to figure
out how unionfs should work in $fs given that even the simplest
things don't work with ffs.
2011-01-13 10:33:01 +00:00
pgoyette
c15f77f136 Last one for today: move t_ptm test from lib/libc/ to lib/libc/ttyio/ 2011-01-13 03:19:57 +00:00
pgoyette
542ee7575d Make sure we build all of thests, not just the last one (use += vs =) 2011-01-13 03:09:54 +00:00
pgoyette
9704d7e1f8 Repair some printf formats 2011-01-13 03:00:41 +00:00
pgoyette
1c807dbe53 Continuing the (re)organization of the lib/libc atf regression tests 2011-01-13 02:40:43 +00:00
pgoyette
ec5cad1d54 Re-add missing -lpthread and fix some structure inializers (not sure how
these ever compiled)
2011-01-13 02:24:51 +00:00
pgoyette
374d5969a4 The nsdispatch test belongs in libc/net and not in libc 2011-01-13 01:56:44 +00:00
pgoyette
004608e402 Move t_mktime and t_strptime to their own ..../time/ subdirectory.
(Concurrence from christos@)
2011-01-13 00:14:10 +00:00
pooka
76c771d82c xfail for PR kern/44377 2011-01-12 22:42:24 +00:00
pooka
65d8e9cc2d Instead of hardcoding fs list just try to mount union and skip all
file systems which return EOPNOTSUPP.
2011-01-12 21:45:39 +00:00
pooka
b23eef386e Move basic unionfs test from fs/union to fs/vfs and make it test
all whiteout-supporting file systems with the file system in question
as the upper layer.  Also, add an unlink to the test to see if
whiteouts are really working.

ffslog_basic is the test case for PR kern/44377
2011-01-12 21:13:26 +00:00
pgoyette
6fdb369dfe Put the atexit test where it belongs - in libc/stdlib/ 2011-01-12 19:44:07 +00:00
pgoyette
2517c83d16 Move the servent and protoent tests to src/tests/lib/libc/net/ (where
they should have gone initially).
2011-01-12 17:32:27 +00:00
pooka
afb452e673 Simplify test: there's no reason to mount 2x ffs. 2011-01-12 17:16:24 +00:00
pooka
d086663369 Execute a variety of syscalls in the stress test, including opening
files and sockets.
2011-01-12 12:32:53 +00:00
pooka
0ba14b52f9 * run the killer stress test
* reduce default runtime to 5s
2011-01-12 11:39:20 +00:00
pooka
147af0c4be Give the stress queen two modes: one which nicely suggests an exit
and another one which keeps moet et chandon in her pretty cabinet.
2011-01-12 11:37:45 +00:00
pooka
8a712a9c10 Establish signal handler already in parent. Otherwise the child
might be killed before it has a chance to run.
2011-01-12 11:12:25 +00:00
pgoyette
7755b90bc1 Now that the test has been placed in its new location, remove it from
the old
2011-01-12 03:00:28 +00:00
pgoyette
01a7ddb233 By request, put the getaddrinfo test in tests/lib/libc/net/ 2011-01-12 02:58:40 +00:00
pgoyette
c177834af5 Atf-ify the getaddrinfo test, with updated "golden" output files. 2011-01-11 16:30:53 +00:00
kefren
eea5c39883 add test for kern/43321, blessed by pooka@ 2011-01-11 14:03:38 +00:00
pooka
cc362f9900 Print some more info in an attempt to try to understand why the
test fails in automated test runs but not my desktop.
2011-01-11 11:26:28 +00:00
pooka
68e1e43ec7 add test for PR kern/44369 2011-01-11 10:51:45 +00:00
pooka
4665e3c895 need unrace-catcher for ffslog 2011-01-11 09:32:50 +00:00
riz
99384b2def Copy a little less data in the ufs2, 4096-byte block test cases.
The file system was filling up instead of *almost* filling up, which
threw off the tests.
2011-01-11 00:50:02 +00:00
pooka
617df94e9c Make sure stressclient worker threads complete their operation
instead of hanging.
2011-01-10 19:51:37 +00:00
pooka
e95a17b9a5 check that we actually go into the signal handler 2011-01-10 19:30:21 +00:00
njoly
67aa333d97 Do close fd 4 in cerror_64 testcase too. 2011-01-10 16:54:02 +00:00
christos
880fe46bea remove clauses 3/4 2011-01-10 16:42:36 +00:00
pooka
58236b1f89 Don't use printf in a signal handler.
XXX: it would be nice if the deadlock with malloc were a little
more obvious, especially since gdb doesn't provide any clues unless
you compile libpthread with -g
2011-01-10 14:05:03 +00:00
hannken
b89d0815aa Add layer_revoke() that adjusts the lower vnode use count to be at least as
high as the upper vnode count before passing down the VOP_REVOKE().

This way vclean() check for active (vp->v_usecount > 1) vnodes gets it right.

Should fix PR kern/43456.
2011-01-10 11:11:03 +00:00
christos
4e376e0546 make constant fit in 32 bits. 2011-01-10 05:15:00 +00:00
christos
37cdb63310 test for sigqueue 2011-01-10 04:57:56 +00:00
pgoyette
fdee497371 Fix typo that got lost between my trial build and the final commit 2011-01-09 05:44:46 +00:00
pgoyette
8d8e0a4616 Ouch - forgot the include this earlier. 2011-01-09 01:00:40 +00:00
pgoyette
17f9a364e6 Atf-ify the regex test 2011-01-08 18:10:31 +00:00
pgoyette
b607edaed3 Atf-ify the rpc/t_xdr test 2011-01-08 06:59:37 +00:00
pgoyette
27009b334d Fix and re-enable the delete_btree test case 2011-01-08 05:33:34 +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
pgoyette
0308b37ff4 Atf-ify the db tests.
XXX Note that the original regress version of this test did not run the
XXX btree_delete test; that test is broken, and is disabled for now.
2011-01-07 15:05:57 +00:00
pooka
409447038e xfail PR kern/44336 2011-01-07 12:18:25 +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
6bafd757e5 use X-fs.mntname for f_fstypename. ignore p2k_ffs there. 2011-01-07 12:01:11 +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
20bc861ad1 ffs -o log dies in renamerace_dirs just like the rest. 2011-01-07 11:53:23 +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
4de0f96672 P2K_FFS uses puffs and therefore does not GOP_ALLOC either 2011-01-07 11:41:54 +00:00
pooka
dbc0117ffb adjust another place where X-fs.type is set 2011-01-07 11:41:40 +00:00
pooka
6869f180f8 expect correct errno in nfsro case. from yamt 2011-01-07 11:39:27 +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
pgoyette
62566a5bdc Atf-ify a couple more tests 2011-01-07 02:47:40 +00:00
pgoyette
6b3ee667f6 Avoid double-inclusion of bsd.subdir.mk file. This eliminates some harmlessnbut annoying warning messages. 2011-01-07 01:07:31 +00:00
pgoyette
8659b0cd02 Atf-ify test for mktime(3) 2011-01-06 17:20:48 +00:00
njoly
96b2d8096a Start unprivileged filesystem tests. For now, only chown/chmod owner
checks.
2011-01-06 15:19:09 +00:00
pooka
964d204966 In case of LOCKDEBUG, expect certain text in the kernel output. 2011-01-06 13:42:45 +00:00
pooka
051cd8569e Add some tests for lock errors. Notably, some of them fare nicely
with just the pthread consistency checks (which are enabled by
default in rumpuser), but others require real LOCKDEBUG.
2011-01-06 13:12:52 +00:00
pooka
edeb44ccb3 Add a test for ls, which is just a lazy scheme to have some testing
for puffs_cc(3).
2011-01-06 07:28:32 +00:00
pooka
b2d5a8ae6c test rumpclient syscalls from a signal handler 2011-01-06 07:00:28 +00:00
pooka
d69edd9332 check that child exits with an expected status 2011-01-06 06:59:25 +00:00
pgoyette
1eecbebf26 Atf-ify the nsdispath test. 2011-01-05 21:17:04 +00:00
riz
468e2d30f8 Replace uses of 'jot' with 'seq'. This is primarily to work around
a qemu-running-on-netbsd problem with FP which causes 'jot' to output
incorrect sequences, which were causing failures on one of the auto-testing
platforms.  While 'seq' also uses FP, it does not seem to be affected in
this particular usage

As a bonus, however, 'seq' is actually a better fit (the commandline is
more intuitive) for the way it is used in these tests.
2011-01-05 18:13:54 +00:00
riz
64fbc2ff54 Restore data integrity verification in the grow case which was
inadvertantly removed when refactoring occurred in a prior
revision.
2011-01-05 18:05:32 +00:00
pooka
8759cb8fa5 Some tests for rumpclient fork. 2011-01-05 17:19:09 +00:00
martin
7e35902cb8 Use raw buffer size (not aligned value) to limit packet size 2011-01-05 14:43:40 +00:00
martin
db69e273a2 Fix alignment of sndbuf (sparc64 got a SIGBUS in this test) 2011-01-05 14:08:12 +00:00
riz
a44c3b6512 All of the generated tests require root, for rump_ffs. Spotted by
njoly@.
2011-01-05 03:04:13 +00:00
riz
89e455be4b Update resize_ffs tests for byteswapped file system support, and
for UFS2 growth support.  Also, reduce the number of tests run by default
while still maintaining decent coverage of features and block sizes.
Anyone working on resize_Ffs should run the tests with RESIZE_FFS_ALL_TESTS
set in the environment, which adds a lot more testing.
2011-01-05 02:25:27 +00:00
pgoyette
8d8a62aedb Update the ieeefp tests so that they can be built on all architectures.
This enables us to avoid the set-list mess.

Build tested on amd64, i386, sun2, and vax!
2011-01-04 22:30:40 +00:00
pooka
dfdd51ae19 win wunused 2011-01-04 18:46:21 +00:00
pooka
620f20e9e9 Remove arch check now that rump smp is available on all host archs. 2011-01-04 16:25:20 +00:00
pgoyette
ba8539611a Now that PR/44311 is fixed we can remove the expected-failure from this
test.
2011-01-04 12:44:48 +00:00
pooka
45bfa2defe Check that file attributes can be changed (where applicable). 2011-01-04 11:17:22 +00:00
pgoyette
e81a7ec5fd Don't run FP Exception tests under qemu - they don't work.
While here, properly skip certain tests on vax architecture.  (It is
not legal to have a test-program with zero test cases, so each test
case needs to check-and-skip.)
2011-01-03 20:51:26 +00:00
pgoyette
39d0f69cf4 Ooopppsss - locale/ tests are not yet ready - don't SUBIDR yet 2011-01-03 19:25:48 +00:00
pgoyette
758e17089c Atf-ify the atexit test 2011-01-03 19:01:47 +00:00
pooka
a5f859dbc3 use rawpart 2011-01-03 09:39:46 +00:00
pooka
f0b543beba make this work when rawpart != d 2011-01-03 09:37:42 +00:00
pooka
3f6d82acd0 Give this a chance of working on non-4kB pagesize.
from martin's sparc64 test run
2011-01-03 09:35:33 +00:00
dholland
41d09f7800 remove another extraneous static 2011-01-03 09:14:21 +00:00
dholland
9b8984c0e1 fix this properly. 2011-01-03 09:10:54 +00:00
christos
00a6054507 PR/44310: Alexander Nasonov: write to /dev/bpf truncates size_t to int 2011-01-03 02:53:15 +00:00
pgoyette
6c188c10e6 Atf-ify servent and protoent tests, and the remaining hash test. 2011-01-02 22:03:25 +00:00
pgoyette
ddf58095f4 If we survive the check for wrong signal code, reset our expectation to
"pass" before checking the signal errno.
2011-01-02 21:39:24 +00:00
pgoyette
895e2a77b2 Fix $NetBSD$ keyword 2011-01-02 21:34:00 +00:00
christos
a8ca318180 avoid cloberring warning. 2011-01-02 21:17:19 +00:00
pgoyette
16618584e1 One more reference to HAVE_SIGINFO bites the dust 2011-01-02 18:28:36 +00:00
martin
7810b05eab Stopgap buildfix: gcc complains about test_ops possibly being clobbered
by sigjmp and I can't find a proper way to add -Wno-uninitialized in the
proper place in CFLAGS.
2011-01-02 13:49:15 +00:00
pooka
f2fcee3be9 do the alphabet 2011-01-02 13:18:37 +00:00
pooka
5c3365ce93 + rump_lwproc_newproc -> rump_lwproc_rfork()
+ add a tess for rump_lwproc_rfork()
2011-01-02 12:58:17 +00:00
skrll
24c2d21be3 Whitespace. 2011-01-02 09:33:45 +00:00
pgoyette
97fdaa0a16 The unmatchedvarparens test actually generates a blank link as output,
so make sure we have a matching blank line in the "golden" output match
file.
2011-01-02 04:41:24 +00:00
pgoyette
f9886d18eb Atf-ify several of the ieeefp tests.
Note that t_round is currently mostly disabled, due to PR/44293.  Also,
testfloat has not been converted.
2011-01-02 03:51:20 +00:00
pgoyette
9a073313c7 Convert a few more tests from regress to atf 2011-01-01 23:56:48 +00:00
pgoyette
247905d351 Build t_ldexp test always. The test itself determines if it is running
on an unsupported platform (vax) and exits.
2011-01-01 23:45:01 +00:00
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
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
pooka
6198422889 Don't broadcast unmntall with SIGTERM -- it just makes the atf default
cleanup kill hang for a while.
2010-12-31 17:59:24 +00:00
pooka
ff21e05c48 avoid temp file per clue-by-four from jmmv 2010-12-31 15:21:49 +00:00
pgoyette
1ee3be1187 Correct a typo that creept in 4 weeks ago. This removes the 1 "Bogus Test"
currently being reported.
2010-12-31 14:55:07 +00:00
mlelstv
9f9ca3aac9 return from an SIGFPE handler is not defined when the hardware
caused the exception. Use sigsetjmp/siglongjmp to resume the
test function instead.
2010-12-31 14:54:55 +00:00
pgoyette
b9bd4f1954 Moving more tests out of regress and into atf mainstream 2010-12-31 14:36:10 +00:00
pooka
8498f8450d test helper program exit code, not test program exit code 2010-12-31 08:52:32 +00:00
pgoyette
5c6d42ce59 Ooopppsss - ieefp tests have not been atf-ified, so remove the stuff
that got committed by mistake.
2010-12-31 05:05:43 +00:00
pgoyette
ea706db02e Migrate a few miscellaneous tests from the old regress to atf 2010-12-31 04:08:32 +00:00
pgoyette
ee1e1b3d69 Now that 'rump_server -l stuff' works, use a less heavyweight rump_server
for this test.  Thanks, pooka!
2010-12-31 00:35:42 +00:00
pooka
3bc662fecd underlying condition has been fixed 2010-12-30 22:23:13 +00:00
pooka
2febaa74cc Test is no longer expected to hang.
PR lib/44248 closed when test associate with PR fails ==> brick dholland
2010-12-30 22:21:53 +00:00
pooka
bc1c80f7e8 Substitute a surgical rump_server configuration for rump_allserver
now that it's possible.  With warm fs cache, the startup time of
the former is 0.01s and the latter 0.1s.  With cold caches it's
0.2s vs 2s.
2010-12-30 16:58:07 +00:00