From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH 3/3] CI: Run startvm in world test case
Date: Mon, 12 May 2025 11:32:38 +0300 [thread overview]
Message-ID: <20250512083238.2089774-4-amikan@ilbers.de> (raw)
In-Reply-To: <20250512083238.2089774-1-amikan@ilbers.de>
To cover also QEMU running for qemu- targets.
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
testsuite/citest.py | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/testsuite/citest.py b/testsuite/citest.py
index 501dbf37..e7ba1720 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -767,3 +767,25 @@ class World(CIBaseTest):
self.perform_build_test(
targets, container=name and name.startswith('container')
)
+
+ def test_runworld(self):
+ name = self.params.get('name')
+ image = self.params.get('image', default='isar-image-ci')
+ targets = []
+
+ if name is None:
+ self.init()
+ for target in CIUtils.get_targets():
+ for image in CIUtils.get_test_images():
+ targets.append(f'mc:{target}:{image}')
+ else:
+ targets.append(f'mc:{name}:{image}')
+ self.init(f'build-{name}')
+
+ for target in targets:
+ t_list = target.split(':', 2)
+ if not t_list[1].startswith('qemu'):
+ self.cancel(f"{t_list[1]} skipped as non qemu")
+ distro = t_list[1].split('-')[-1]
+ arch = t_list[1].removeprefix('qemu').removesuffix(f"-{distro}")
+ self.vm_start(arch, distro, image=t_list[2])
--
2.34.1
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20250512083238.2089774-4-amikan%40ilbers.de.
prev parent reply other threads:[~2025-05-12 8:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-12 8:32 [PATCH 0/3] Add 'make world' " Anton Mikanovich
2025-05-12 8:32 ` [PATCH 1/3] CI: Remove container package list hack from testsuite Anton Mikanovich
2025-05-12 8:32 ` [PATCH 2/3] CI: Add make world test case Anton Mikanovich
2025-05-12 8:32 ` Anton Mikanovich [this message]
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=20250512083238.2089774-4-amikan@ilbers.de \
--to=amikan@ilbers.de \
--cc=isar-users@googlegroups.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