* [PATCH] tests/functional/test_arm_sx1: Check whether the serial console is working
@ 2025-02-26 10:48 Thomas Huth
2025-02-26 22:26 ` Philippe Mathieu-Daudé
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Thomas Huth @ 2025-02-26 10:48 UTC (permalink / raw)
To: qemu-devel, Peter Maydell; +Cc: qemu-arm
The kernel that is used in the sx1 test prints the usual Linux log
onto the serial console, but this test currently ignores it. To
make sure that the serial device is working properly, let's check
for some strings in the output here.
While we're at it, also add the test to the corresponding section
in the MAINTAINERS file.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
Based-on: <20250221140640.786341-1-peter.maydell@linaro.org>
MAINTAINERS | 1 +
tests/functional/test_arm_sx1.py | 7 ++++---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 05ec99adfd0..098daea6f24 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2000,6 +2000,7 @@ S: Maintained
F: hw/*/omap*
F: include/hw/arm/omap.h
F: docs/system/arm/sx1.rst
+F: tests/functional/test_arm_sx1.py
IPack
M: Alberto Garcia <berto@igalia.com>
diff --git a/tests/functional/test_arm_sx1.py b/tests/functional/test_arm_sx1.py
index 4dd1e1859fa..25800b388c9 100755
--- a/tests/functional/test_arm_sx1.py
+++ b/tests/functional/test_arm_sx1.py
@@ -43,7 +43,8 @@ def test_arm_sx1_initrd(self):
self.vm.add_args('-append', f'kunit.enable=0 rdinit=/sbin/init {self.CONSOLE_ARGS}')
self.vm.add_args('-no-reboot')
self.launch_kernel(zimage_path,
- initrd=initrd_path)
+ initrd=initrd_path,
+ wait_for='Boot successful')
self.vm.wait(timeout=120)
def test_arm_sx1_sd(self):
@@ -54,7 +55,7 @@ def test_arm_sx1_sd(self):
self.vm.add_args('-no-reboot')
self.vm.add_args('-snapshot')
self.vm.add_args('-drive', f'format=raw,if=sd,file={sd_fs_path}')
- self.launch_kernel(zimage_path)
+ self.launch_kernel(zimage_path, wait_for='Boot successful')
self.vm.wait(timeout=120)
def test_arm_sx1_flash(self):
@@ -65,7 +66,7 @@ def test_arm_sx1_flash(self):
self.vm.add_args('-no-reboot')
self.vm.add_args('-snapshot')
self.vm.add_args('-drive', f'format=raw,if=pflash,file={flash_path}')
- self.launch_kernel(zimage_path)
+ self.launch_kernel(zimage_path, wait_for='Boot successful')
self.vm.wait(timeout=120)
if __name__ == '__main__':
--
2.48.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] tests/functional/test_arm_sx1: Check whether the serial console is working
2025-02-26 10:48 [PATCH] tests/functional/test_arm_sx1: Check whether the serial console is working Thomas Huth
@ 2025-02-26 22:26 ` Philippe Mathieu-Daudé
2025-03-03 14:12 ` Peter Maydell
2025-03-04 17:14 ` Cédric Le Goater
2 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-02-26 22:26 UTC (permalink / raw)
To: Thomas Huth, qemu-devel, Peter Maydell; +Cc: qemu-arm
On 26/2/25 11:48, Thomas Huth wrote:
> The kernel that is used in the sx1 test prints the usual Linux log
> onto the serial console, but this test currently ignores it. To
> make sure that the serial device is working properly, let's check
> for some strings in the output here.
>
> While we're at it, also add the test to the corresponding section
> in the MAINTAINERS file.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> Based-on: <20250221140640.786341-1-peter.maydell@linaro.org>
>
> MAINTAINERS | 1 +
> tests/functional/test_arm_sx1.py | 7 ++++---
> 2 files changed, 5 insertions(+), 3 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tests/functional/test_arm_sx1: Check whether the serial console is working
2025-02-26 10:48 [PATCH] tests/functional/test_arm_sx1: Check whether the serial console is working Thomas Huth
2025-02-26 22:26 ` Philippe Mathieu-Daudé
@ 2025-03-03 14:12 ` Peter Maydell
2025-03-04 17:14 ` Cédric Le Goater
2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2025-03-03 14:12 UTC (permalink / raw)
To: Thomas Huth; +Cc: qemu-devel, qemu-arm
On Wed, 26 Feb 2025 at 10:48, Thomas Huth <thuth@redhat.com> wrote:
>
> The kernel that is used in the sx1 test prints the usual Linux log
> onto the serial console, but this test currently ignores it. To
> make sure that the serial device is working properly, let's check
> for some strings in the output here.
>
> While we're at it, also add the test to the corresponding section
> in the MAINTAINERS file.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> Based-on: <20250221140640.786341-1-peter.maydell@linaro.org>
Applied to target-arm.next, thanks. (If you'd rather take
this via your own test tree let me know and I'll drop it
on my end.)
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tests/functional/test_arm_sx1: Check whether the serial console is working
2025-02-26 10:48 [PATCH] tests/functional/test_arm_sx1: Check whether the serial console is working Thomas Huth
2025-02-26 22:26 ` Philippe Mathieu-Daudé
2025-03-03 14:12 ` Peter Maydell
@ 2025-03-04 17:14 ` Cédric Le Goater
2 siblings, 0 replies; 4+ messages in thread
From: Cédric Le Goater @ 2025-03-04 17:14 UTC (permalink / raw)
To: Thomas Huth, qemu-devel, Peter Maydell; +Cc: qemu-arm
On 2/26/25 11:48, Thomas Huth wrote:
> The kernel that is used in the sx1 test prints the usual Linux log
> onto the serial console, but this test currently ignores it. To
> make sure that the serial device is working properly, let's check
> for some strings in the output here.
>
> While we're at it, also add the test to the corresponding section
> in the MAINTAINERS file.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
Tested-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Thanks,
C.
> ---
> Based-on: <20250221140640.786341-1-peter.maydell@linaro.org>
>
> MAINTAINERS | 1 +
> tests/functional/test_arm_sx1.py | 7 ++++---
> 2 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 05ec99adfd0..098daea6f24 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -2000,6 +2000,7 @@ S: Maintained
> F: hw/*/omap*
> F: include/hw/arm/omap.h
> F: docs/system/arm/sx1.rst
> +F: tests/functional/test_arm_sx1.py
>
> IPack
> M: Alberto Garcia <berto@igalia.com>
> diff --git a/tests/functional/test_arm_sx1.py b/tests/functional/test_arm_sx1.py
> index 4dd1e1859fa..25800b388c9 100755
> --- a/tests/functional/test_arm_sx1.py
> +++ b/tests/functional/test_arm_sx1.py
> @@ -43,7 +43,8 @@ def test_arm_sx1_initrd(self):
> self.vm.add_args('-append', f'kunit.enable=0 rdinit=/sbin/init {self.CONSOLE_ARGS}')
> self.vm.add_args('-no-reboot')
> self.launch_kernel(zimage_path,
> - initrd=initrd_path)
> + initrd=initrd_path,
> + wait_for='Boot successful')
> self.vm.wait(timeout=120)
>
> def test_arm_sx1_sd(self):
> @@ -54,7 +55,7 @@ def test_arm_sx1_sd(self):
> self.vm.add_args('-no-reboot')
> self.vm.add_args('-snapshot')
> self.vm.add_args('-drive', f'format=raw,if=sd,file={sd_fs_path}')
> - self.launch_kernel(zimage_path)
> + self.launch_kernel(zimage_path, wait_for='Boot successful')
> self.vm.wait(timeout=120)
>
> def test_arm_sx1_flash(self):
> @@ -65,7 +66,7 @@ def test_arm_sx1_flash(self):
> self.vm.add_args('-no-reboot')
> self.vm.add_args('-snapshot')
> self.vm.add_args('-drive', f'format=raw,if=pflash,file={flash_path}')
> - self.launch_kernel(zimage_path)
> + self.launch_kernel(zimage_path, wait_for='Boot successful')
> self.vm.wait(timeout=120)
>
> if __name__ == '__main__':
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-03-04 17:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26 10:48 [PATCH] tests/functional/test_arm_sx1: Check whether the serial console is working Thomas Huth
2025-02-26 22:26 ` Philippe Mathieu-Daudé
2025-03-03 14:12 ` Peter Maydell
2025-03-04 17:14 ` Cédric Le Goater
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).