2016-11-09 15:20:17 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
|
|
|
$self->root_console(tty=>3);
|
2017-03-02 22:47:44 +00:00
|
|
|
assert_script_run 'top -i -n20 -b > /var/tmp/top.log', 120;
|
2016-12-02 23:01:40 +00:00
|
|
|
upload_logs '/var/tmp/top.log';
|
2016-11-09 15:20:17 +00:00
|
|
|
assert_script_run 'rpm -qa --queryformat "%{NAME}\n" | sort -u > /var/tmp/rpms.log';
|
|
|
|
upload_logs '/var/tmp/rpms.log';
|
|
|
|
assert_script_run 'free > /var/tmp/free.log';
|
|
|
|
upload_logs '/var/tmp/free.log';
|
|
|
|
assert_script_run 'df > /var/tmp/df.log';
|
|
|
|
upload_logs '/var/tmp/df.log';
|
2017-01-11 19:58:37 +00:00
|
|
|
assert_script_run 'systemctl -t service --no-pager --no-legend | grep -o ".*\.service" > /var/tmp/services.log';
|
2016-11-09 15:20:17 +00:00
|
|
|
upload_logs '/var/tmp/services.log';
|
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
|
|
|
# without anything - rollback to 'lastgood' snapshot if failed
|
|
|
|
# 'fatal' - whole test suite is in danger if this fails
|
|
|
|
# 'milestone' - after this test succeeds, update 'lastgood'
|
|
|
|
# 'important' - if this fails, set the overall state to 'fail'
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|