summaryrefslogtreecommitdiff
path: root/android/art-microbenchmarks.yaml
blob: 78418dee0a35d6a41139e2240b4c3c41a65ed5d7 (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
metadata:
    name: art-microbenchmarks
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "The script configures the Nexus 9 and 5X 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 python3 binutils"
    JDK: "default-jdk"
    JRE: "default-jre"
    TEST_NAME: "art-test"
    TARGET_DEVICE: "nexus9"
    ITERATIONS: 10
    MODE: 64
    CORE: "default"

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