summaryrefslogtreecommitdiff
path: root/automated/linux/dockerized-tests/local-run.yaml
blob: 37153b987684f8c21d97d83eb26a53e477c90e94 (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
metadata:
    name: local-run
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "Run tests from https://git.linaro.org/qa/test-definitions.git with
                  docker. Test runs on test target."
    maintainer:
        - chase.qi@linaro.org
    os:
        - ubuntu
        - debian
        - centos
        - fedora
        - openembedded
    devices:
        - d03
        - d05
        - juno
        - beaglebone-black
        - hi6220-hikey
        - apq8016-sbc
        - mustang
        - moonshot
        - thunderX
        - x15

    scope:
        - functional
        - performance

params:
    # Relative path to test definition file
    # Example: automated/linux/linpack/linpack.yaml
    TEST: "automated/linux/smoke/smoke.yaml"
    # Usage: KEY1=VALUE1 KEY2=VALUE2
    # Example for smoke test: 'TESTS="pwd, lsb_release -a, uname -a, ip a, lscpu, vmstat, lsblk"'
    TESTDEF_PARAMS: ""
    # Dockerfile example: https://git.linaro.org/ci/dockerfiles.git/tree/stretch-arm64-testdef
    DOCKER_IMG: "linaro/testdef-arm64-debian-stretch:922033e"

run:
    steps:
        - cd automated/linux/dockerized-tests
        - if [ -z "${TESTDEF_PARAMS}" ]; then
        - ./local-run.sh -t "${TEST}" -d "${DOCKER_IMG}"
        - else
        - ./local-run.sh -t "${TEST}" -d "${DOCKER_IMG}" -r "${TESTDEF_PARAMS}"
        - fi
        - ../../utils/send-to-lava.sh ./output/result.txt