summaryrefslogtreecommitdiff
path: root/android/multinode-target.yaml
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2015-10-05 18:29:21 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2015-10-05 20:17:58 +0100
commitda42f0f046f5093e663ded6426531caf7ea5f295 (patch)
treec894d3b2172fb5bda0664438d637a77846ffd174 /android/multinode-target.yaml
parent33d4e18e2daff630629aa9e63154182727be4dd7 (diff)
Android: Multinode target side unification
CTS and lava-android-test shared almost the same target side YAML files. This change merges both files into one and adds support for USB only devices. To preserve backward compatibility symilnks were created. These should be considered as deprecated and will be removed after all templates are migrated to new YAML files. Change-Id: Ie47eefb2ee5d1872a96925d3d0ec72501ed8fd71 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'android/multinode-target.yaml')
-rw-r--r--android/multinode-target.yaml47
1 files changed, 47 insertions, 0 deletions
diff --git a/android/multinode-target.yaml b/android/multinode-target.yaml
new file mode 100644
index 0000000..6b5d3a0
--- /dev/null
+++ b/android/multinode-target.yaml
@@ -0,0 +1,47 @@
+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"
+
+run:
+ steps:
+ - lava-test-case step1-cat-build-info --shell cat /system/build.prop
+ - SERIALNO=$(getprop ro.serialno)
+ - IPADDR=$(getprop dhcp.eth0.ipaddress)
+ - if [ $ADB_LINK != "ETH" ] && [ ! -z $SERIALNO ]; then IPADDR=$SERIALNO; fi
+ - if [ $ADB_LINK = "ETH" ] && [ ! -z $IPADDR ]
+ - then
+ - lava-test-case step2-get-adb --shell getprop service.adb.tcp.port
+ - lava-test-case step3-set-adb --shell setprop service.adb.tcp.port 5555
+ - lava-test-case step4-set-adb-root --shell setprop service.adb.root 1
+ - lava-test-case step5-stop-adbd --shell stop adbd
+ - lava-test-case step6-start-adbd --shell start adbd
+ - else
+ # if there is no serial number or IP address available, _MISSING_ is passed to the host
+ - IPADDR="_MISSING_"
+ - fi
+ - lava-test-case step7-send-ip --shell lava-send $TEST_NAME-send-ip ipaddr=$IPADDR
+ - lava-test-case step8-multinode-sync --shell lava-sync $TEST_NAME-finished