summaryrefslogtreecommitdiff
path: root/android/cts-host.yaml
blob: ceae5c1f205e23311d8b9137d55cb131c46ff155 (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
52
53
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:
        - milosz.wasilewski@linaro.org
    os:
        - ubuntu
    devices:
        - kvm
    scope:
        - functional

install:
    steps:
        - ./common/scripts/install-deps.sh $DEPENDENCIES $JDK $JRE

params:
    DEPENDENCIES: "xz-utils python-lxml python-setuptools python-pexpect android-tools-adb android-tools-fastboot zip libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1-dev libc6-dev-i386 lib32gcc1"
    JDK: "default-jdk"
    JRE: "default-jre"
    CTS_URL: "http://testdata.validation.linaro.org/cts/android-cts-5.0-armv8.zip"
    BUILD_TOOLS_URL: "http://testdata.validation.linaro.org/apks/workload-automation/build-tools.tar.gz"
    TEST_NAME: "android-cts-5.0-armv8"
    TEST_PARAMS: "run cts --package android.aadb --disable-reboot"

run:
    steps:
        - wget $BUILD_TOOLS_URL -O build-tools.tar.gz
        - tar zxvf build-tools.tar.gz
        - AAPT_HOME=`pwd`/build-tools
        - PATH=${AAPT_HOME}/android-4.4/:${PATH}
        - export PATH
        - lava-wait $TEST_NAME-send-ip
        - IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt`
        - if [ $IPADDR != "_MISSING_" ]
        - then
        - ". ./android/scripts/adb_connect.sh $IPADDR"
        - echo $CTS_URL
        - echo $IPADDR
        - echo $TEST_PARAMS
        - adb -s $IPADDR wait-for-device
        - adb devices
        # increase the heap size. KVM devices in LAVA default to ~250M of heap
        - export _JAVA_OPTIONS="-Xmx350M"
        - ./android/scripts/cts.py $CTS_URL $IPADDR $TEST_PARAMS
        - echo "processes running"
        - ps
        - fi
        - lava-sync $TEST_NAME-finished
        - rm -fr build-tools.tar.gz ${AAPT_HOME}