aboutsummaryrefslogtreecommitdiff
path: root/automated/linux/workload-automation3/workload-automation.yaml
blob: fc6872dcdae54fa7744079dcd500e99d7af469d4 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
metadata:
    name: workload-automation-linux
    format: "Lava-Test Test Definition 1.0"
    description: "Workload Automation on Linux"
    maintainer:
        - milosz.wasilewski@linaro.org
        - chase.qi@linaro.org
    os:
        - debian
        - ubuntu
        - centos
        - fedora
    devices:
        - juno
        - hi6220-hikey
        - apq8016-sbc
        - x15
    scope:
        - performance

params:
    SKIP_INSTALL: "false"
    # Params for WA test run.
    WA_TAG: "master"
    WA_GIT_REPO: "https://github.com/ARM-software/workload-automation"
    # Install devlib, which is WA depenency
    DEVLIB_REPO: "https://github.com/ARM-software/devlib.git"
    DEVLIB_TAG: "master"
    WA_TEMPLATES_REPO: "https://git.linaro.org/qa/wa-templates"
    TEMPLATES_BRANCH: "master"
    CONFIG: "config/generic-linux-localhost.yaml"
    AGENDA: "agenda/linux-dhrystone.yaml"
    # allow extra extenstions for WA
    WA_EXTENSION_PATHS: ""
    # directory where the WA results are stored
    # defaults to {TEST_DIR}/output
    OUTPUT: ""
    # Specify url and token for publishing artifacts.
    # For safety reasons, please set 'ARTIFACTORIAL_TOKEN' variable in job definition with
    # 'secrets' dictionary, and set job visibility to personal or group.
    # Refer to https://validation.linaro.org/static/docs/v2/publishing-artifacts.html
    ARTIFACTORIAL_URL: "https://archive.validation.linaro.org/artifacts/team/qa/"
    ARTIFACTORIAL_TOKEN: ""

run:
    steps:
        - export WA_EXTENSION_PATHS=$WA_EXTENSION_PATHS
        - cd ./automated/linux/workload-automation3
        - echo ${OUTPUT}
        - if [ -z "${OUTPUT}" ]; then OUTPUT="./output"; fi
        - echo ${OUTPUT}
        # Test run.
        - ./workload-automation.sh -s "${SKIP_INSTALL}" -t "${WA_TAG}" -r "${WA_TEMPLATES_REPO}" -T "${TEMPLATES_BRANCH}" -c "${CONFIG}" -a "${AGENDA}" -R "${WA_GIT_REPO}" -d "${DEVLIB_REPO}" -D "${DEVLIB_TAG}" -o "${OUTPUT}"
        # Upload test output to artifactorial.
        - tar caf "wa-output.tar.xz" "${OUTPUT}"
        - ../../utils/upload-to-artifactorial.sh -a "wa-output.tar.xz" -u "${ARTIFACTORIAL_URL}" -t "${ARTIFACTORIAL_TOKEN}"
        # Send test result to LAVA.
        - ../../utils/send-to-lava.sh "${OUTPUT}/result.txt"