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
pgoyette
9231586d8c
Now that we update the callout timer as soon as it is updated, we no longer
...
need to have an extended wait for the first powerd event to occur. Revert
that portion of previous commit.
2010-12-30 04:01:59 +00:00
yamt
9b72a3c9c6
don't assume atomic read/write on socketpair. puffs_kargs at least is
...
too large to assume atomic read/write. this makes some tests including
fs/puffs/t_basic pass on my environment.
2010-12-29 22:56:59 +00:00
pgoyette
0e0fe099e8
Various cleanup (most from pooka@)
...
- Does not require root access on the host, only in the rump
environment (which it gets by default)
- Manual clean-up of powerd process and rump-server socket is
not necessary - happens automatically
- Don't use a global, absolute path for the rump-server socket
For alarm_sensor, make sure events are still delivered after 'envstat -S'
(the cur_value was deliberately left at an alarm level and should not be
affected by the reset).
No longer need to skip the alarm_sensor and limit_sensor tests, since
pooka fixed passing of proplist to built-in modules.
Increase wait time for first powerd event report. (This should not be
needed, so there's probably a bug somewhere, but the increased timeout
lets us validate the rest of the sensor functionality.)
2010-12-29 19:21:39 +00:00
pgoyette
271a24bb60
Fix name of t_ldexp test from previous
2010-12-28 20:25:31 +00:00
pgoyette
404ccc33e0
Don't build ldexp tests on vax
2010-12-28 17:33:58 +00:00
pgoyette
238e3baebf
Migrate the ldexp test to atf
2010-12-28 16:57:00 +00:00
christos
ba385e83d4
allocate the buffer at the same function level as the compiler so that
...
the compiler knows to emit the right _chk call.
2010-12-28 16:18:46 +00:00
pgoyette
66bfd22447
Migrate the remaining libc/gen tests to atf
2010-12-28 12:46:15 +00:00
pgoyette
cfe38ef780
Move the various setjmp tests from regress to atf
2010-12-27 19:35:30 +00:00
njoly
3e3a3e290e
Do use integer arithmetics to generate FPE_INTDIV in sigfpe_int testcase.
...
Ok pgoyette.
2010-12-27 15:24:13 +00:00
he
f806491146
Don't try to build the SSP tests if the target doesn't have SSP.
2010-12-27 15:10:33 +00:00
pgoyette
e2d4656741
Since atf_check doesn't deal with a pipeline, modify the tests to pipe
...
the output of the echo commands to atf_check itself. This fixes the
three new ssp failures.
Note that the raw, strcpy, vsprintf, and vsnprintf tests still fail, but
they failed in the old 'regress' style, too.
2010-12-27 05:27:34 +00:00
pgoyette
575e75ffe4
Migrate the ssp tests from regress to atf.
...
Of the 17 tests, 4 fail in both the regress and atf style. 3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
2010-12-27 02:04:18 +00:00
pgoyette
3ca5a7db69
Migrate the last of the libc/string/ tests from regress to atf, and
...
re-enable building of t_popcount
2010-12-26 13:35:54 +00:00
pgoyette
a583a258c9
Make running this test conditional on the setting of atf configuration
...
variable "run_popcount". This is a really long-running test (it takes
several hours on a qemu-emulation on a 2.8GHz AMD Pheno II) but could
still be useful if you want to run it manually, with the command
atf-run -v run_popcount=YES
2010-12-26 13:29:47 +00:00
pgoyette
3f7804c696
Re-enable printing of MD data, with appropriate casts.
2010-12-26 12:32:28 +00:00
pgoyette
324775a6d1
For now, don't try to print out machine-dependant stuff. When I figure
...
out what the right format strings are, I'll re-enable it.
2010-12-26 03:25:07 +00:00
pgoyette
f03970fd11
Migrate J.T.Conklin's public-domain str* tests from regress to atf.
...
While here, do some clean-up and knf.
2010-12-25 21:10:24 +00:00
pgoyette
b1084f5b5e
Correctly added the conditional part, but now need to remove the original
...
unconditional part.
2010-12-25 01:25:37 +00:00
pgoyette
dcfc8e943b
Don't include the siginfo tests unless we actually have siginfo ability!
2010-12-25 01:22:02 +00:00
pgoyette
de2970929a
Move the siginfo tests from regress to atf. While here, add a new test
...
for PR/43655.
XXX The sigchild_dump test currently fails when execute under atf-run.
XXX It does not fail when executed directly from the shell, so there's
XXX something in atf that prevents the child process from dumping.
2010-12-25 01:04:26 +00:00
skrll
f1d73a2c94
Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
...
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).
Mark libpthread as DF_1_NOOPEN and use it to test the functionality.
Somewhat taken from FreeBSD.
Fixes PR 42029.
OK from christos and joerg.
2010-12-24 12:41:42 +00:00
pgoyette
546ea3ce2c
Migrate a couple more tests to aft
2010-12-23 15:27:44 +00:00
pgoyette
bf59258ffb
Fix the $NetBSD$ tag (missed the trailing $)
2010-12-23 13:34:46 +00:00
pgoyette
95456adcc6
Migrate a couple more tests from the old regress structure to atf
2010-12-22 23:45:44 +00:00
pgoyette
ad537a3656
Migrate a few more tests from old regress style to atf
2010-12-21 14:23:42 +00:00
christos
1f98304948
We don't expect tests to fail anymore.
2010-12-21 00:24:14 +00:00
pgoyette
e02d91d677
Move the only regress/lib/libm test to the new atf format
2010-12-20 23:47:23 +00:00
njoly
198de556b0
Add testcase from PR/44255, that exercize parsedate(3) with sample
...
strings taken from the manpage.
2010-12-20 16:23:01 +00:00
pgoyette
2fbd285235
Add a rump-based set of tests for sysmon_envsys(8) + powerd(8) + swsensor(4)
2010-12-20 04:56:18 +00:00
christos
4b1b5b119c
remove NOGCCERROR, WARNS?=5
2010-12-18 15:02:06 +00:00
pooka
94e5abaaf2
Disable test cases which have not worked in ages instead of skipping them.
2010-12-18 13:06:51 +00:00
pooka
603f53f8f8
fix the kflag_limits test case and enable it
2010-12-18 12:47:21 +00:00
pooka
7e8af32729
test case for PR kern/44251
2010-12-18 09:44:41 +00:00
pooka
eafb3db912
Check that raid1 and raid5 can serve data after a component has
...
been nuked.
2010-12-18 09:26:57 +00:00
pooka
5a30a389c0
atf-check => atf_check
2010-12-18 08:35:53 +00:00
pooka
c48a04bffd
Fix test to use atf_check. My development machine still had
...
/usr/bin/atf-check installed ....
2010-12-18 08:34:56 +00:00
joerg
16062ee68b
Don't force debug build.
2010-12-18 04:31:41 +00:00
joerg
fac9a6645d
Don't force debug build. XXX Why does this have NOGCCERROR=1 set?
2010-12-18 04:31:22 +00:00
joerg
d154c9348e
Don't force debug build.
2010-12-18 04:27:17 +00:00
pooka
afe2ac389d
Add an isolated test case for PR lib/44248.
2010-12-17 19:12:30 +00:00
pooka
34fb222dd0
fix editing artifact
2010-12-17 14:51:27 +00:00
riz
2b22938736
Reduce the number of tests run automatically, as they apparently go
...
quite slowly when run under qemu.
Also, change the switch variable from "RESIZE_FFS_BIG_TESTS" to
"RESIZE_FFS_ALL_TESTS", and only check if it's set or not.
2010-12-16 17:50:13 +00:00
riz
b83a35485a
Factor out more common code. No functional changes intended.
2010-12-16 17:16:07 +00:00
pooka
b9274e267e
fix post-move testsdir. duh
2010-12-15 21:33:10 +00:00
pooka
a918a74628
"A few seconds later" I realized the kernel directory is dev/raidframe,
...
not dev/raid, so reflect this in the test dir. Affects location
for test of PR kern/44239.
2010-12-15 20:40:17 +00:00
pooka
b3286c98db
Add first raidframe tests. This is the test for the kernel fault
...
described in PR kern/44239
2010-12-15 20:37:52 +00:00
pooka
9c1382e3c1
Use proper cleanup.
...
XXX: the atf sh "compiler" should check for errors.
2010-12-15 19:14:37 +00:00
haad
84aab3c9ee
Hook traceroute test case to build. it was added to lists so unbreak build now.
2010-12-15 10:36:49 +00:00
pooka
26aa758c5c
Add simple tests for traceroute. The test bootstraps a three-node
...
network with one router in the middle and checks traceroute from
one endpoint to another with both UDP and ICMP.
(i guess these test networking at least as much as traceroute
itself, but then again that's not a bad thing)
2010-12-15 00:13:52 +00:00
pooka
1d9fa0a3f8
Use a larger array to avoid overflow.
...
from Piotr Meyer
2010-12-14 20:09:43 +00:00
pooka
91ed45ab3f
use ping -n, since technically we don't have dns
2010-12-14 19:08:22 +00:00
pooka
4427b5725d
Retire the old C helper in h_img2cgd since we can now write everything
...
with a shellscript in terms of rump.cgdconfig and dd.
2010-12-14 17:48:31 +00:00
pooka
756d5b62e3
Add another version of the simple ping test, this time written as a
...
shell script and using rump_server, rump.ifconfig and rump.ping.
XXX: uses rump_allserver for now, though, since i noticed a problem
where the rump kernel syscall vector does not get updated for
dlopen()'d libraries (and hence if you dlopen librumpnet.so, socket()
still gives ENOSYS). Me be fixink it later.
2010-12-14 11:03:17 +00:00
skrll
be2356ad6f
Convert a couple of old regress tests to ATF.
...
Remove the regress/usr.bin/rtld/dlopen/dlopen.c test as well as it's
covered by existing ATF test(s).
2010-12-14 05:57:31 +00:00
pooka
73b0b48907
Retire h_simpleserver and use rump_server instead.
2010-12-13 13:39:42 +00:00
riz
b7560d46dc
PR bin/44209 is now fixed, expect failure -> expect success.
2010-12-12 22:50:42 +00:00
joerg
31b95753a0
Simplify
2010-12-12 18:21:21 +00:00
pooka
d59692159a
h_reboot has been superceded by rump.halt
2010-12-12 12:53:35 +00:00
pooka
b15e66a6c2
use rump.halt in cleanup
2010-12-12 12:51:19 +00:00
pooka
522d9feb4f
use rump.halt
2010-12-12 12:49:59 +00:00
pooka
c876d9d94e
Reset error from umount. This squelches atf "cleanup should not
...
fail" warning if a test fails when the fs is not mounted.
2010-12-11 11:36:48 +00:00
pooka
772299258e
Can't use dynamic data in cleanup (it's run in a different process),
...
so get rid of $MNTPT and use the constant value the variable was
set to.
2010-12-11 11:31:27 +00:00
riz
ee56abbce8
Wrap the bigger tests in RESIZE_FFS_BIG_TESTS, as the automated test
...
run seems to choke over a certain size. (This will speed up the runs
as well)
2010-12-09 17:28:05 +00:00
riz
351455dcdb
Remove accidentally-committed debug-assist code.
2010-12-09 16:59:35 +00:00
riz
06253fa750
Re-work the resize_ffs(8) tests:
...
Put real data into file systems before resizing: the test data
was randomly generated and is in pairs of files each a power-of-two and
power-of-two plus one bytes to hopefully catch block and frag issues.
Each test fills (nearly) the file system with test data. If shrinking,
it removes enough data so that the shrunken file system will be large enough
to accomodate the data. (It's done this way to hopefully ensure some or
most of the data will need to be moved when shrinking). The files are
then checked with MD5 against the known list. This particular method
was chosen to reduce the amount of data checked in while still retaining
reproducibility.
There are more tests to come; since resize_ffs(8) currently does not
support ffsv2 or byteswapped file systems, only a couple token expected-fail
test cases for those were added. Also, only 8:1 blocksize:fragsize
combinations are currently tested.
2010-12-09 05:19:02 +00:00
njoly
f23e744cdd
Make tests set generation optional, skipped for MKATF=no build.
2010-12-08 23:56:01 +00:00
joerg
1b0b455148
Link t_fpu against libm if the compiler doesn't want to inline sin/cos.
2010-12-08 23:50:14 +00:00
joerg
994bc56774
Kill file that should be pulled in from a different directory.
...
Fixes regression test for i386.
2010-12-07 00:54:44 +00:00
pooka
335d54d634
Adjust PR format in xfail message so that html test results gain a
...
link to http://gnats.netbsd.org/44189
2010-12-06 17:30:07 +00:00
pooka
7dec306c60
In the seek test also check that files end up with expected size.
2010-12-06 16:43:26 +00:00
christos
bfb58157c3
adjust errno after kernel change to be EINVAL
2010-12-06 16:37:25 +00:00
pooka
49e8823e2c
test for 'dd seek=' (could be improved, but at least we have something now)
2010-12-06 15:54:00 +00:00
pooka
1a21107ad9
Add an xfail test for the mbuf leak described in PR kern/44196.
...
This is yet another example of a simple test which would be much
trickier to execute against the host kernel. You would either need
to put networking in a complete lockdown, or do some "statistical"
methods where you trigger the bug many many times and attempt to
ascertain a rising trend in mbuf count. And, of course, the leaked
mbufs don't go away from the host kernel once the test ends. In
contrast, we *know* that there is no other networking activity in
a rump kernel, so we can execute the operation exactly once, plus
the leaked mbuf "disappears" when the test is done.
2010-12-06 11:32:01 +00:00
pooka
f5c0e73abf
RNDADDDATA2 doesn't xfail anymore.
2010-12-04 17:41:18 +00:00
pooka
f642190056
Add test case for suspected reason behind kernel panic described
...
in PR kern/44190
2010-12-04 17:38:42 +00:00
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