[PATCH v2 3/3] ci: add support for running basic tests on kvx arch
Yann Sionneau
ysionneau at kalrayinc.com
Tue Aug 13 05:44:08 PDT 2024
Add support for running tests on qemu for kvx port of Barebox.
Signed-off-by: Yann Sionneau <ysionneau at kalrayinc.com>
---
v1 -> v2:
- use `dtb` key in kvx test yaml config instead of extra_args
- add `-semihosting` as extra qemu arg to make qemu exit properly upon executing "scall 0xfff" from poweroff driver.
.github/workflows/test-labgrid-pytest.yml | 4 ++++
test/kvx/qemu at generic_defconfig.yaml | 20 ++++++++++++++++++++
2 files changed, 24 insertions(+)
create mode 100644 test/kvx/qemu at generic_defconfig.yaml
diff --git a/.github/workflows/test-labgrid-pytest.yml b/.github/workflows/test-labgrid-pytest.yml
index 2e038e371f..f4ef1b3a00 100644
--- a/.github/workflows/test-labgrid-pytest.yml
+++ b/.github/workflows/test-labgrid-pytest.yml
@@ -23,6 +23,10 @@ jobs:
lgenv: test/arm/multi_v8_defconfig.yaml
defconfig: multi_v8_defconfig
+ - ARCH: kvx
+ lgenv: test/kvx/qemu at generic_defconfig.yaml
+ defconfig: generic_defconfig
+
- ARCH: mips
lgenv: test/mips/qemu-malta_defconfig.yaml
defconfig: qemu-malta_defconfig
diff --git a/test/kvx/qemu at generic_defconfig.yaml b/test/kvx/qemu at generic_defconfig.yaml
new file mode 100644
index 0000000000..97f5d8689a
--- /dev/null
+++ b/test/kvx/qemu at generic_defconfig.yaml
@@ -0,0 +1,20 @@
+targets:
+ main:
+ drivers:
+ QEMUDriver:
+ qemu_bin: qemu-system-kvx
+ machine: mppa-coolidge
+ cpu: kv3-1
+ memory: 2G
+ kernel: barebox
+ extra_args: '-semihosting'
+ dtb: qemu.dtb
+ BareboxDriver:
+ prompt: 'barebox:/ '
+ bootstring: 'commandline:'
+ BareboxTestStrategy: {}
+images:
+ barebox: !template "$LG_BUILDDIR/barebox"
+ qemu.dtb: !template "$LG_BUILDDIR/arch/kvx/dts/qemu.dtb"
+imports:
+ - ../strategy.py
--
2.34.1
More information about the barebox
mailing list