Commit Graph

443 Commits

Author SHA1 Message Date
pooka 8c5fe271ac Remove accidentally committed part (which I need to run these tests
for a -current rump kernel on NetBSD 5.1)
2010-11-12 17:35:34 +00:00
pooka 284f30f020 Add test case for problem described by yamt in PR kern/44086.
"large writes with PUFFS_KFLAG_NOCACHE_PAGE ends up with EIO"
2010-11-12 17:33:28 +00:00
pooka 885c88049d fix 2010-11-11 22:44:50 +00:00
pooka 4b008acfd7 Add rudimentary cgd tests. The tests use cgd to transform a
plaintext into into an encrypted image and back into plaintext by
doing rump I/O on /dev/cgd.  There is one test to check that giving
the same password for both encryption and decryption produces the
same plaintext and another to check that giving a different passwords
does not produce the same plaintext.

This could be fairly easily extended to test all feature of cgd
(hint hint).  For example, now cgd.conf is included in cvs, but
the only reason for that is that without further hacking cgdconfig
uses /dev/random quality random to generate the salt for a
pkcsetcetc_kdf2 cgconfig -g, and making an automated test block on
the entropy pool is just not good form.  Details are everything.
2010-11-11 22:38:46 +00:00
pgoyette 1c0f72e4dd The libevent tests are fairly lengthy - each test case actually contains
about 20 or so mini-cases.  Increase the timeout for these tests to let
them run to completion.
2010-11-11 22:18:53 +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 e60986a223 Add rumpfs to list of file systems to be autotested. 2010-11-11 17:39:29 +00:00
pooka 44198575b7 add necessary libs for t_posix_fadvise 2010-11-11 17:36:57 +00:00
pooka 1a160862e8 use atf interfaces for error reportage 2010-11-11 16:03:55 +00:00
pooka f5449a5597 Actually, add a full tc for operating on fd's backed by regular
files (as opposed to pipes and devices).
2010-11-11 15:08:07 +00:00
pooka 7c8241e470 Add expected failure test for posix_fadvise() panic reported by yamt
on source-changes-d.
2010-11-11 14:50:58 +00:00
pooka dbfa9a01cc Now that copyinstr() correctly returns error, trim the semaphore
name to fit into SEM_MAX_NAMELEN.
2010-11-10 11:14:12 +00:00
pooka ff2758a541 Test copystr/copyinstr/copyoutstr focusing on the off-by-one cases.
As a notable caveat, this does not test the remote RPC paths of
those routines, which are arguably a little more complex.
2010-11-09 15:25:19 +00:00
jmmv 97a78f11fc Remove ugly workaround to skip this if unprivileged-user=_atf and just use
'su -m' as pooka@ did in t_mkdir.sh.  As he says this may still fail if
root's shell is csh; we need a better solution.
2010-11-09 13:01:33 +00:00
pooka 92603a1ff0 This test is cursed.
Yesterday I thought I committed the increased timeout and when the
test was still failing for the autotests n hours later I noticed
I had actually failed to commit it.  I did manage to commit something
in the evening, but the autotests were still failing this morning,
so I noticed I increased the timeout of the wrong test.  I wonder
what will go wrong this time...

