diff options
author | Riku Voipio <riku.voipio@linaro.org> | 2016-05-03 16:23:25 +0300 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2016-05-20 11:13:12 +0000 |
commit | 1cbf84b6a43c87c321c2c4d92572223e567c9d0b (patch) | |
tree | 33f155cb648eb3e4dedf0c102c6142a48e401643 /ubuntu | |
parent | 1c39ee8bda734664f90dc16e100727376a04a1a6 (diff) |
start-kvm: new job to start kvm for pipeline jobs
This starts kvm for multinode pipeline jobs. Guest
image is configured using cloud-init, so any OS with
cloud-init can be configured. Guest arch and URL for
test image need to be passed:
- from: git
name: kvm-guest
path: ubuntu/start-kvm.yaml
parameters:
GUEST_ARCH: 'aarch64'
GUEST_IMAGE: 'https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-arm64-uefi1.img'
repository: 'https://git.linaro.org/qa/test-definitions.git'
Change-Id: I88a4cc874f87073b85cacc312eed3013f24e2202
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'ubuntu')
-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+)' |