summaryrefslogtreecommitdiff
path: root/unit-tests/lava/dispatcher-release-unit-tests.yaml
blob: bfc9039e38092e705ade0eb9ecbc5a979d9537be (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
metadata:
    format: Lava-Test Test Definition 1.0
    name: lava-dispatcher-unit-tests
    description: "LAVA dispatcher unit tests on Debian Jessie"
    "version": "1.0"
    maintainer:
        - neil.williams@linaro.org
    os:
        - ubuntu
        - debian
    scope:
        - functional
    devices:
        - kvm

# These tests may need up to 512M of RAM in the KVM
# Check the mem_cpu option in the kvm.conf device_type.

install:
    git-repos:
        - git://git.linaro.org/lava/lava-dispatcher.git


run:
    steps:
        - apt-get update -q
        - DEBIAN_FRONTEND=noninteractive lava-test-case install-base --shell apt-get -q -y install -o Dpkg::Options::="--force-confold" git bc pep8 python-lzma python-serial python-configglue python-pexpect lava-tool telnet python-netifaces python-testscenarios pylint u-boot-tools nfs-kernel-server tftpd-hpa qemu-system-x86 python-nose python-zmq android-tools-adb android-tools-fastboot
        - modprobe loop || true
        - cd lava-dispatcher
        - git checkout release
        - git log -n1
        - ../unit-tests/lava/version-wrapper.py
        - lava-test-case pep8 --shell pep8 --ignore E501 .
        - ../unit-tests/lava/unittests.sh
        - ../unit-tests/lava/fixme-report.sh
        - ../unit-tests/lava/pylint.sh "lava_dispatcher/pipeline"

parse:
    pattern: "(?P<test_case_id>.*) ... (?P<result>(ok|FAIL))"
    fixupdict:
        ok: pass
        FAIL: fail