[elbe-devel] [PATCH 5/6] examples minimal-grub-buster: Add an example of image checker
Olivier Dion
dion at linutronix.de
Tue Jun 23 18:31:09 CEST 2020
This example shows how to use <check-image-list>.
Since the image generated in <target> was named 'sda.img', we're
expecting to find a 'sda.img.tar.gz' in the final build. Thus, we
will test for the image 'sda.img.tar.gz'.
Let's use the i386 QEMU system interpreter, since this is the
buildtype of the project and let's avoid any graphic. This option
implies '-serial stdio'. If '-nographic' was not present, we would
need to pass '-serial stdio', otherwise the serial communication will
fail.
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
examples/x86_32-pc-hdimg-minimal-grub-buster.xml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/examples/x86_32-pc-hdimg-minimal-grub-buster.xml b/examples/x86_32-pc-hdimg-minimal-grub-buster.xml
index 8f69b2dc..2c9bf09a 100644
--- a/examples/x86_32-pc-hdimg-minimal-grub-buster.xml
+++ b/examples/x86_32-pc-hdimg-minimal-grub-buster.xml
@@ -11,6 +11,14 @@
</mirror>
<suite>buster</suite>
</project>
+ <check-image-list>
+ <check>
+ <img>sda.img.tar.gz</img>
+ <interpreter>qemu-system-i386</interpreter>
+ <interpreter-opts>-m 1024 -nographic -machine pc -enable-kvm -drive format=raw,file=$ELBE_IMG</interpreter-opts>
+ <action><login/></action>
+ </check>
+ </check-image-list>
<target>
<hostname>i386-buster</hostname>
<domain>elbe-rfs.org</domain>
--
2.27.0
More information about the elbe-devel
mailing list