From: Yann Sionneau <ysionneau@kalrayinc.com>
To: barebox@lists.infradead.org
Cc: jvetter@kalrayinc.com, jborne@kalrayinc.com,
Yann Sionneau <ysionneau@kalrayinc.com>
Subject: [PATCH v2 3/3] ci: add support for running basic tests on kvx arch
Date: Tue, 13 Aug 2024 14:44:08 +0200 [thread overview]
Message-ID: <20240813124408.2569-3-ysionneau@kalrayinc.com> (raw)
In-Reply-To: <20240813124408.2569-1-ysionneau@kalrayinc.com>
Add support for running tests on qemu for kvx port of Barebox.
Signed-off-by: Yann Sionneau <ysionneau@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@generic_defconfig.yaml | 20 ++++++++++++++++++++
2 files changed, 24 insertions(+)
create mode 100644 test/kvx/qemu@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@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@generic_defconfig.yaml b/test/kvx/qemu@generic_defconfig.yaml
new file mode 100644
index 0000000000..97f5d8689a
--- /dev/null
+++ b/test/kvx/qemu@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
next prev parent reply other threads:[~2024-08-13 12:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-13 12:44 [PATCH v2 1/3] kvx: add qemu dts Yann Sionneau
2024-08-13 12:44 ` [PATCH v2 2/3] ci: container: add qemu-system-kvx Yann Sionneau
2024-08-13 12:44 ` Yann Sionneau [this message]
2024-08-14 8:46 ` [PATCH v2 1/3] kvx: add qemu dts Sascha Hauer
2024-08-14 10:38 ` Sascha Hauer
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=20240813124408.2569-3-ysionneau@kalrayinc.com \
--to=ysionneau@kalrayinc.com \
--cc=barebox@lists.infradead.org \
--cc=jborne@kalrayinc.com \
--cc=jvetter@kalrayinc.com \
/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