From: "Alex Bennée" <alex.bennee@linaro.org>
To: Nicholas Piggin <npiggin@gmail.com>
Cc: qemu-ppc@nongnu.org, "Cleber Rosa" <crosa@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
"Beraldo Leal" <bleal@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [RFC PATCH 07/11] tests/avocado: Add ppc boot tests for non-free AIX images
Date: Tue, 10 Oct 2023 13:43:16 +0100 [thread overview]
Message-ID: <87h6mypryo.fsf@linaro.org> (raw)
In-Reply-To: <20231010075238.95646-8-npiggin@gmail.com>
Nicholas Piggin <npiggin@gmail.com> writes:
> An AIX image can be provided by setting AIX_IMAGE environment
> variable when running avocado.
>
> It's questionable whether we should carry these in upstream QEMU.
> It's convenient to see how to run these things, but simple enough
> to maintain in out of tree branch. I just wanted to see opinions
> about it.
Yeah there is no point adding a test no one else can run. We already
have tests that utilise dead URLs that can only run if you happen to
have the image in the avocado cache which should arguably be removed.
> ---
> tests/avocado/ppc_aix.py | 63 ++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 63 insertions(+)
> create mode 100644 tests/avocado/ppc_aix.py
>
> diff --git a/tests/avocado/ppc_aix.py b/tests/avocado/ppc_aix.py
> new file mode 100644
> index 0000000000..b8d5d4cc38
> --- /dev/null
> +++ b/tests/avocado/ppc_aix.py
> @@ -0,0 +1,63 @@
> +# Functional test that boots AIX on ppc pseries TCG and KVM
> +#
> +# Copyright (c) 2023 IBM Corporation
> +#
> +# This work is licensed under the terms of the GNU GPL, version 2 or
> +# later. See the COPYING file in the top-level directory.
> +
> +import os
> +from avocado.utils import archive
> +from avocado_qemu import QemuSystemTest
> +from avocado_qemu import wait_for_console_pattern
> +
> +class pseriesMachine(QemuSystemTest):
> +
> + timeout = 600
> +
> + def do_test_ppc64_aix_boot(self):
> + """
> + :avocado: tags=arch:ppc64
> + :avocado: tags=machine:pseries
> + """
> +
> + image = os.getenv('AIX_IMAGE')
> + if not image:
> + self.cancel('No AIX_IMAGE environment variable defined')
> +
> + _hash = os.getenv('AIX_HASH')
> + if _hash:
> + aix_disk = self.fetch_asset(image, asset_hash=_hash)
> + else:
> + aix_disk = self.fetch_asset(image)
> +
> + self.vm.set_console()
> + self.vm.add_args('-machine', 'ic-mode=xics',
> + '-smp', '16,threads=8,cores=2',
> + '-m', '4g',
> +# '-device', 'spapr-vlan,netdev=net0,mac=52:54:00:49:53:14',
> +# '-netdev', 'tap,id=net0,helper=/usr/libexec/qemu-bridge-helper,br=virbr0',
> + '-device', 'qemu-xhci',
> + '-device', 'virtio-scsi,id=scsi0',
> + '-drive',
> f'file={aix_disk},if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=none',
> + '-device',
> 'scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=1',
> + '-nodefaults')
> + self.vm.launch()
> + wait_for_console_pattern(self, 'AIX Version 7')
> +
> + def test_ppc64_aix_boot_tcg(self):
> + """
> + :avocado: tags=arch:ppc64
> + :avocado: tags=machine:pseries
> + :avocado: tags=accel:tcg
> + """
> + self.require_accelerator("tcg")
> + self.do_test_ppc64_aix_boot()
> +
> + def test_ppc64_aix_boot_kvm(self):
> + """
> + :avocado: tags=arch:ppc64
> + :avocado: tags=machine:pseries
> + :avocado: tags=accel:kvm
> + """
> + self.require_accelerator("kvm")
> + self.do_test_ppc64_aix_boot()
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
next prev parent reply other threads:[~2023-10-10 12:46 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-10 7:52 [RFC PATCH 00/11] ppc: avocado test additions and new defaults Nicholas Piggin
2023-10-10 7:52 ` [RFC PATCH 01/11] tests/avocado: ppc add powernv10 boot_linux_console test Nicholas Piggin
2023-10-10 7:52 ` [RFC PATCH 02/11] tests/avocado: Add ppc pseries and powernv Hash MMU tests Nicholas Piggin
2023-10-16 8:40 ` Cédric Le Goater
2023-10-10 7:52 ` [RFC PATCH 03/11] tests/avocado: Add pseries KVM boot_linux test Nicholas Piggin
2023-10-10 7:52 ` [RFC PATCH 04/11] tests/avocado: ppc add hypervisor tests Nicholas Piggin
2023-10-16 6:39 ` Harsh Prateek Bora
2023-10-10 7:52 ` [RFC PATCH 05/11] testing/avocado: ppc add new BookE boot_linux_console.py tests Nicholas Piggin
2023-10-10 8:02 ` Philippe Mathieu-Daudé
2023-10-10 12:03 ` Joel Stanley
2023-10-10 20:53 ` Nicholas Piggin
2023-10-16 8:07 ` Cédric Le Goater
2023-10-16 8:32 ` Cédric Le Goater
2023-10-10 7:52 ` [RFC PATCH 06/11] tests/avocado: Add FreeBSD distro boot tests for ppc Nicholas Piggin
2023-10-10 21:55 ` Warner Losh
2023-10-11 0:36 ` Nicholas Piggin
2023-10-11 4:24 ` Warner Losh
2023-10-11 2:23 ` Nicholas Piggin
2023-10-11 4:25 ` Warner Losh
2023-10-10 7:52 ` [RFC PATCH 07/11] tests/avocado: Add ppc boot tests for non-free AIX images Nicholas Piggin
2023-10-10 12:43 ` Alex Bennée [this message]
2023-10-10 12:49 ` Philippe Mathieu-Daudé
2023-10-10 21:21 ` Nicholas Piggin
2023-10-10 13:01 ` Daniel P. Berrangé
2023-10-10 21:14 ` Nicholas Piggin
2023-10-10 7:52 ` [RFC PATCH 08/11] tests/avocado: Add ppc MacOS tests Nicholas Piggin
2023-10-10 7:58 ` Philippe Mathieu-Daudé
2023-10-11 0:25 ` Nicholas Piggin
2023-10-10 7:52 ` [RFC PATCH 09/11] tests/avocado: Use default CPU for pseries machine Nicholas Piggin
2023-10-10 7:52 ` [RFC PATCH 10/11] ppc/spapr: change pseries machine default to POWER10 CPU Nicholas Piggin
2023-10-10 12:08 ` Joel Stanley
2023-10-16 8:16 ` Cédric Le Goater
2023-10-10 7:52 ` [RFC PATCH 11/11] ppc/pnv: Change powernv default to powernv10 Nicholas Piggin
2023-10-10 12:05 ` Joel Stanley
2023-10-10 20:57 ` Nicholas Piggin
2023-10-16 1:59 ` Joel Stanley
2023-10-16 8:15 ` Cédric Le Goater
2023-10-10 7:59 ` [RFC PATCH 00/11] ppc: avocado test additions and new defaults Philippe Mathieu-Daudé
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=87h6mypryo.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=bleal@redhat.com \
--cc=crosa@redhat.com \
--cc=npiggin@gmail.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=wainersm@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).