From 65d6a779f3a8b1b57c0e37b896af6a3816cc5c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Fri, 3 Jul 2015 15:07:16 +0100 Subject: new: ubuntu/kvm-unit-tests Introduce the kvm-unit-tests which can do low level testing of both KVM and QEMU. Change-Id: Ia3a7ab64e4a8f6e742b94514d5376c25055a9df2 --- ubuntu/kvm-unit-tests.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ubuntu/kvm-unit-tests.yaml diff --git a/ubuntu/kvm-unit-tests.yaml b/ubuntu/kvm-unit-tests.yaml new file mode 100644 index 0000000..54f3466 --- /dev/null +++ b/ubuntu/kvm-unit-tests.yaml @@ -0,0 +1,46 @@ +metadata: + name: kvm-unit-tests + format: "Lava-Test-Shell Test Definition 1.0" + description: "Build and run the kvm-unit-tests" + maintainer: + - alex.bennee@linaro.org + os: + - ubuntu + scope: + - functional + devices: + - kvm + - x86 + - mustang + +params: + REPO: git://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git + BRANCH: master + COMPILE_PATH: /opt/bin/ + CONFIG_OPTS: --arch=arm64 + QEMU_BIN: /usr/bin/qemu-system-aarch64 + +install: + # Build the kvm-unit-tests + steps: + - cd ${HOME} + - rm -rf kvm-unit-tests.git + - git clone ${REPO} kvm-unit-tests.git + - cd kvm-unit-tests.git + - git checkout -b build origin/${BRANCH} + - export PATH=${COMPILE_PATH}:${PATH} + - ./configure ${CONFIG_OPTS} + - make + + deps: + - build-essential + +run: + steps: + - cd ${HOME}/kvm-unit-tests.git + - QEMU=$QEMU_BIN ./run-tests.sh + +parse: + # results are of the form: + # PASS selftest::setup + pattern: "^\\s*(?P\\w+)\\s+(?P\\w+)\\s*$" -- cgit v1.2.3