summaryrefslogtreecommitdiff
path: root/application-benchmark-target.yaml
blob: f8c28b6b8aaa9153d8be29a82631c589dfd7a922 (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
metadata:
    name: target-stop
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "Wrapper for notifying the host side that target side is ready,
                  and waiting for the singal from host side to stop target."
    maintainer:
        - yongqin.liu@linaro.org
    os:
        - android
    scope:
        - functional
    devices:
        - juno

params:
    TEST_NAME: "application-benchmark"

run:
    steps:
        - lava-test-case step1-cat-build-info --shell cat /system/build.prop
        - SERIALNO=$(getprop ro.serialno)
        - IPADDR=$(getprop dhcp.eth0.ipaddress)
        # if serial number exists it's preferred over IP based adb connection
        # This means we're on 'usb only' device with WiFi connectivity
        - if [ ! -z $SERIALNO ]; then IPADDR=$SERIALNO; fi
        - if [ -z $SERIALNO ]
        - then
        - lava-test-case step2-get-adb --shell getprop service.adb.tcp.port
        - lava-test-case step3-set-adb --shell setprop service.adb.tcp.port 5555
        - lava-test-case step3-set-adb-root --shell setprop service.adb.root 1
        - lava-test-case step4-stop-adbd --shell stop adbd
        - lava-test-case step5-start-adbd --shell start adbd
        - fi
        - lava-test-case step6-send-ip --shell lava-send application-benchmark-target-ready-send-ip ipaddr=$IPADDR
        - lava-test-case step7-multinode-sync --shell lava-sync application-benchmark-stop-target