summaryrefslogtreecommitdiff
path: root/ubuntu/install-qemu-from-repo.yaml
blob: c674dfebf42efca3cfb7033ad6cbea2fb506a8c2 (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
metadata:
    name: qemu-build
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "Install QEMU from repo"
    maintainer:
        - alex.bennee@linaro.org
    os:
        - ubuntu
    scope:
        - functional
    devices:
        - kvm
        - lxc
        - x86

params:
    REPO: http://obs.linaro.org/linaro-staging-stretch/Debian_9.0/
    PKG: qemu-user-binfmt

install:
    steps:
        - echo "deb ${REPO} ./" >> /etc/apt/sources.list
        - echo "deb-src ${REPO} ./" >> /etc/apt/sources.list

    deps:
        - wget
        - apt
        - gnupg

run:
    steps:
        - wget -qO - ${REPO}/Release.key | apt-key add -
        - apt update
        - DEBIAN_FRONTEND=noninteractive lava-test-case qemu-install --shell apt install -y --no-install-recommends ${PKG}