summaryrefslogtreecommitdiff
path: root/android/art-microbenchmarks.yaml
blob: fc01f2a95b1d1e0552b790d6f39bc116d59e14a3 (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:
    name: art-microbenchmarks
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "The script configures the nexus9 for low variance and runs the test"
    maintainer:
        - vishal.bhoj@linaro.org
    os:
        - ubuntu
    devices:
        - kvm
    scope:
        - perfomance

install:
    steps:
        - ./common/scripts/install-deps.sh $DEPENDENCIES $JDK $JRE
    git-repos:
        - https://android-git.linaro.org/git/linaro/art-testing.git

params:
    DEPENDENCIES: "android-tools-adb android-tools-fastboot libc6:i386 libncurses5:i386 libstdc++6:i386"
    JDK: "default-jdk"
    JRE: "default-jre"
    TEST_NAME: "art-test"
    TARGET_DEVICE: "nexus9"
    ITERATIONS: 10
    MODE: 64

run:
    steps:
        - lava-wait $TEST_NAME-send-ip
        - IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt`
        - if [ $IPADDR != "_MISSING_" ]
        - then
        - . ./android/scripts/configure-$TARGET_DEVICE-for-benchmarks.sh
        - ./art-testing/run.py -t $IPADDR --iterations $ITERATIONS --mode $MODE | tee logs.txt
        - . ./android/scripts/parse-ubenchmarks-results.sh logs.txt
        - if [ -f ./art-testing/pkl/*.pkl ]; then lava-test-run-attach ./art-testing/pkl/*.pkl; fi
        - if [ -f ./art-testing/json/*.json ]; then lava-test-run-attach ./art-testing/json/*.json; fi
        - echo "processes running"
        - ps
        - fi
        - lava-sync $TEST_NAME-finished