summaryrefslogtreecommitdiff
path: root/application-benchmark-host.yaml
blob: 2dfcab88a6ae1a13d4b7f61c5db038f4cd51d3ac (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
metadata:
    name: application-benchmark-host
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "Wrapper for benchmarking application, will collect information
                  like memory, cpu, starttime when start the activity. Some parameters
                  can be specified for this test:
                  BASE_URL: based url from where application apk files can be gotten.
                      default is http://testdata.validation.linaro.org/apks/JavaBenchmark/pure-java-applications/
                  APP_CONFIG_LIST: specify the application to be benchmarked in the form of
                        APK_FILE_NAME,APP_PACKAGE/ACTIVITY_NAME,APP_NICKNAME
                     we can sepcified multiple with space separated. If the application to be benchmarked
                     is a system application, we can specified NULL in the APK_FILE_NAME placeholder
                  LOOP_COUNT: specify the count we want to run for benchmarking. Default is 12.
                     the average is calculated with maximum and minimum excluded.
                  COLLECT_STREAMLINE: specify if streamline data will be collected. only false and true are available."
    maintainer:
        - yongqin.liu@linaro.org
    os:
        - android
    scope:
        - performance
    devices:
        - kvm

params:
    APP_CONFIG_LIST: ""
    LOOP_COUNT: 13
    COLLECT_STREAMLINE: "false"

run:
    steps:
        - apt-add-repository -y http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu
        - apt-get update -y
        - apt-get install -y android-tools-adb android-tools-fastboot zip
        - lava-wait application-benchmark-target-ready-send-ip
        - IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt`
        - adb connect $IPADDR
        - adb wait-for-device
        - ./application-benchmark.sh --loop-count "$LOOP_COUNT" --streamline "$COLLECT_STREAMLINE" $APP_CONFIG_LIST
        - lava-sync application-benchmark-stop-target

parse:
    pattern: "(?P<test_case_id>\\S+)(?P<result>=)(?P<measurement>[\\d\\.]+)\\s+(?P<units>\\S+)"
    fixupdict:
        =: pass