forked from os-autoinst/os-autoinst-distri-opensuse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'os-autoinst:master' into master
- Loading branch information
Showing
13 changed files
with
129 additions
and
16 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright 2024 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
|
||
# Summary: Handles installation reboot screen. | ||
# Maintainer: QE YaST and Migration (QE Yam) <qe-yam at suse de> | ||
|
||
package Yam::Agama::Pom::RebootPage; | ||
use strict; | ||
use warnings; | ||
|
||
use testapi; | ||
|
||
sub new { | ||
my ($class, $args) = @_; | ||
return bless { | ||
tag_installation_complete => 'agama-install-finished', | ||
tag_reboot_button => 'reboot' | ||
}, $class; | ||
} | ||
|
||
sub expect_is_shown { | ||
my ($self, %args) = @_; | ||
assert_screen($self->{tag_installation_complete}, $args{timeout}); | ||
} | ||
|
||
sub reboot { | ||
my ($self) = @_; | ||
assert_and_click($self->{tag_reboot_button}); | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: vendor_affirmation_validation | ||
description: > | ||
This is for vendor affirmation | ||
schedule: | ||
- installation/bootloader_start | ||
- security/boot_disk | ||
- fips/fips_setup | ||
- fips/openssl/openssl_fips_hash | ||
- fips/openssl/openssl_1_1_fips_hash | ||
- fips/gnutls/gnutls_base_check | ||
- console/import_gpg_keys | ||
- console/gpg | ||
- fips/mozilla_nss/nss_smoke | ||
- '{{ica}}' | ||
conditional_schedule: | ||
ica: | ||
ARCH: | ||
s390x: | ||
- fips/libica |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
os_release_name: openSUSE Tumbleweed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright 2024 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
# | ||
# Package: libjpeg_turbo | ||
# Summary: Check libjpeg_turbo version | ||
# - Test should test on sle15sp6, see https://jira.suse.com/browse/PED-4889 | ||
# - Check libjpeg-turbo version is higher than 2.1.1 | ||
# - Do functional check with jpegtran command | ||
# Maintainer: QE Core <[email protected]> | ||
|
||
use base "consoletest"; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
use serial_terminal 'select_serial_terminal'; | ||
use version_utils; | ||
use utils qw(zypper_call upload_y2logs); | ||
use registration qw(add_suseconnect_product is_phub_ready); | ||
|
||
sub run { | ||
select_serial_terminal; | ||
|
||
# Package 'libjpeg-turbo' requires PackageHub is available | ||
return if (!is_phub_ready() && is_sle); | ||
|
||
# Install libjpeg-turbo package | ||
zypper_call("install libjpeg-turbo"); | ||
my $install_version = script_output('rpm -q libjpeg-turbo --qf %{version}'); | ||
record_info("libjpeg-turbo version", $install_version); | ||
die("libjpeg-turbo version was not updated") if (package_version_cmp($install_version, '2.1.1') <= 0); | ||
|
||
# Use jpegtran command to rotate image | ||
zypper_call("install ImageMagick"); | ||
my $image = 'lizard.jpeg'; | ||
assert_script_run "wget --quiet " . data_url("imagemagick/$image"); | ||
my $size = script_output("identify -format %wx%h $image"); | ||
record_info('Old width x height: ', $size); | ||
my $image_rot = 'lizard_rot.jpeg'; | ||
# Rotate an image 90 degrees clockwise, discarding any unrotatable edge pixels | ||
assert_script_run("jpegtran -rot 90 -trim $image > $image_rot"); | ||
my $rot_size = script_output("identify -format %wx%h $image_rot"); | ||
record_info('New width x height: ', $rot_size); | ||
die("Rotate image failed") if ($size == $rot_size); | ||
} | ||
|
||
sub post_fail_hook { | ||
my ($self) = shift; | ||
upload_y2logs; | ||
$self->SUPER::post_fail_hook; | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters