From: Thomas Huth <thuth@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>,
qemu-arm@nongnu.org, qemu-devel@nongnu.org
Cc: Guenter Roeck <linux@roeck-us.net>
Subject: Re: [PATCH 0/2] arm: Add collie and sx functional tests
Date: Mon, 21 Oct 2024 10:01:44 +0200 [thread overview]
Message-ID: <ec2cb5e8-77be-435e-8aa7-4314cf412c4d@redhat.com> (raw)
In-Reply-To: <dcf06645-dac0-4099-8946-38ca9deaeccf@redhat.com>
On 21/10/2024 09.15, Thomas Huth wrote:
> On 17/10/2024 18.32, Peter Maydell wrote:
>> This patchset adds new functional tests for the collie and sx1
>> boards, which are the only remaining ones that survived the
>> culling of the OMAP/PXA2xx/strongarm machines.
>>
>> For these tests I'm indebted to Guenter Roeck, who has kindly
>> built and made available the kernel images, rootfs, etc and
>> documented the commands needed to boot them. All I've done
>> here is wrap those up into test cases in our testcase
>> framework by cribbing from some of our existing test code.
>>
>> Based-on: 20241017162755.710698-1-peter.maydell@linaro.org
>> ("hw/sd/omap_mmc: Don't use sd_cmd_type_t")
>> -- the sd card test for the sx1 board will not pass without
>> that bugfix
>>
>> thanks
>> -- PMM
>>
>> Peter Maydell (2):
>> tests/functional: Add a functional test for the collie board
>> tests/functional: Add a functional test for the sx1 board
>>
>> MAINTAINERS | 1 +
>> tests/functional/meson.build | 3 ++
>> tests/functional/test_arm_collie.py | 31 +++++++++++++
>> tests/functional/test_arm_sx1.py | 72 +++++++++++++++++++++++++++++
>> 4 files changed, 107 insertions(+)
>> create mode 100755 tests/functional/test_arm_collie.py
>> create mode 100755 tests/functional/test_arm_sx1.py
>
> Thanks, I'll queue the patches [...]
Unfortunately, the test_arm_sx1.SX1Test.test_arm_sx1_sd test is not working
for me, it seems to fail the shutdown of the QEMU binary:
ok 1 test_arm_sx1.SX1Test.test_arm_sx1_flash
ok 2 test_arm_sx1.SX1Test.test_arm_sx1_initrd
qemu received signal 9; command: "/home/thuth/tmp/qemu-build/qemu-system-arm
-display none -vga none -chardev socket,id=mon,fd=5 -mon
chardev=mon,mode=control -machine sx1 -chardev socket,id=console,fd=10
-serial chardev:console -append kunit.enable=0 root=/dev/mmcblk0 rootwait
console=ttyS0,115200 earlycon=uart8250,mmio32,0xfffb0000,115200n8 -no-reboot
-snapshot -drive
format=raw,if=sd,file=/home/thuth/.cache/qemu/download/c1db7f43ef92469ebc8605013728c8950e7608439f01d13678994f0ce101c3a8
-kernel
/home/thuth/.cache/qemu/download/a0271899a8dc2165f9e0adb2d0a57fc839ae3a469722ffc56c77e108a8887615"
Traceback (most recent call last):
File "/home/thuth/devel/qemu/python/qemu/machine/machine.py", line 611,
in _do_shutdown
self._soft_shutdown(timeout)
File "/home/thuth/devel/qemu/python/qemu/machine/machine.py", line 596,
in _soft_shutdown
self._subp.wait(timeout=timeout)
File "/usr/lib64/python3.12/subprocess.py", line 1264, in wait
return self._wait(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/subprocess.py", line 2045, in _wait
raise TimeoutExpired(self.args, timeout)
subprocess.TimeoutExpired: Command
'('/home/thuth/tmp/qemu-build/qemu-system-arm', '-display', 'none', '-vga',
'none', '-chardev', 'socket,id=mon,fd=5', '-mon',
'chardev=mon,mode=control', '-machine', 'sx1', '-chardev',
'socket,id=console,fd=10', '-serial', 'chardev:console', '-append',
'kunit.enable=0 root=/dev/mmcblk0 rootwait console=ttyS0,115200
earlycon=uart8250,mmio32,0xfffb0000,115200n8', '-no-reboot', '-snapshot',
'-drive',
'format=raw,if=sd,file=/home/thuth/.cache/qemu/download/c1db7f43ef92469ebc8605013728c8950e7608439f01d13678994f0ce101c3a8',
'-kernel',
'/home/thuth/.cache/qemu/download/a0271899a8dc2165f9e0adb2d0a57fc839ae3a469722ffc56c77e108a8887615')'
timed out after 30 seconds
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/thuth/devel/qemu/tests/functional/test_arm_sx1.py", line 58,
in test_arm_sx1_sd
self.vm.wait()
File "/home/thuth/devel/qemu/python/qemu/machine/machine.py", line 666,
in wait
self.shutdown(timeout=timeout)
File "/home/thuth/devel/qemu/python/qemu/machine/machine.py", line 648,
in shutdown
self._do_shutdown(timeout)
File "/home/thuth/devel/qemu/python/qemu/machine/machine.py", line 618,
in _do_shutdown
raise AbnormalShutdown("Could not perform graceful shutdown") \
qemu.machine.machine.AbnormalShutdown: Could not perform graceful shutdown
not ok 3 test_arm_sx1.SX1Test.test_arm_sx1_sd
Could you please have a look?
Thomas
next prev parent reply other threads:[~2024-10-21 8:03 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-17 16:32 [PATCH 0/2] arm: Add collie and sx functional tests Peter Maydell
2024-10-17 16:32 ` [PATCH 1/2] tests/functional: Add a functional test for the collie board Peter Maydell
2024-10-17 17:15 ` Thomas Huth
2024-10-22 4:11 ` Philippe Mathieu-Daudé
2024-10-22 7:09 ` Daniel P. Berrangé
2024-10-22 9:02 ` Peter Maydell
2024-10-22 21:45 ` Philippe Mathieu-Daudé
2024-10-17 16:32 ` [PATCH 2/2] tests/functional: Add a functional test for the sx1 board Peter Maydell
2024-10-17 17:18 ` Thomas Huth
2024-10-21 7:15 ` [PATCH 0/2] arm: Add collie and sx functional tests Thomas Huth
2024-10-21 8:01 ` Thomas Huth [this message]
2024-10-21 9:17 ` Peter Maydell
2024-10-21 9:40 ` Thomas Huth
2024-10-21 14:02 ` Guenter Roeck
2024-10-22 4:09 ` Philippe Mathieu-Daudé
2024-10-22 5:24 ` Guenter Roeck
2024-10-22 15:04 ` Guenter Roeck
2024-10-24 17:59 ` Philippe Mathieu-Daudé
2024-10-25 6:55 ` Cédric Le Goater
2024-10-25 9:57 ` Jan Lübbe
2024-10-25 13:59 ` Guenter Roeck
2024-10-25 15:25 ` Jan Lübbe
2024-10-25 17:05 ` Guenter Roeck
2024-10-26 4:47 ` Philippe Mathieu-Daudé
2024-10-26 5:54 ` Guenter Roeck
2024-10-26 10:02 ` Cédric Le Goater
2024-10-26 15:32 ` Guenter Roeck
2024-10-27 21:13 ` Cédric Le Goater
2024-10-27 22:11 ` Guenter Roeck
2024-10-27 22:26 ` Cédric Le Goater
2024-10-28 3:32 ` Guenter Roeck
2024-10-28 8:41 ` Jan Lübbe
2024-10-29 14:40 ` Guenter Roeck
2024-11-01 14:14 ` backing storage for eMMC boot partitions Jan Lübbe
2024-11-18 9:14 ` Cédric Le Goater
2024-11-18 12:15 ` Jan Lübbe
2024-11-18 12:36 ` Cédric Le Goater
2024-10-28 16:23 ` [PATCH] hw/sd/sdcard: Fix calculation of size when using " Jan Luebbe
2024-10-29 8:31 ` Cédric Le Goater
2024-11-02 15:06 ` Cédric Le Goater
2024-11-04 10:33 ` Philippe Mathieu-Daudé
2024-11-05 16:13 ` Michael Tokarev
2024-11-05 16:31 ` 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=ec2cb5e8-77be-435e-8aa7-4314cf412c4d@redhat.com \
--to=thuth@redhat.com \
--cc=linux@roeck-us.net \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.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 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).