Commit Graph

18 Commits

Author SHA1 Message Date
christos c54cb81102 Don't play with "../.." in includes for h_macros.h; deal with it centrally.
Minor fixes.
2017-01-13 21:30:39 +00:00
christos ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
pgoyette 7f8653d8a0 Include better diagnostic info when a required key value cannot be retrieved from envstat -x 2015-04-23 23:23:28 +00:00
pgoyette 8f2064710d When exiting, provide a reason. 2015-04-23 04:49:37 +00:00
martin 610137e5d4 Double the timeout (to 120s) for slower machines 2015-02-27 09:16:07 +00:00
he f693807fd8 Fix static linking for the tests: -lrump is also used by -lrumpuser,
so we also need -lrump after -lrumpuser.  Fixes build for sun2.
2014-06-10 04:28:39 +00:00
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
pgoyette 198966cae9 Add new test cases for entropy-providing sensors 2012-07-19 13:36:18 +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
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
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
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
pooka c825a763b1 Make tcount volatile since a signal handler plays with it. 2010-08-30 08:30:17 +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