[PATCH 14/14] ci: pytest: test RISCV 64-bit as well

Ahmad Fatoum a.fatoum at pengutronix.de
Sun Jun 4 23:36:23 PDT 2023


We have labgrid environments for two Qemu rv64i machines:

  - RISC-V Virt 64-bit
  - SiFive HiFive Unleashed

The first one is readily testable, but the second hangs during cat
/env/data/config. This isn't reproducible interactively and needs
further looking into, so we just enable a single config for now.

emulate.pl also supports a TinyEMUDriver, which is not supported by
labgrid. To avoid passing it to labgrid when globbing in the future, we
add a grep with an early continue.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 .github/workflows/test-labgrid-pytest.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/workflows/test-labgrid-pytest.yml b/.github/workflows/test-labgrid-pytest.yml
index 6647237284d9..5b17c701a7bb 100644
--- a/.github/workflows/test-labgrid-pytest.yml
+++ b/.github/workflows/test-labgrid-pytest.yml
@@ -35,6 +35,10 @@ jobs:
             lgenv: test/riscv/qemu at virt32_defconfig.yaml
             defconfig: virt32_defconfig
 
+          - ARCH: riscv
+            lgenv: 'test/riscv/qemu-virt64 at rv64i_defconfig.yaml'
+            defconfig: rv64i_defconfig
+
     steps:
     - name: Checkout code
       uses: actions/checkout at v3
@@ -60,6 +64,8 @@ jobs:
         export KBUILD_OUTPUT=build-${{matrix.arch}}
 
         for i in ${{matrix.lgenv}}; do
+          grep -wqe QEMUDriver: "$i" || continue
+
           cfg=$(basename $i .yaml)
           echo "Testing $cfg"
           labgrid-pytest --lg-env $i test/py --verbosity=1 \
-- 
2.39.2




More information about the barebox mailing list