All of lore.kernel.org
 help / color / mirror / Atom feed
From: Helge Deller <deller@kernel.org>
To: qemu-devel@nongnu.org
Cc: Richard Henderson <richard.henderson@linaro.org>,
	Helge Deller <deller@gmx.de>,
	"Kirill A . Korinsky" <kirill@korins.ky>
Subject: [PULL for 11.2 2/3] tests/functional/hppa: add OpenBSD CD-ROM boot test for qemu-system-hppa
Date: Wed, 25 Nov 2026 03:58:21 +0100	[thread overview]
Message-ID: <20261125025822.10813-3-deller@kernel.org> (raw)
In-Reply-To: <20261125025822.10813-1-deller@kernel.org>

From: "Kirill A. Korinsky" <kirill@korins.ky>

Test that OpenBSD boots on a B160L and reaches the installer.

Signed-off-by: Kirill A. Korinsky <kirill@korins.ky>
Signed-off-by: Helge Deller <deller@gmx.de>
---
 tests/functional/hppa/meson.build     |  1 +
 tests/functional/hppa/test_openbsd.py | 37 +++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100755 tests/functional/hppa/test_openbsd.py

diff --git a/tests/functional/hppa/meson.build b/tests/functional/hppa/meson.build
index df2f7ccc9c..d34feb69ae 100644
--- a/tests/functional/hppa/meson.build
+++ b/tests/functional/hppa/meson.build
@@ -6,4 +6,5 @@ tests_hppa_system_quick = [
 
 tests_hppa_system_thorough = [
   'cdboot',
+  'openbsd',
 ]
diff --git a/tests/functional/hppa/test_openbsd.py b/tests/functional/hppa/test_openbsd.py
new file mode 100755
index 0000000000..22ab1e655c
--- /dev/null
+++ b/tests/functional/hppa/test_openbsd.py
@@ -0,0 +1,37 @@
+#!/usr/bin/env python3
+#
+# Test that OpenBSD boots on B160L and reaches the installer.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+from qemu_test import QemuSystemTest, Asset
+from qemu_test import wait_for_console_pattern
+
+
+class OpenBSDB160L(QemuSystemTest):
+
+    ASSET_CD = Asset(
+        'https://ftp.eu.openbsd.org/pub/OpenBSD/8.0/hppa/cd80.iso',
+        '9b3971dc3d2362e5d694495f2c2e10795513b87c9bcca5666df5a2bfea071663')
+
+    def test_openbsd_80_installer(self):
+        self.set_machine('B160L')
+        self.require_accelerator('tcg')
+        cdrom_path = self.ASSET_CD.fetch()
+
+        self.vm.set_console()
+        self.vm.add_args('-nic', 'none',
+                         '-cdrom', cdrom_path,
+                         '-boot', 'd',
+                         '-no-reboot')
+        self.vm.launch()
+
+        wait_for_console_pattern(self, 'OpenBSD 8.0 (RAMDISK)', 'panic:')
+        wait_for_console_pattern(
+            self,
+            '(I)nstall, (U)pgrade, (A)utoinstall or (S)hell?',
+            'panic:')
+
+
+if __name__ == '__main__':
+    QemuSystemTest.main()
-- 
2.54.0



  parent reply	other threads:[~2026-11-25  2:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  2:58 [PULL for 11.2 0/3] hppa target fixes Helge Deller
2026-11-25  2:58 ` [PULL for 11.2 1/3] hw/hppa: fix OpenBSD boot on B160L emulation Helge Deller
2026-11-25  2:58 ` Helge Deller [this message]
2026-11-25  2:58 ` [PULL for 11.2 3/3] hw/hppa: adjust CPU HPA on 715 to avoid broadcast address Helge Deller
2026-11-25 20:55 ` [PULL for 11.2 0/3] hppa target fixes Richard Henderson

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=20261125025822.10813-3-deller@kernel.org \
    --to=deller@kernel.org \
    --cc=deller@gmx.de \
    --cc=kirill@korins.ky \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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.