blob: 992ce4b7a3a5f139f67d50f30e4612aeb7ffdad4 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
metadata:
name: kvm
format: "Lava-Test-Shell Test Definition 1.0"
description: "Start KVM for secondary testing"
maintainer:
- riku.voipio@linaro.org
scope:
- functional
- virtualization
os:
- ubuntu
devices:
- arndale
- vexpress-tc2
- mustang
- midway
- juno
params:
# guest architecture for constructing qemu command line
GUEST_ARCH: aarch64
# URL to cloud-init enabled guest image
GUEST_IMAGE: https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-arm64-uefi1.img
# Bios or firmware needed to boot
GUEST_FIRMWARE: https://releases.linaro.org/components/kernel/uefi-linaro/15.12/release/qemu64/QEMU_EFI.fd
# kernel for platforms that are booted without firmware
GUEST_KERNEL: none
# how many cores to allocate to guest
GUEST_CORES: "2"
# how much RAM allocate to guest
GUEST_RAM: "1024"
install:
deps:
- qemu-system
- qemu-utils
- bridge-utils
- uml-utilities
- curl
- hwloc-nox
- cloud-utils
- genisoimage
run:
steps:
- 'lava-test-case kvm-init --shell [ -c /dev/kvm ]'
- 'sudo ./common/scripts/kvm-cloud/start-kvm.sh $GUEST_ARCH $GUEST_IMAGE $GUEST_FIRMWARE $GUEST_KERNEL $GUEST_CORES $GUEST_RAM'
- 'lava-send ipv4 ipaddr=$(./common/scripts/kvm-cloud/wait-ip.py)'
- lava-send lava_start
- lava-sync clients
- 'cat *.txt'
|