summaryrefslogtreecommitdiff
path: root/android/cts-host.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'android/cts-host.yaml')
-rw-r--r--android/cts-host.yaml51
1 files changed, 51 insertions, 0 deletions
diff --git a/android/cts-host.yaml b/android/cts-host.yaml
new file mode 100644
index 0000000..ce412a3
--- /dev/null
+++ b/android/cts-host.yaml
@@ -0,0 +1,51 @@
+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
+ - ./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}