aboutsummaryrefslogtreecommitdiff
path: root/wa2-linux-local.yaml
blob: a477b7da6b894f82c18471e520e9aa5b06ac66ee (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
43
44
metadata:
    format: Lava-Test Test Definition 1.0
    name: wa2-linux-local
    description: "Run WA2 on Linux local through loopback interface"
    maintainer:
        - milosz.wasilewski@linaro.org
        - chase.qi@linaro.org
    os:
        - debian
    scope:
        - functional
    devices:
        - hi6220-hikey
        - apq8016-sbc

params:
    AGENDA: "templates/generic-linux.yaml"
    JOB_NAME: "WA2-linux-local"
    # Name of the template for device config
    CONFIG: "templates/config-generic-linux-local.py"
    DEPENDENCIES: "git wget zip xz-utils python python-yaml python-lxml
                   python-setuptools python-numpy python-colorama python-pip
                   sqlite3 libstdc++6:i386 libgcc1:i386 zlib1g:i386
                   libncurses5:i386 android-tools-adb android-tools-fastboot
                   time sysstat openssh-client openssh-server sshpass"
    # Provide a valid build-tools URL from Json
    BUILD_TOOLS_URL: "http://testdata.validation.linaro.org/apks/workload-automation/build-tools.tar.gz"
    # Provide a valid workload_automation_home URL from Json
    WA_HOME_URL: "http://testdata.validation.linaro.org/apks/workload-automation/workload_automation_home.tar.gz"

install:
    steps:
        - './install-deps.sh $DEPENDENCIES'
        - './install-wa2.sh $BUILD_TOOLS_URL $WA_HOME_URL $CONFIG'

run:
    steps:
        - set -x
        # step1-enable-root-login and step2-change-root-passwd
        - ./setup-linux-target.sh
        - lava-test-case step3-restart-ssh-server --shell service ssh restart
        - lava-test-case step4-run-workload --shell wa run $AGENDA -v -f -d $JOB_NAME -c $CONFIG
        - tar caf ${JOB_NAME}.tar.xz $JOB_NAME
        - lava-test-run-attach ${JOB_NAME}.tar.xz