2016-11-09 15:20:17 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
2023-02-12 22:59:37 +00:00
|
|
|
$self->root_console(tty => 4);
|
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';
|
2017-06-15 21:11:17 +00:00
|
|
|
unless (get_var("CANNED")) {
|
|
|
|
assert_script_run 'rpm -qa --queryformat "%{NAME}\n" | sort -u > /var/tmp/rpms.log';
|
|
|
|
upload_logs '/var/tmp/rpms.log';
|
2021-09-09 23:12:46 +00:00
|
|
|
# installed packages as CSV with separated NEVRA
|
|
|
|
assert_script_run 'rpm -qa --queryformat="%{NAME},%{EPOCH},%{VERSION},%{RELEASE},%{ARCH}\n" | sort > /var/tmp/rpms.nevra.csv';
|
|
|
|
upload_logs '/var/tmp/rpms.nevra.csv';
|
2017-06-15 21:11:17 +00:00
|
|
|
}
|
2016-11-09 15:20:17 +00:00
|
|
|
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';
|
2020-03-05 16:28:31 +00:00
|
|
|
assert_script_run 'systemctl -t service --no-pager --no-legend | grep -o "[[:graph:]]*\.service" > /var/tmp/services.log';
|
2016-11-09 15:20:17 +00:00
|
|
|
upload_logs '/var/tmp/services.log';
|
2021-09-09 23:12:46 +00:00
|
|
|
|
|
|
|
# Record default (or non-default) partitioning
|
|
|
|
assert_script_run 'lsblk > /var/tmp/lsblk.log';
|
|
|
|
upload_logs '/var/tmp/lsblk.log';
|
|
|
|
|
|
|
|
# Record selected group
|
|
|
|
assert_script_run 'dnf group list --verbose > /var/tmp/dnf-group-list.log';
|
|
|
|
upload_logs '/var/tmp/dnf-group-list.log';
|
|
|
|
|
|
|
|
# Collect all combinations of modules
|
|
|
|
assert_script_run 'dnf module list --enabled > /var/tmp/dnf-module-list-enabled.log';
|
|
|
|
upload_logs '/var/tmp/dnf-module-list-enabled.log';
|
|
|
|
assert_script_run 'dnf module list --disabled > /var/tmp/dnf-module-list-disabled.log';
|
|
|
|
upload_logs '/var/tmp/dnf-module-list-disabled.log';
|
|
|
|
assert_script_run 'dnf module list --installed > /var/tmp/dnf-module-list-installed.log';
|
|
|
|
upload_logs '/var/tmp/dnf-module-list-installed.log';
|
|
|
|
assert_script_run 'dnf module list --available > /var/tmp/dnf-module-list-available.log';
|
|
|
|
upload_logs '/var/tmp/dnf-module-list-available.log';
|
|
|
|
assert_script_run 'dnf module list --all > /var/tmp/dnf-module-list-all.log';
|
|
|
|
upload_logs '/var/tmp/dnf-module-list-all.log';
|
2016-11-09 15:20:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2023-02-12 22:59:37 +00:00
|
|
|
return {'ignore_failure' => 1};
|
2016-11-09 15:20:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|