aboutgitcodebugslistschat
path: root/test/distro/opensuse
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-02-28 04:25:53 +0100
committerStefano Brivio <sbrivio@redhat.com>2022-02-28 04:25:53 +0100
commitdeca1ebe5093affd581a27855180821a8b6b3079 (patch)
tree268c08f3d6a7dcca4ea32cab5978fb33de924cec /test/distro/opensuse
parent7992995d3567bdd5438ea148fac68180db1fc902 (diff)
downloadpasst-deca1ebe5093affd581a27855180821a8b6b3079.tar
passt-deca1ebe5093affd581a27855180821a8b6b3079.tar.gz
passt-deca1ebe5093affd581a27855180821a8b6b3079.tar.bz2
passt-deca1ebe5093affd581a27855180821a8b6b3079.tar.lz
passt-deca1ebe5093affd581a27855180821a8b6b3079.tar.xz
passt-deca1ebe5093affd581a27855180821a8b6b3079.tar.zst
passt-deca1ebe5093affd581a27855180821a8b6b3079.zip
test/distro/opensuse: Add Tumbleweed armv7l test
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/distro/opensuse')
-rw-r--r--test/distro/opensuse29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/distro/opensuse b/test/distro/opensuse
index 6e29b45..a2c0944 100644
--- a/test/distro/opensuse
+++ b/test/distro/opensuse
@@ -152,6 +152,35 @@ hint
sleep 1
+test OpenSUSE Tumbleweed armv7l
+
+temp IMG
+temp ZIMAGE
+temp INITRD
+host wget http://download.opensuse.org/ports/armv7hl/tumbleweed/appliances/openSUSE-Tumbleweed-ARM-JeOS-efi.armv7l.raw.xz -O - | xz -d > __IMG__
+host guestfish -a __IMG__ -i download /boot/zImage __ZIMAGE__
+host guestfish -a __IMG__ -i download /boot/initrd __INITRD__
+host virt-edit -a __IMG__ -m /dev/sda3 /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --timeout 5000 --autologin root -i -8 --keep-baud 115200,38400,9600 %I $TERM/g'
+host guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/
+
+host ./qrap 5 qemu-system-arm -M virt -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none -kernel __ZIMAGE__ -initrd __INITRD__ -append 'root=/dev/sda3' -drive if=none,file=__IMG__,format=raw,id=hd,media=disk -device virtio-scsi-device -device scsi-hd,drive=hd -netdev socket,fd=5,id=passt -device virtio-net-device,netdev=passt
+host PS1='$ '
+host ip link set eth0 up
+sleep 10
+host echo "DNSSERVERS='__DNS6__'" | netconfig modify -s dns_resolver -i eth0
+sleep 10
+host zypper install -y gcc make netcat-openbsd; echo
+
+host make clean
+hout RET CFLAGS="-Werror" make; echo $?
+check [ __RET__ -eq 0 ]
+
+distro_quick_pasta_test
+
+hint
+sleep 1
+
+
test OpenSUSE Tumbleweed
temp IMG