2015-09-15 09:04:01 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
2018-06-25 18:28:12 +00:00
|
|
|
use utils;
|
2015-09-15 09:04:01 +00:00
|
|
|
|
|
|
|
sub run {
|
2022-07-28 20:32:57 +00:00
|
|
|
my $self = shift;
|
|
|
|
if (not(check_screen "root_console", 0)) {
|
|
|
|
$self->root_console(tty => 4);
|
2015-09-15 09:04:01 +00:00
|
|
|
}
|
|
|
|
assert_screen "root_console";
|
2018-06-25 18:28:12 +00:00
|
|
|
# for aarch64 non-english tests
|
|
|
|
console_loadkeys_us;
|
2015-09-15 09:04:01 +00:00
|
|
|
# this test shows if the system is booted with efi
|
2016-01-12 17:27:14 +00:00
|
|
|
assert_script_run '[ -d /sys/firmware/efi/ ]';
|
2024-03-19 23:52:00 +00:00
|
|
|
# if Secure Boot should be enabled, check it is; if it isn't,
|
|
|
|
# that *probably* indicates a test system issue not a distro bug,
|
|
|
|
# but we want to know either way
|
|
|
|
validate_script_output('mokutil --sb-state', sub { m/SecureBoot enabled/ }) if (get_var("UEFI_SECURE"));
|
2015-09-15 09:04:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2022-07-28 20:32:57 +00:00
|
|
|
return {fatal => 1};
|
2015-09-15 09:04:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|