(and p.s.: 10240 is probably slow because it's O(n^2) with a constant
of quite a few)
2010-11-09 11:48:35 +00:00
pooka 537f9e3a0b Increase timeout from 30 to 300 since this test runs for a long time.
XXX1: should 2x10240 loops really be *that* slow?
XXX2: is 10240 a sensible number to begin with?
2010-11-08 23:28:41 +00:00
pooka d4a18bf9e3 another long-running test, so give it some buffer 2010-11-08 21:38:13 +00:00
pooka ae2e5e944c increase timeouts of long-running tests 2010-11-08 19:06:12 +00:00
pooka 617f136424 Use su -m since _atf has nologin as its shell.
XXX: this will still fail if root's shell is csh
2010-11-08 15:25:50 +00:00
njoly e7d0fdd058 Do not fail but skip tests if POSIX semaphores are not supported. 2010-11-08 13:05:49 +00:00
pooka 7119e5be14 convert program in PR kern/44054 to an atf test case 2010-11-07 19:53:42 +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 948c1978f6 test fss with underlying fs mounted with MNT_LOG 2010-11-05 11:32:09 +00:00
pooka 36445fc1a8 remove newline from error 2010-11-05 11:31:15 +00:00
christos fb0d4bcc11 make that u_int, because it is passed as a socket option. 2010-11-03 21:44:46 +00:00
christos b32d0df211 disable string again 2010-11-03 20:20:12 +00:00
christos 0f10aa9dce add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)
2010-11-03 16:10:19 +00:00
christos d3d3da9ee3 add a clearenv test. 2010-11-03 16:09:43 +00:00
pooka dd96c7dab8 Make the shovel threads resilient to file server exit. 2010-11-01 16:27:07 +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
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 4613532253 There's apparently a circular dependency between -lrump and -lrumpuser.
This poses problems when linking statically, as for sun2.  Add -lrump
also after -lrumpuser, so that this links statically as well.
2010-10-31 13:54:31 +00:00
pooka a745e32571 implicit pid is 1 instead of 0 now 2010-10-29 15:32:51 +00:00
njoly a62c9cdf52 Add '-n' option to h_df helper tool to avoid picking wrong values if
the tested system has a similar mounted file system. Solve PR/43871.
2010-10-29 14:43:10 +00:00
njoly 5d63576039 Make putenv(3) fails with EINVAL for a null pointer, or for a string
that either miss or start with a `=' character.

Adjust man page and testcase accordingly.
2010-10-25 20:35:36 +00:00
pgoyette c829d16824 Due to timing discrepancies desribed in PR kern/43997, tickle the
watchdog just a little bit sooner.  This maintains the spirit of the
test while avoiding the actual bug.  This can be reverted once (if)
the PR is fixed.
2010-10-24 13:16:12 +00:00
pgoyette 7127b715c2 Add a third test-case to verify that disarming of the watchdog works. 2010-10-24 13:11:41 +00:00
jmmv b27e7b1e81 Oh, wow. Loads of broken ipf test cases that went unnoticed because they
were unchecked errors.  Fix them.

These have been caught by the upcoming version of atf, which explicitly
does 'set -e' in shell test programs.
2010-10-19 16:36:36 +00:00
njoly 4c968434a3 Make setenv(3) follow the standard, by rejecting invalid strings. It
now fails with EINVAL errno when variable is NULL, empty or contains
an `=' character; or value is NULL.

Adjust the man page accordingly, and exercize them in the existing
environment testcase.
2010-10-16 11:23:41 +00:00
pooka 936f8998cf Use actual buffer size instead of sizeof(char *). Makes the test
work on non-64bit platforms.
2010-10-13 11:19:28 +00:00
pooka 6dec45da47 fix -DDEBUG 2010-10-13 10:31:00 +00:00
christos 6188013961 use "RZ()" instead of ATF_CHECK(), since ATF_CHECK does not deal with errno.
This is repulsive, specially the part about hard-coding the h_macros.h file
in the c code.
2010-10-11 15:48:57 +00:00
christos 99101ab637 don't use err(), from pooka.
CV: ----------------------------------------------------------------------
2010-10-11 15:16:01 +00:00
haad 06d49ab5e3 Import new test program for device-mapper driver it currently call dm_version_list
and dm_targets_list ioctl to test if dm driver inside rump works.

It will be disable for now, because I need to find out why if I run this
test by atf-run it fails while running h_dm by hand works.

XXX. component.c in rump/libdm calls devsw_attach before dm_modcmd can do
that therefore unmodified modcmd returns error.
2010-10-06 11:24:55 +00:00
christos 37a7ff776d Add tests for putenv(3) 2010-10-01 20:12:20 +00:00
tnozaki 93b7363c93 add fmemopen(3) derrived from POSIX:2008.
libc minor bump.
2010-09-24 09:21:53 +00:00
christos 1db2d29e54 unit test for environment. Grr, someone should make fixing the sets easier
otherwise people are not going to want to write unit-tests.
2010-09-23 17:38:08 +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
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