summaryrefslogtreecommitdiff
path: root/automated/android/boottime/boottime.yaml
blob: cc1e3db4b747f20db027e568617d151a2d899790 (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
metadata:
    name: boottime
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "collect the boottime data many times and try to analyse,
                  when run more than 4 times(including), the average will be
                  calculated without the maximum and the minmun, if run less
                  than or equal to 3 time, the average will be calculated with
                  all data"
    maintainer:
        - yongqin.liu@linaro.org
        - chase.qi@linaro.org
    os:
        - android
    scope:
        - performance
    devices:
        - juno
        - hi6220-hikey

params:
    # specify true or false to skip or not the installation of lxc packages
    SKIP_INSTALL: "false"
    # Specify device serial no. when more than one device connected.
    ANDROID_SERIAL: ""
    # Specify timeout in seconds for wait_boot_completed.
    BOOT_TIMEOUT: "300"
    # Available operations: COLLECT or ANALYZE
    OPERATION: "COLLECT"
    COLLECT_NO: "1"
    # Specify url and token for file uploading.
    URL: "https://archive.validation.linaro.org/artifacts/team/qa/"
    TOKEN: ""

run:
    steps:
        - cd ./automated/android/boottime
        - ./boottime.sh -S "${SKIP_INSTALL}" -s "${ANDROID_SERIAL}" -t "${BOOT_TIMEOUT}" -o "${OPERATION}" -n "${COLLECT_NO}"
        - if [ "${OPERATION}" = "ANALYZE" ]; then ../../utils/upload-to-artifactorial.sh -a "output/boottime.tgz" -u "${URL}" -t "${TOKEN}"; fi
        - ../../utils/upload-to-artifactorial.sh -a output/boottime.tgz -u "${URL}" -t "${TOKEN}"
        - ../../utils/send-to-lava.sh ./output/result.txt