Commit Graph

81 Commits

Author SHA1 Message Date
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 34fb222dd0 fix editing artifact 2010-12-17 14:51:27 +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
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 522d9feb4f use rump.halt 2010-12-12 12:49:59 +00:00
pooka cece9ab74b cleanup server after use
(XXX: need better way to reboot it)
2010-11-30 22:15:02 +00:00
pooka 4573b11817 don't include librump twice 2010-11-30 19:03:44 +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
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
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
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
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
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
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
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
martin 92474b670c Query the raw partition at runtime 2010-09-11 16:03:41 +00:00
he 5b0dfc8c63 Re-order libraries so that this links statically as well. 2010-09-02 16:55:15 +00:00
pooka c825a763b1 Make tcount volatile since a signal handler plays with it. 2010-08-30 08:30:17 +00:00
pooka 5335766609 Test for cache sync noises after disk is ejected.
test case for PR kern/43785
2010-08-24 11:29:45 +00:00
pooka edcef5fc34 Add test cases to check that sysmon/swwdog will panic and reboot
the kernel if left untickled.

Thanks to jmmv for the tip that doing this is possible in atf via
means of fork/wait.
2010-08-06 16:13:26 +00:00
pooka 327d3aa746 need to update install filename too 2010-08-04 14:43:14 +00:00
pooka fe16bec2c9 Update test program to deal with uuencoded golden data.
XXX: is it not possible to use a pipeline in atf_check?
2010-08-04 13:49:48 +00:00
pooka c6145c7409 Actually, some nagging voice in my head tells me that all binary files
in the repo should be uuencoded, so uuencode the golden audio output.
2010-08-04 13:41:03 +00:00
pooka f0a81636b4 Add test of pad(4): stuff some audio into /dev/audio, read it from
/dev/pad.  Test that we got sensible output by comparing against
a previous audibly good result.

This exercises auconv, audio and pad.
2010-08-04 13:15:15 +00:00