[elbe-devel] [PATCH 02/11] tests: Add a test for amd64 bookworm
Torben Hohn
torben.hohn at linutronix.de
Mon Mar 14 14:48:17 CET 2022
For now only test bookworm on amd64. This test will fail, when
"debootstrap" from bookworm-backports is required.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
tests/simple-amd64-bookworm.xml | 87 +++++++++++++++++++++++++++++++++
1 file changed, 87 insertions(+)
create mode 100644 tests/simple-amd64-bookworm.xml
diff --git a/tests/simple-amd64-bookworm.xml b/tests/simple-amd64-bookworm.xml
new file mode 100644
index 000000000..83958c046
--- /dev/null
+++ b/tests/simple-amd64-bookworm.xml
@@ -0,0 +1,87 @@
+<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-bookworm</name>
+ <version>1.0</version>
+ <suite>bookworm</suite>
+ <buildtype>amd64</buildtype>
+
+ <description>
+ Testing amd64 bookworm with grub
+ </description>
+
+ <mirror>
+ <primary_host>ftp.de.debian.org</primary_host>
+ <primary_path>/debian</primary_path>
+ <primary_proto>http</primary_proto>
+ </mirror>
+
+ </project>
+
+ <target>
+ <hostname>amd64-bookworm</hostname>
+ <domain>elbe-ci</domain>
+ <passwd>root</passwd>
+ <console>ttyS0,115200</console>
+
+ <images>
+ <msdoshd>
+ <name>sda.img</name>
+ <size>2000MiB</size>
+ <grub-install />
+ <partition>
+ <size>1000MiB</size>
+ <label>rfs</label>
+ </partition>
+ <partition>
+ <size>64kB</size>
+ <label>bindata</label>
+ <binary>/etc/hosts</binary>
+ </partition>
+ </msdoshd>
+ </images>
+
+ <fstab>
+ <bylabel>
+ <label>rfs</label>
+ <mountpoint>/</mountpoint>
+ <fs><type>ext4</type></fs>
+ </bylabel>
+ </fstab>
+
+ <pkg-list>
+ <pkg>grub-pc</pkg>
+ <pkg>linux-image-amd64</pkg>
+ <pkg>systemd</pkg>
+ </pkg-list>
+
+ <install-recommends />
+
+ <finetuning>
+ <file dst="/etc/hosts" append="true" encoding="plain">
+ 192.168.0.165 mydomain mydomain-host
+ </file>
+ <cp path="/etc/bash.bashrc">/root/.bashrc</cp>
+ <artifact>/etc/hosts</artifact>
+ </finetuning>
+
+ <project-finetuning>
+ <losetup img="sda.img">
+ <!-- globs work, but must make sure, that only a single file is matched -->
+ <set_partition_type part="2" type="14"/>
+ </losetup>
+ </project-finetuning>
+ </target>
+ <check-image-list>
+ <check>
+ <img>sda.img.tar.gz</img>
+ <interpreter>qemu-system-x86_64</interpreter>
+ <interpreter-opts>-m 2G -enable-kvm -cpu host -drive format=raw,file=$ELBE_IMG -nographic</interpreter-opts>
+
+ <action> <login /> </action>
+ </check>
+ </check-image-list>
+</ns0:RootFileSystem>
--
2.20.1
More information about the elbe-devel
mailing list