[Concept,16/17] ulib: test: Add EFI demo pytest for riscv64

Message ID 20260216013511.4079770-17-sjg@u-boot.org
State New
Headers
Series ulib: Add multi-arch demo and EFI app support |

Commit Message

Simon Glass Feb. 16, 2026, 1:35 a.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Add test_ulib_demo_efi_riscv64() which uses the run_efi_demo() helper
to boot demo-app.efi under qemu-system-riscv64 with the appropriate
UEFI firmware.

Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 test/py/tests/test_ulib.py | 10 ++++++++++
 1 file changed, 10 insertions(+)
  

Patch

diff --git a/test/py/tests/test_ulib.py b/test/py/tests/test_ulib.py
index c7d79515bb9..50784ea9c60 100644
--- a/test/py/tests/test_ulib.py
+++ b/test/py/tests/test_ulib.py
@@ -397,3 +397,13 @@  def test_ulib_demo_efi_arm64(ubman):
     run_efi_demo(ubman, 'qemu-system-aarch64',
                  '/usr/share/qemu-efi-aarch64/QEMU_EFI.fd', None,
                  ['--machine', 'virt', '-cpu', 'max'])
+
+@pytest.mark.localqemu
+@pytest.mark.boardspec('efi-riscv_app64')
+@pytest.mark.buildconfigspec("examples")
+def test_ulib_demo_efi_riscv64(ubman):
+    """Test the ulib demo EFI application under QEMU RISC-V 64 with UEFI."""
+    run_efi_demo(ubman, 'qemu-system-riscv64',
+                 '/usr/share/qemu-efi-riscv64/RISCV_VIRT_CODE.fd',
+                 '/usr/share/qemu-efi-riscv64/RISCV_VIRT_VARS.fd',
+                 ['--machine', 'virt'])