[elbe-devel] [PATCH] tests: Add simple amd64 grub uefi test

Bastian Germann bage at linutronix.de
Tue Aug 11 17:46:12 CEST 2020


Am 11.08.20 um 17:32 schrieb Olivier Dion:
> Signed-off-by: Olivier Dion <dion at linutronix.de>

Reviewed-by: Bastian Germann <bage at linutronix.de>

> ---
>  tests/simple-amd64-with-grub-uefi.xml | 97 +++++++++++++++++++++++++++
>  1 file changed, 97 insertions(+)
>  create mode 100644 tests/simple-amd64-with-grub-uefi.xml
> 
> diff --git a/tests/simple-amd64-with-grub-uefi.xml b/tests/simple-amd64-with-grub-uefi.xml
> new file mode 100644
> index 00000000..4169eefb
> --- /dev/null
> +++ b/tests/simple-amd64-with-grub-uefi.xml
> @@ -0,0 +1,97 @@
> +<ns0:RootFileSystem
> +    xmlns:ns0="https://www.linutronix.de/projects/Elbe"
> +    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" created="2009-05-20T08:50:56" revision="6"
> +    xsi:schemaLocation="https://www.linutronix.de/projects/Elbe dbsfed.xsd">
> +	<project>
> +		<name>simple-amd64-with-grub-uefi-buster</name>
> +		<version>1.0</version>
> +		<description>
> +			Testing of amd64 with grub uefi on buster using the OVMF firmware
> +		</description>
> +		<buildtype>amd64</buildtype>
> +		<mirror>
> +			<primary_host>ftp.de.debian.org</primary_host>
> +			<primary_path>/debian</primary_path>
> +			<primary_proto>http</primary_proto>
> +			<url-list>
> +				<url>
> +					<binary>http://security.debian.org buster/updates main</binary>
> +					<source>http://security.debian.org buster/updates main</source>
> +				</url>
> +			</url-list>
> +		</mirror>
> +		<suite>buster</suite>
> +	</project>
> +	<target>
> +		<hostname>amd64-grub-uefi</hostname>
> +		<domain>elbe-ci</domain>
> +		<passwd>foo</passwd>
> +		<console>ttyS0,115200</console>
> +		<images>
> +			<!-- use GPT for UEFI -->
> +			<gpthd>
> +				<name>sda.img</name>
> +				<size>2GiB</size>
> +				<!-- install grub -->
> +				<grub-install/>
> +				<!-- the EFI system partition -->
> +				<partition>
> +					<size>200MiB</size>
> +					<label>uefi</label>
> +					<bootable>true</bootable>
> +				</partition>
> +				<partition>
> +					<size>remain</size>
> +					<label>rfs</label>
> +				</partition>
> +			</gpthd>
> +		</images>
> +		<fstab>
> +			<bylabel>
> +				<label>rfs</label>
> +				<mountpoint>/</mountpoint>
> +				<fs>
> +					<type>ext4</type>
> +					<tune2fs>-i 0</tune2fs>
> +				</fs>
> +			</bylabel>
> +			<!-- the EFI system partition needs to be mounted at /boot/efi -->
> +			<bylabel>
> +				<label>uefi</label>
> +				<mountpoint>/boot/efi</mountpoint>
> +				<fs>
> +					<type>vfat</type>
> +				</fs>
> +			</bylabel>
> +		</fstab>
> +		<install-recommends />
> +		<pkg-list>
> +			<!-- install the signed EFI version of grub -->
> +			<pkg>grub-efi-amd64-signed</pkg>
> +			<pkg>shim-signed</pkg>
> +			<pkg>linux-image-amd64</pkg>
> +		</pkg-list>
> +	</target>
> +	<check-image-list>
> +		<check>
> +			<img>sda.img.tar.gz</img>
> +			<interpreter>qemu-system-x86_64</interpreter>
> +
> +			<!--
> +			OVMF.fd might be in a different directory than
> +			/usr/share/qemu on some distros.
> +
> +			Use the Qemu's option '-L help' to determine the list
> +			of directories.  e.g. on Arch Linux, the option
> +			'-L /usr/share/edk2-ovmf/x64' should be used.
> +
> +			This could be done using variant, but we need to
> +			figure out a way to pass variants from elbe-ci to
> +			elbe-check-build first.
> +			-->
> +			<interpreter-opts>-bios OVMF.fd -m 2G -enable-kvm -cpu host -drive format=raw,file=$ELBE_IMG</interpreter-opts>
> +
> +			<action> <login /> </action>
> +		</check>
> +	</check-image-list>
> +</ns0:RootFileSystem>
> 


More information about the elbe-devel mailing list