All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: "Cédric Le Goater" <clg@redhat.com>,
	qemu-arm@nongnu.org, qemu-devel@nongnu.org
Cc: Joel Stanley <joel@jms.id.au>,
	Andrew Jeffery <andrew@codeconstruct.com.au>,
	Troy Lee <troy_lee@aspeedtech.com>,
	Jamin Lin <jamin_lin@aspeedtech.com>,
	Steven Lee <steven_lee@aspeedtech.com>
Subject: Re: [PATCH 1/5] tests/functional: Introduce a new test routine for OpenBMC images
Date: Wed, 29 Jan 2025 08:58:53 +0100	[thread overview]
Message-ID: <98b2cdec-dcd2-44bf-a81e-91521e2bd446@redhat.com> (raw)
In-Reply-To: <20250129071820.1258133-2-clg@redhat.com>

On 29/01/2025 08.18, Cédric Le Goater wrote:
> The OpenBMC images currently used by QEMU to test the Aspeed machines
> are rather old. To prepare an update to the latest builds, we need to
> adjust the console patterns. Introduce a new routine to preserve the
> current tests.
> 
> Signed-off-by: Cédric Le Goater <clg@redhat.com>
> ---
>   tests/functional/aspeed.py | 18 ++++++++++++++++++
>   1 file changed, 18 insertions(+)
> 
> diff --git a/tests/functional/aspeed.py b/tests/functional/aspeed.py
> index b52358bb8c61..51c821944842 100644
> --- a/tests/functional/aspeed.py
> +++ b/tests/functional/aspeed.py
> @@ -23,6 +23,24 @@ def do_test_arm_aspeed(self, machine, image):
>           self.wait_for_console_pattern("ftgmac100 1e660000.ethernet eth0: irq ")
>           self.wait_for_console_pattern("systemd[1]: Set hostname to")
>   
> +    def do_test_arm_aspeed_openbmc(self, machine, image, uboot='2019.04',
> +                                   cpu_id='0x0', soc='AST2500 rev A1'):
> +        hostname = machine.removesuffix('-bmc')
> +
> +        self.set_machine(machine)
> +        self.vm.set_console()
> +        self.vm.add_args('-drive', 'file=' + image + ',if=mtd,format=raw',
> +                         '-net', 'nic', '-snapshot')

"-net nic" is the default anyway, so unless you also use "-nodefaults", I 
think you can simply drop that?

> +        self.vm.launch()
> +
> +        self.wait_for_console_pattern(f'U-Boot {uboot}')
> +        self.wait_for_console_pattern('## Loading kernel from FIT Image')
> +        self.wait_for_console_pattern('Starting kernel ...')
> +        self.wait_for_console_pattern(f'Booting Linux on physical CPU {cpu_id}')
> +        self.wait_for_console_pattern(f'ASPEED {soc}')
> +        self.wait_for_console_pattern('/init as init process')
> +        self.wait_for_console_pattern(f'systemd[1]: Hostname set to <{hostname}>.')
> +
>       def do_test_arm_aspeed_buildroot_start(self, image, cpu_id, pattern='Aspeed EVB'):
>           self.require_netdev('user')
>           self.vm.set_console()

Anyway,
Reviewed-by: Thomas Huth <thuth@redhat.com>


  reply	other threads:[~2025-01-29  7:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-29  7:18 [PATCH 0/5] tests/functional: Update Aspeed OpenBMC images (resend) Cédric Le Goater
2025-01-29  7:18 ` [PATCH 1/5] tests/functional: Introduce a new test routine for OpenBMC images Cédric Le Goater
2025-01-29  7:58   ` Thomas Huth [this message]
2025-01-29 16:28     ` Cédric Le Goater
2025-01-30  6:40       ` Thomas Huth
2025-01-30  8:01         ` Cédric Le Goater
2025-01-29  7:18 ` [PATCH 2/5] tests/functional: Update OpenBMC image of palmetto machine Cédric Le Goater
2025-01-29  8:00   ` Thomas Huth
2025-01-29  7:18 ` [PATCH 3/5] tests/functional: Update OpenBMC image of romulus machine Cédric Le Goater
2025-01-29  8:01   ` Thomas Huth
2025-01-29  7:18 ` [PATCH 4/5] tests/functional: Introduce a witherspoon machine test Cédric Le Goater
2025-01-29  9:02   ` Thomas Huth
2025-01-29  7:18 ` [PATCH 5/5] tests/functional: Introduce a bletchley " Cédric Le Goater
2025-01-30  7:54   ` Thomas Huth
2025-01-31 11:22   ` Patrick Williams
2025-01-31 12:28     ` Cédric Le Goater
2025-02-05  7:31 ` [PATCH 0/5] tests/functional: Update Aspeed OpenBMC images (resend) Cédric Le Goater

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=98b2cdec-dcd2-44bf-a81e-91521e2bd446@redhat.com \
    --to=thuth@redhat.com \
    --cc=andrew@codeconstruct.com.au \
    --cc=clg@redhat.com \
    --cc=jamin_lin@aspeedtech.com \
    --cc=joel@jms.id.au \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=steven_lee@aspeedtech.com \
    --cc=troy_lee@aspeedtech.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 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.