Commit Graph

478 Commits

Author SHA1 Message Date
joerg
65b45bb0d8 Actually add the check_stack_alignment implementation for x86. 2010-12-03 20:51:21 +00:00
njoly
71281c77f5 Add testcase for PR/44189: strtod(3) wrong results with "-0x". 2010-12-03 13:11:50 +00:00
riz
12c055f488 Cause the tests to use plain files instead of vnd; for the kinds of
tests being done, vnd isn't needed and adds a potential resource
conflict issue on the system running the test.  As a bonus, the
tests run faster because less data is being shuffled around.
2010-12-03 05:23:46 +00:00
riz
539a0898bc Correct two function names:
grow_ffsv1_64k() -> grow_ffsv1_64k_head()
   shrink_ffsv1_64k() -> shrink_ffsv1_64k_head()
2010-12-03 04:10:36 +00:00
christos
bb46e8373d Add a new test for the latest variable expansion problem.
- Cannot test because make test prints:
  .: Can't open /usr/share/atf/atf.header.subr
- The shell script common code needs to be fixed to follow regular shell
  style.
  - variables are underquoted
  - uses `` instead of $()
  - does not use local for local variables, prefixes with undescore
  - needlessly uses braces for numeric and symbolic variables.
  - uses a fifo to grab output, and does not clean it up properly on error
  - should not exit with > 127 !!!
2010-12-03 01:29:55 +00:00
riz
07bc982d01 Update existing test cases and add a couple more:
- PR bin/44177 is fixed
- test grow/shrink on a ffsv1 with 64k blocksize, which was broken until
  recently
- make sure the partial cylinder left over is big enough so it doesn't
  get thrown away now that resize_ffs properly uses the last cyl.

XXX TODO:  add tests which ensure data integrity.
2010-12-02 22:03:23 +00:00
pooka
fe64a82d7b comment why vax is left out of all the fun 2010-12-01 07:12:03 +00:00
riz
3c3ed948f1 Add some basic tests of resize_ffs(8). The 'grow' test does nothing
more than create an empty file system, grow it, and makes sure fsck
finds the result clean.  The 'shrink' test does likewise for shrinking,
but is an expected failure at the moment due to PR bin/44177.
2010-11-30 23:17:27 +00:00
pooka
cece9ab74b cleanup server after use
(XXX: need better way to reboot it)
2010-11-30 22:15:02 +00:00
pooka
c2681d795d Add a simple and stress test cases for the rump remote syscall code.
Fun fact: since the server daemonizes into its own process group,
it's not in atf's pgrp.  Use rump_sys_reboot() in atf cleanup to
kill the server after the test.
2010-11-30 22:09:15 +00:00
pooka
4573b11817 don't include librump twice 2010-11-30 19:03:44 +00:00
joerg
236a44094d Test alignment of constructor / destructor calls as well as the stack
of new threads. Currently implement for i386 and AMD64.
2010-11-30 18:38:53 +00:00
pooka
cc18af6c52 one more test 2010-11-30 18:19:47 +00:00
pooka
fb6b034dfb check etfs key rules 2010-11-30 18:14:38 +00:00
pooka
74861a965c test makecn/freecn 2010-11-30 16:16:33 +00:00
pooka
fe0f81073d comment tyops 2010-11-30 14:31:14 +00:00
pooka
401a8e7a51 Get rid of the "sleep 1" by using rump_daemonize_begin/end().
Notably, md is a little tricky for this, since the ioctl that
configures the service also blocks in the kernel.  Therefore, use
an additional pthread to probe when the service is fully configured
and the server can detach.

Also, rawpart love.
2010-11-30 14:29:05 +00:00
pgoyette
67b7416103 Revert previous. The atf default timeout has been reverted, and the 90sec
timer I imposed here is still sometimes "not quite long enough" for the
tests to complete in an amd64 qemu/anita environment.
2010-11-29 18:21:15 +00:00
pooka
48e1b6d6d5 Add simple test for md(4) which just stuffs junk into /dev/rmd0d
and checks the same data can be retrieved.
2010-11-23 15:38:53 +00:00
mrg
9dd1efa373 vax doesn't have ieee fp, so, don't try to test ieee fp on vax. 2010-11-22 08:47:58 +00:00
njoly
c8fe673676 Add testcase for PR/44113: printf(3) should ignore zero padding for
nan/inf.
2010-11-19 18:18:53 +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
b98ccd4da5 test snapshots on ffsv2 too 2010-11-19 12:36:49 +00:00
pgoyette
0b49450103 Since /usr/games is rarely in one's $PATH, provide an absolute path to the
test-program.  This lets automated testing reach and execute a couple more
tests rather than skipping them.

Discussed privately with pooka@
2010-11-19 12:31:36 +00:00
christos
e285c9c3f2 since the fix was reverted, revert the test. 2010-11-17 13:41:52 +00:00
tron
40d1f42309 Put my name in the author section. 2010-11-17 08:55:27 +00:00
christos
cbd46215a7 Fixed test that was expected to fail. 2010-11-16 18:25:03 +00:00
tron
55e8419d17 Split threaded environment test for the other environment tests as
suggested by Nicolas Joly in private e-mail. Linking a binary with
"libpthread" effects the beaviour of "libc" and we really want to
test both cases.
2010-11-16 14:03:47 +00:00
pooka
984ea70871 Add another set of problematic offsets from the quoted thread. 2010-11-15 22:01:44 +00:00
pooka
a77ca5ecfc double the timeout for slow hosts (from 1 to 2 seconds) 2010-11-15 21:29:39 +00:00
pooka
7bdde1ba6d Add test case for PR kern/44093 (fixed already, but tested to fail
without fix applied).
2010-11-15 20:39:00 +00:00
tron
91e8290e88 Add a new regression test "t_threaded" which tests using getenv_r(3),
putenv(3), setenv(3) and unsetenv(3) concurrently.
2010-11-14 19:19:24 +00:00
tron
18217b5088 Update tests for *env(3):
- Introduce randomness into "t_setenv" to avoid freeing environment
  variables exactly in the order they have been allocated.
  Also call unsetenv(3) twice to make sure it behaves well if the
  environment variable doesn't exist.
- "t_getenv" is no longer a known failure after getenv(3) and getenv_r(3)
  have been fixed.
2010-11-14 18:15:08 +00:00
tron
603058a76c Add a test for getenv(3) which fails at the moment because it doesn't
handle "=" in variable names properly.

I'll send out a diff for review soon which fixes this.
2010-11-13 21:08:36 +00:00
tron
926ab269df Improve testing of environment handling:
1.) Always check the return value of setenv(3) and unsetenv(3).
2.) Test that calling setenv(..., ..., 0) doesn't overwrite environment
    variables.
3.) Add a new test which mixes putenv(3) and setenv(3).
2010-11-13 18:52:55 +00:00
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