diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2017-02-20 16:09:09 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2017-02-20 16:09:09 +0800 |
commit | f54557176bc35a08a41e9e1a3ae174d301a92fd1 (patch) | |
tree | 95cb7bbe6114567ff9f22ee605f28512a5da535c /android | |
parent | ac4069e9dc9ef5959e035f6acb86c17998e2a4e0 (diff) |
remove symlinks
Change-Id: Ie49a646e2fd6d2eb153e036ec283ca62ff81ec86
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'android')
-rw-r--r--[l---------] | android/cts-target.yaml | 75 | ||||
l--------- | android/lava-android-test-target.yaml | 1 |
2 files changed, 74 insertions, 2 deletions
diff --git a/android/cts-target.yaml b/android/cts-target.yaml index db27b47..f8d0beb 120000..100644 --- a/android/cts-target.yaml +++ b/android/cts-target.yaml @@ -1 +1,74 @@ -multinode-target.yaml
\ No newline at end of file +metadata: + name: multinode-target + format: "Lava-Test-Shell Test Definition 1.0" + description: "Run android test that requires host side. Target side. + The value put in params section in this file is default, user can overwrite them by the values in JSON file. + Test can be used with different host side tests" + maintainer: + - milosz.wasilewski@linaro.org + os: + - android + devices: + - panda + - panda-es + - vexpress-a9 + - vexpress-tc2 + - juno + - mn-nexus9 + scope: + - functional + - performance + +params: + TEST_NAME: "android-cts-5.0-armv8" + # ADB_LINK parameter is used to pass proper device + # identification to the host side. Default is ETH + # which means adb-over-ethernet is used + ADB_LINK: "ETH" + # timeout value to wait until the ip ia available for ping LAVA_SERVER_IP + PING_TIMEOUT: 10 + +run: + steps: + - cat /system/build.prop + - getprop + - SERIALNO=$(getprop ro.serialno) + - IPADDR=$(getprop dhcp.eth0.ipaddress) + - if [ -z "${IPADDR}" ]; then + - IPADDR=$(ifconfig eth0|grep "inet addr:") + - IPADDR=${IPADDR#*:} + - IPADDR=${IPADDR%% *} + - fi + - if [ $ADB_LINK != "ETH" ] && [ ! -z $SERIALNO ] + - then + - IPADDR=$SERIALNO + - fi + - if [ $ADB_LINK = "ETH" ] && [ ! -z $IPADDR ] + - then + - cat /proc/sys/kernel/printk > /data/local/tmp/kmsg_levels + - echo '1 1 1 1' > /proc/sys/kernel/printk + - getprop service.adb.tcp.port + - setprop service.adb.tcp.port 5555 + - setprop service.adb.root 1 + - stop adbd + - start adbd + - ping_count=0 + - while ! LC_ALL=C ping -W1 -c1 ${LAVA_SERVER_IP} ; do + - sleep 1; ping_count=$((ping_count + 1)); [ ${ping_count} -ge ${PING_TIMEOUT} ] && exit 1 + - done + - fi + - if [ -z $SERIALNO ] && [ -z $IPADDR ] + - then + # if there is no serial number or IP address available, _MISSING_ is passed to the host + - IPADDR="_MISSING_" + - fi + - lava-send $TEST_NAME-send-ip ipaddr=$IPADDR + - if [ -f /data/local/tmp/kmsg_levels ] + - then + - cat /data/local/tmp/kmsg_levels > /proc/sys/kernel/printk + - fi + # sleep here to allow for output of kernel messages + - sleep 10 + - lava-sync $TEST_NAME-finished + - sleep 10 + - lava-test-case test-finished --shell true diff --git a/android/lava-android-test-target.yaml b/android/lava-android-test-target.yaml deleted file mode 120000 index db27b47..0000000 --- a/android/lava-android-test-target.yaml +++ /dev/null @@ -1 +0,0 @@ -multinode-target.yaml
\ No newline at end of file |