Commit Graph

825 Commits

Author SHA1 Message Date
jruoho 8c6b9e263c Add some basic tests for fsync(2) and <paths.h>. 2011-03-30 09:43:21 +00:00
jruoho a873c5cd55 Add missing __RCSID(3). 2011-03-30 08:34:19 +00:00
jmmv e58081aa53 Halt the httpd server _before_ rump. Per pooka@'s suggestion. 2011-03-29 16:03:32 +00:00
jmmv 5bd1bce108 Make httpd create a pid file and use that to kill the server in a controlled
manner (instead of indirectly through rump.halt).  Suggested by pooka@.
2011-03-29 15:43:45 +00:00
jmmv 255271589f Extend pidfile(3) to support creating pid files in arbitrary locations.
If the argument provided to pidfile(3) contains a '/', then the value is
considered to be an absolute/relative path and the pid file is created
in the given location.

Otherwise, pidfile(3) behaves as before and treats the provided value as
a basename to construct a pid file in /var/run/<basename>.pid.  This means
that to create a pid file named "foo.pid" in the current directory, one
must specify "./foo.pid".
2011-03-29 13:55:37 +00:00
jruoho 1b871e25a1 Add a test case for pthread_cond_timedwait(3) failures reported by
Sad Clouds in PR lib/44756. This was discussed also in:

	http://mail-index.netbsd.org/tech-userlevel/2011/03/17/msg004689.html
2011-03-27 16:45:15 +00:00
mlelstv ec85dd4442 validate that getrawpartition() didn't fail. 2011-03-27 08:53:56 +00:00
njoly 53ff676914 Add require.progs properties for needed tools to avoid failures when
comp.tgz set is not installed.
2011-03-25 19:19:45 +00:00
pooka 030990eecf check that we can dlopen() the linkmap name, too 2011-03-25 14:47:31 +00:00
pooka b2e6db5028 check that dlopen()d dso shows up in the linkmap 2011-03-25 14:45:21 +00:00
jruoho c90472ef80 Do not skip the QEMU bugs but instead mark these as expected failures. 2011-03-25 10:42:38 +00:00
jruoho 1604324802 Bluntly skip the tests that fail under QEMU. XXX: system(3) is used for this?
wnCVS: ----------------------------------------------------------------------
2011-03-25 10:00:31 +00:00
jruoho 0de4e7e46f Fix typo. 2011-03-25 09:39:19 +00:00
jruoho 88c2989461 Add some basic POSIX conformance tests for sched(3). 2011-03-25 09:34:02 +00:00
jruoho 5f8b364626 Even these naive test cases caught one (QEMU?) bug; comment PR # 44767. 2011-03-25 04:26:41 +00:00
jmmv 27486724f4 Prevent failures from cleanup routines. Do so by only attempting to do the
cleanup if the test case did not succeed (as, when it succeeds, the cleanup
has already happened).
2011-03-24 21:52:51 +00:00
jruoho 43a75470f9 Sort. 2011-03-24 16:58:01 +00:00
jruoho 629e716a41 Add a naive test case for raise(3). 2011-03-24 16:56:37 +00:00
jruoho 57842fd3b4 Add dummy test cases for ceil(3) and floor(3). It is expected that at least
one of these will fail on guest x86_64 NetBSD under Qemu. Thanks to pgoyette@
for checking the broken floor(16.999999...) = 17.
2011-03-24 15:43:06 +00:00
jruoho 68f3621e3d A dummy conformance-test for pthread_detach(3). I will extend this later. 2011-03-24 13:52:04 +00:00
jruoho c3917926fd A dummy conformance-test of pthread_equal(3). 2011-03-24 12:40:59 +00:00
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