Commit Graph

514 Commits

Author SHA1 Message Date
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