| 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: |
| - dpkg --add-architecture i386 |
| - apt-get update |
| - ./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" |
| - java -version |
| - ./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} |