1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-12-20 07:25:59 +00:00
os-autoinst-distri-fedora/tests/desktop_graphics_validation.pm
Adam Williamson 85f20242cb Add desktop_graphics_validation test with vulkan layer check (#464)
This is a follow-up to the recent broken mesa update kerfuffle:
https://discussion.fedoraproject.org/t/173585
one outcome of that is we determined the vulkan layer validation
check actually works in a VM with llvmpipe. The command we run
here completes successfully with mesa 25.2.7-3.fc43, but crashes
with mesa 25.2.7-2.fc43. So it seems like a good idea to add this
test. I'll probably backfill a manual test case and add it to the
wiki matrix later.

I gave it a generic name in case we come up with more similar
checks we can add later. I've asked airlied for any suggestions
he might have.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-11-28 15:37:00 -08:00

36 lines
1.0 KiB
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self = shift;
# we do everything at a graphical console because for some reason
# system often hangs if we install packages at a VT then switch back
my $password = get_var("USER_PASSWORD", "weakpassword");
desktop_launch_terminal;
assert_screen 'apps_run_terminal';
# become root
type_string "sudo su\n", max_interval => 6;
sleep 2;
type_string "$password\n", max_interval => 6;
sleep 2;
# allow user serial console access so we can do assert_script_run
assert_script_run "chmod 666 /dev/${serialdev}", max_interval => 6;
# install necessary packages
script_retry 'dnf -y install vulkan-tools vulkan-validation-layers', 300;
# test vulkan layers - see
# https://bugzilla.redhat.com/show_bug.cgi?id=2416557
type_string "exit\n", max_interval => 6;
sleep 2;
assert_script_run 'vkcube --validate --c 10', max_interval => 6;
}
sub test_flags {
return {fatal => 1};
}
1;
# vim: set sw=4 et: