Commit Graph

61 Commits

Author SHA1 Message Date
martin
1f299de05d The sh api calls it atf_expect_fail, while the c api calls it
atf_tc_expect_fail - this is shell, so fix the names accordingly.
XXX Why do they differ?
2013-04-14 16:07:46 +00:00
jmmv
371c38e8cf These tests are flaky so mark them as expected failures... when they fail.
See PR kern/47661.
2013-03-17 06:29:55 +00:00
martin
11175263ad The CD emulator has been fixed, no longer expect the test to die. 2013-03-15 16:18:49 +00:00
jmmv
fcde6153ab Expect a crash in the noisyeject test. Mention PR kern/47646. 2013-03-14 06:43:32 +00:00
joerg
94bcefa490 Check for RUMP programs before using them. 2013-02-19 21:08:24 +00:00
pgoyette
d3317b816e Actually remove the no-longer-needed Atffiles 2012-12-02 18:40:43 +00:00
pgoyette
f93daef0af Build helper programs as PROGS and not as TESTS_{C,SH}
This enables us to remove custom Atffiles whose only purpose was to avoid
using the helpers as tests.

XXX src/tests/dev/dm/ is not (yet) linked into the build!
2012-12-02 18:39:53 +00:00
christos
cb461c6808 Exclude tests that use rump 2012-08-08 13:57:05 +00:00
pgoyette
198966cae9 Add new test cases for entropy-providing sensors 2012-07-19 13:36:18 +00:00
martin
d0518d9cf8 Comment out the expected failure, as it does not trigger anymore. 2012-05-06 17:27:22 +00:00
gson
4b51693338 Fix cut-and-paste-o that casused the raid1_normal test case to have no
cleanup function defined, resulting in a rump_server process hanging
around after the tests completed.
2011-10-15 11:31:40 +00:00
martin
2e58500e62 Add missing RUMP_SERVER export, so the "normal" test does not fail with
a stupid error.
2011-08-09 13:48:55 +00:00
oster
bfb5c54728 Note that PR kern/44251 is fixed.
Add tests for normal configuration of RAID 1 and RAID 5 sets.
2011-07-29 19:57:38 +00:00
christos
7933a8d7d6 need signal.h for kill()
this is why it was wrong for rump_syscalls.h to include this.
2011-06-26 12:14:59 +00:00
riastradh
ee53e39c19 Expand tests for unaligned writes to cgd. No more xfail.
PR kern/44515
PR kern/44964
2011-05-19 20:37:50 +00:00
jmmv
9b4c1721f3 Instead of doing 'atf_check ... sh -c foo', just do 'atf_check ... -x foo'. 2011-05-14 17:42:28 +00:00
mlelstv
ec85dd4442 validate that getrawpartition() didn't fail. 2011-03-27 08:53:56 +00:00
jmmv
ecaa6aed45 Force cleanup parts to exit with a success status. Failures in cleanup
should not be allowed by atf-run (although they currently are ignored).
2011-03-22 16:16:30 +00:00
riz
736d6f3deb PR#44239 is now fixed, remove the xfail from the test. 2011-03-01 22:52:54 +00:00
pooka
58a824fcb1 explicitly zero-fill the initial md backend 2011-02-10 13:29:02 +00:00
pooka
5cae2aa40c test case for PR kern/44515 2011-02-04 19:58:10 +00:00
pooka
bcbc24966e convert tests from oldstyle dd rif/rof to newstyle dd | rump.dd 2011-02-04 19:44:00 +00:00
pooka
4fec18bfb3 Represent test data as bytes to make it "endian-independent".
from martin
2011-01-24 08:26:23 +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
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
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
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
2fbd285235 Add a rump-based set of tests for sysmon_envsys(8) + powerd(8) + swsensor(4) 2010-12-20 04:56:18 +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
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