qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Henrique Barboza <danielhb413@gmail.com>
To: BALATON Zoltan <balaton@eik.bme.hu>,
	qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Cc: Nicholas Piggin <npiggin@gmail.com>,
	clg@kaod.org, philmd@linaro.org,
	Bernhard Beschow <shentey@gmail.com>,
	Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
	Rene Engel <ReneEngel80@emailn.de>,
	vr_qemu@t-online.de
Subject: Re: [PATCH v7 3/3] tests/avocado: Add test for amigaone board
Date: Tue, 7 Nov 2023 15:53:18 -0300	[thread overview]
Message-ID: <9321822c-58d8-464d-91ad-12e078f1d001@gmail.com> (raw)
In-Reply-To: <b1a0246840fcff1fe6bbd8685e2474a9231b34c5.1698406922.git.balaton@eik.bme.hu>



On 10/27/23 08:54, BALATON Zoltan wrote:
> Add an avocado test for the amigaone board that tests it with the
> firmware.
> 
> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
> ---

Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>



>   tests/avocado/ppc_amiga.py | 38 ++++++++++++++++++++++++++++++++++++++
>   1 file changed, 38 insertions(+)
>   create mode 100644 tests/avocado/ppc_amiga.py
> 
> diff --git a/tests/avocado/ppc_amiga.py b/tests/avocado/ppc_amiga.py
> new file mode 100644
> index 0000000000..b6f866f91d
> --- /dev/null
> +++ b/tests/avocado/ppc_amiga.py
> @@ -0,0 +1,38 @@
> +# Test AmigaNG boards
> +#
> +# Copyright (c) 2023 BALATON Zoltan
> +#
> +# This work is licensed under the terms of the GNU GPL, version 2 or
> +# later.  See the COPYING file in the top-level directory.
> +
> +from avocado.utils import archive
> +from avocado.utils import process
> +from avocado_qemu import QemuSystemTest
> +from avocado_qemu import wait_for_console_pattern
> +
> +class AmigaOneMachine(QemuSystemTest):
> +
> +    timeout = 90
> +
> +    def test_ppc_amigaone(self):
> +        """
> +        :avocado: tags=arch:ppc
> +        :avocado: tags=machine:amigaone
> +        :avocado: tags=device:articia
> +        :avocado: tags=accel:tcg
> +        """
> +        self.require_accelerator("tcg")
> +        tar_name = 'A1Firmware_Floppy_05-Mar-2005.zip'
> +        tar_url = ('https://www.hyperion-entertainment.com/index.php/'
> +                   'downloads?view=download&format=raw&file=25')
> +        tar_hash = 'c52e59bc73e31d8bcc3cc2106778f7ac84f6c755'
> +        zip_file = self.fetch_asset(tar_name, locations=tar_url,
> +                                    asset_hash=tar_hash)
> +        archive.extract(zip_file, self.workdir)
> +        cmd = f"tail -c 524288 {self.workdir}/floppy_edition/updater.image >{self.workdir}/u-boot-amigaone.bin"
> +        process.run(cmd, shell=True)
> +
> +        self.vm.set_console()
> +        self.vm.add_args('-bios', self.workdir + '/u-boot-amigaone.bin')
> +        self.vm.launch()
> +        wait_for_console_pattern(self, 'FLASH:')


  reply	other threads:[~2023-11-07 18:53 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-27 11:54 [PATCH v7 0/3] Add emulation of AmigaOne XE board BALATON Zoltan
2023-10-27 11:54 ` [PATCH v7 1/3] hw/pci-host: Add emulation of Mai Logic Articia S BALATON Zoltan
2023-11-07 18:53   ` Daniel Henrique Barboza
2023-10-27 11:54 ` [PATCH v7 2/3] hw/ppc: Add emulation of AmigaOne XE board BALATON Zoltan
2023-11-07 18:21   ` [PATCH v8 " BALATON Zoltan
2023-11-07 18:25     ` Peter Maydell
2023-11-07 18:28       ` BALATON Zoltan
2023-11-07 18:40     ` [PATCH v9 " BALATON Zoltan
2023-11-07 18:52       ` Daniel Henrique Barboza
2023-10-27 11:54 ` [PATCH v7 3/3] tests/avocado: Add test for amigaone board BALATON Zoltan
2023-11-07 18:53   ` Daniel Henrique Barboza [this message]
2023-10-28 14:52 ` [PATCH v7 0/3] Add emulation of AmigaOne XE board Bernhard Beschow
2023-10-28 18:20   ` BALATON Zoltan
2023-11-06 10:30 ` BALATON Zoltan
2023-11-07  8:50   ` BALATON Zoltan
2023-11-07 14:42     ` BALATON Zoltan
2023-11-07 16:20       ` Daniel Henrique Barboza
2023-11-07 16:41         ` BALATON Zoltan
2023-11-07 17:20 ` Daniel Henrique Barboza
2023-11-07 17:33   ` BALATON Zoltan
2023-11-07 17:42     ` Daniel Henrique Barboza
2023-11-07 17:49       ` BALATON Zoltan
2023-11-07 18:03         ` BALATON Zoltan
2023-11-07 18:14           ` Peter Maydell
2023-11-07 18:18             ` BALATON Zoltan
2023-11-07 18:21               ` Peter Maydell
2023-11-07 18:25       ` BALATON Zoltan
2023-11-07 18:41         ` BALATON Zoltan
2023-11-07 17:44     ` BALATON Zoltan
2023-11-07 18:53 ` Daniel Henrique Barboza

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=9321822c-58d8-464d-91ad-12e078f1d001@gmail.com \
    --to=danielhb413@gmail.com \
    --cc=ReneEngel80@emailn.de \
    --cc=balaton@eik.bme.hu \
    --cc=clg@kaod.org \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=npiggin@gmail.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=shentey@gmail.com \
    --cc=vr_qemu@t-online.de \
    /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).