blob: 57fed7988532f60f4e235e46faae6ba4e3a1c9c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
metadata:
name: qemu-edk2-boot
format: "Lava-Test-Shell Test Definition 1.0"
description: "Setup and run a test on Aarch64 QEMU System Image, with networking."
maintainer:
- roy.franz@linaro.org
os:
- debian
scope:
- functional
devices:
- kvm
params:
# The QEMU executable
QEMU_BIN: /usr/local/bin/qemu-system-aarch64
# The QEMU machine definitions
QEMU_ARGS: -machine virt -cpu cortex-a57 -machine type=virt -pflash /home/flash0.img -pflash /home/flash1.img -device virtio-net-device,netdev=v0 -netdev tap,id=v0,ifname=tap0 -nographic -smp 1 -m 256
# Args for local disk: -machine virt -cpu cortex-a57 -machine type=virt -pflash /home/flash0.img -pflash /home/flash1.img -drive file=/root/iscsi-disk-image.bin,if=none,id=blk -device virtio-blk-device,drive=blk -nographic -smp 1 -m 256
# Test name to identify specific configuration
TEST_NAME: iscsi
install:
deps:
- wget
- expect
steps:
# Put the flash image in /home with the disk image provided files
# for QEMU to keep them all together.
- cd /home
- wget -O QEMU_EFI.fd ${EDK2_BIN}
# Pad to 64 MBytes as required for QEMU flash images
- dd if=QEMU_EFI.fd of=flash0.img ibs=64M conv=sync
run:
steps:
- export QEMU_BIN QEMU_ARGS TEST_NAME
- ubuntu/scripts/qemu-edk2-boot.sh
|