diff options
Diffstat (limited to 'ubuntu/start-kvm.yaml')
-rw-r--r-- | ubuntu/start-kvm.yaml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ubuntu/start-kvm.yaml b/ubuntu/start-kvm.yaml new file mode 100644 index 0000000..031a031 --- /dev/null +++ b/ubuntu/start-kvm.yaml @@ -0,0 +1,50 @@ +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 + +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' + - 'lava-send ipv4 ipaddr=$(./common/scripts/kvm-cloud/wait-ip.py)' + - lava-send lava_start + - lava-sync clients + - 'cat *.txt' + +parse: + pattern: '^(?P<test_case_id>[^:]+):\s*(?P<measurement>[0-9.]+)\s+(?P<units>\w+)\s+(?P<result>\w+)' |