[elbe-devel] [PATCH 5/6] examples minimal-grub-buster: Add an example of image checker

Torben Hohn torben.hohn at linutronix.de
Wed Jun 24 16:41:00 CEST 2020


On Tue, Jun 23, 2020 at 12:31:09PM -0400, Olivier Dion wrote:
> 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.

lets not do this in the examples.

its not general enough.

Lets have this is an special xml file, which resides in the directory
for tests xmls.

of course, you can just copy x86_32-pc-hdimg-minimal-grub-buster.xml
and then do this mod on top.


> 
> 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
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list