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 {
|
2023-02-12 22:59:37 +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-21 15:45:31 +00:00
|
|
|
# this test shows if the system is secure boot
|
|
|
|
script_run 'mokutil --sb-state';
|
2015-09-15 09:04:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2023-02-12 22:59:37 +00:00
|
|
|
return {fatal => 1};
|
2015-09-15 09:04:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|