summaryrefslogtreecommitdiff
path: root/android/cts-host.yaml
blob: 9bc00f905664ea9206a822c48a4f704d512e415e (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
metadata:
    name: cts-host
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "Run CTS on Linaro android. Host side;
                  Get user defined CTS test command from JSON and run;
                  The value put in params section in this file is default, user can overwrite them by the values in JSON file."
    maintainer:
        - botao.sun@linaro.org
    os:
        - ubuntu
    devices:
        - kvm
    scope:
        - functional

install:
    deps:
        - xz-utils
        - python-lxml
        - python-setuptools

params:
    JDK: "default-jdk"
    JRE: "default-jre"
    CTS_URL: "http://testdata.validation.linaro.org/cts/android-cts-5.0-armv8.zip"
    TEST_NAME: "android-cts-5.0-armv8"
    TEST_PARAMS: "run cts --package android.aadb --disable-reboot"

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 $JDK $JRE
        - lava-wait $TEST_NAME-send-ip
        - IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt`
        - adb connect $IPADDR
        - adb wait-for-device
        - "./android/scripts/cts.py $CTS_URL $TEST_PARAMS"
        - lava-sync $TEST_NAME-finished