From: Ben <Ben.Cownley@arm.com>
To: meta-arm@lists.yoctoproject.org
Cc: Ben Cownley <ben.cownley@arm.com>
Subject: [PATCH scarthgap 2/3] arm-systemready/oeqa: Add unattended installation testcase
Date: Tue, 15 Oct 2024 15:59:33 +0100 [thread overview]
Message-ID: <20241015145934.67938-2-Ben.Cownley@arm.com> (raw)
In-Reply-To: <20241015145934.67938-1-Ben.Cownley@arm.com>
Add test for openSUSE unattended installation
Signed-off-by: Ben Cownley <ben.cownley@arm.com>
---
.../arm_systemready_opensuse_unattended.py | 42 +++++++++++++++++++
.../arm-systemready-linux-distros-opensuse.bb | 2 +
2 files changed, 44 insertions(+)
create mode 100644 meta-arm-systemready/lib/oeqa/runtime/cases/arm_systemready_opensuse_unattended.py
diff --git a/meta-arm-systemready/lib/oeqa/runtime/cases/arm_systemready_opensuse_unattended.py b/meta-arm-systemready/lib/oeqa/runtime/cases/arm_systemready_opensuse_unattended.py
new file mode 100644
index 00000000..aea8df3e
--- /dev/null
+++ b/meta-arm-systemready/lib/oeqa/runtime/cases/arm_systemready_opensuse_unattended.py
@@ -0,0 +1,42 @@
+from oeqa.runtime.case import OERuntimeTestCase
+
+class SystemReadyOpenSUSEUnattendedTest(OERuntimeTestCase):
+ def setUp(self):
+ super().setUp()
+ self.console = self.target.DEFAULT_CONSOLE
+
+ def test_opensuse_unattended(self):
+ # Turn on the FVP.
+ self.target.transition('on')
+
+ # Timeout value = elapsed time * 2; where elapsed time was collected
+ # from the elapsed time in the log.do_testimage for each function after
+ # the build is finished on the development machine.
+ self.target.expect(self.console,
+ 'Booting `Installation\'',
+ timeout=(2 * 60))
+ bb.plain('Installation status: Loading the kernel, initrd and basic drivers...')
+
+ self.target.expect(self.console,
+ 'Starting hardware detection...',
+ timeout=(40 * 60))
+ bb.plain('Installation status: Starting hardware detection...')
+
+ self.target.expect(self.console,
+ 'Loading Installation System',
+ timeout=(60 * 60))
+ bb.plain('Installation status: Loading Installation System...')
+
+ self.target.expect(self.console,
+ 'Starting Installer',
+ timeout=(40 * 60))
+ bb.plain('Installation status: Performing Installation...')
+
+ self.target.expect(self.console,
+ 'Finishing Configuration',
+ timeout=(15 * 60 * 60))
+ bb.plain('Installation status: Finishing Configuration...')
+
+ # Waiting till the installation is finished.
+ self.target.expect(self.console, r'.*login: ', timeout=(6 * 60 * 60))
+ bb.plain('Installation status: openSUSE installation finished successfully.')
diff --git a/meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros-opensuse.bb b/meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros-opensuse.bb
index 7d02a258..33f20587 100644
--- a/meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros-opensuse.bb
+++ b/meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros-opensuse.bb
@@ -73,6 +73,8 @@ BUILD_NO = "491.1"
SRC_URI = "https://download.opensuse.org/distribution/leap/${PV}/iso/openSUSE-Leap-${PV}-${ISO_TYPE}-aarch64-Build${BUILD_NO}-Media.iso;unpack=0;downloadfilename=${ISO_IMAGE_NAME}.iso"
SRC_URI[sha256sum] = "456cc4f99b044429d8a89bd302c06e9e382d6ac4dc590139a7096ebb54f5357b"
+TEST_SUITES = "${@oe.utils.vartrue("DISTRO_UNATTENDED_INST_TESTS", "arm_systemready_opensuse_unattended", "", d)}"
+
ISO_LABEL = "${@oe.utils.vartrue("DISTRO_UNATTENDED_INST_TESTS", "OEMDRV", "", d)}"
BOOT_CATALOG = "${@oe.utils.vartrue("DISTRO_UNATTENDED_INST_TESTS", "boot.catalog", "", d)}"
BOOT_IMAGE = "${@oe.utils.vartrue("DISTRO_UNATTENDED_INST_TESTS", "EFI/BOOT/bootaa64.efi", "", d)}"
--
2.34.1
next prev parent reply other threads:[~2024-10-15 14:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-15 14:59 [PATCH scarthgap 1/3] arm-systemready/linux-distros: Implement unattended openSUSE Ben
2024-10-15 14:59 ` Ben [this message]
2024-10-15 14:59 ` [PATCH scarthgap 3/3] kas: Include unattended openSUSE test Ben
-- strict thread matches above, loose matches on Subject: below --
2024-10-15 14:38 [PATCH scarthgap 1/3] arm-systemready/linux-distros: Implement unattended openSUSE Ben
2024-10-15 14:38 ` [PATCH scarthgap 2/3] arm-systemready/oeqa: Add unattended installation testcase Ben
2024-10-15 14:46 ` Ben Cownley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241015145934.67938-2-Ben.Cownley@arm.com \
--to=ben.cownley@arm.com \
--cc=meta-arm@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.