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.mayd...@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