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 pull request os-autoinst#18911 from tinawang123/leap
Add package conflict workaround for yast migration
- Loading branch information
Showing
4 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
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,17 @@ | ||
--- | ||
name: test_scls | ||
description: > | ||
SLCS test suite for SLES4SAP. | ||
vars: | ||
BOOTFROM: c | ||
BOOT_HDD_IMAGE: '1' | ||
INSTANCE_ID: '00' | ||
INSTANCE_SID: QAD | ||
INSTANCE_TYPE: ASCS | ||
# Below have to be entered in the OpenQA UI because it doesn't read this YAML | ||
# HDD_1: SLE-%VERSION%-%ARCH%-Build%BUILD%-sles4sap-%DESKTOP%.qcow2 | ||
schedule: | ||
- boot/boot_to_desktop | ||
- console/system_prepare | ||
- sles4sap/patterns | ||
- sles4sap/slcs_setup |
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,46 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright 2024 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
|
||
# Summary: Run the SCLS test suite provided by SAP | ||
# Requires: ENV variable SLCS pointing to installation media | ||
# Maintainer: QE-SAP <qe-sap@suse.de> | ||
|
||
use Mojo::Base qw(sles4sap); | ||
use serial_terminal 'select_serial_terminal'; | ||
use testapi; | ||
|
||
sub run { | ||
my ($self) = @_; | ||
|
||
select_serial_terminal; | ||
|
||
my $scls_version = get_required_var('SLCS_VERSION'); | ||
my $nfs_path = get_required_var('SLCS_PATH') . $scls_version; | ||
my ($proto, $path) = $self->fix_path($nfs_path); | ||
|
||
record_info("sapconf", script_output('zypper se sapconf')); | ||
record_info("insserv-compat", script_output('zypper se insserv-compat')); | ||
record_info("numactl", script_output('zypper se numactl')); | ||
record_info("libatomic1", script_output('zypper se libatomic1')); | ||
|
||
# Mount media | ||
$self->mount_media($proto, $path, '/slcs'); | ||
#record_info("mnt", script_output('find /mnt')); | ||
#record_info("slcs", script_output('find /slcs')); | ||
#assert_script_run("cd /slcs"); | ||
#my $tarball = script_output("ls slcs*.tar.gz"); | ||
#record_info("tarball", $tarball); | ||
#assert_script_run("time tar -xzvf $tarball", timeout => 600); | ||
record_info("slcs", script_output('find /slcs')); | ||
#assert_script_run("cd /slcs && chmod +x *.sh && ls -lh"); | ||
assert_script_run("cd /slcs"); | ||
assert_script_run('find . -name "*.sh" -exec chmod +x {} \;'); | ||
record_info("slcs", script_output('find /slcs')); | ||
|
||
assert_script_run("./install.sh", timeout => 600); | ||
|
||
} | ||
|
||
1; |