summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@people.linaro.org>2016-06-14 09:16:13 +0000
committerYongqin Liu <yongqin.liu@people.linaro.org>2016-06-14 09:16:13 +0000
commit4fd78a382569b500462612b80f33746c007b6535 (patch)
tree28b788f543fd0e1614dbcb3705557fce7e1aafd5
parentec50dacea22072044b603eb460d15e659a7f2a9f (diff)
commit yaml fileHEADmaster
Signed-off-by: Yongqin Liu <yongqin.liu@people.linaro.org>
-rw-r--r--adb-push-host.yaml18
-rw-r--r--custom.yaml21
-rw-r--r--multinode-target.yaml67
3 files changed, 105 insertions, 1 deletions
diff --git a/adb-push-host.yaml b/adb-push-host.yaml
index f17f16c..472a10d 100644
--- a/adb-push-host.yaml
+++ b/adb-push-host.yaml
@@ -15,7 +15,7 @@ metadata:
run:
steps:
- - apt-get install -y git android-tools-adb time
+ - apt-get install -y git android-tools-adb time zip
- git clone git://git.linaro.org/qa/android-apk-automation.git
- lava-wait adb-push-send-ip
- IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt`
@@ -31,6 +31,22 @@ run:
- done
- echo "-------------group end:$(date)--------------------" >> /tmp/adb_push_time.txt
- fi
+ - zip -r android-apk-automation.zip android-apk-automation
+ - echo "-------------zip group start:$(date)--------------------">> /tmp/adb_push_time.txt
+ - for i in {1..10}; do
+ - /usr/bin/time -f "\t%E real,\t%U user,\t%S sys" -a -o /tmp/adb_push_time.txt adb push android-apk-automation.zip /data/local/tmp/android-apk-automation.zip
+ - done
+ - echo "-------------zip group end:$(date)--------------------" >> /tmp/adb_push_time.txt
+ - echo "-------------cp zip group start:$(date)--------------------">> /tmp/adb_push_time.txt
+ - for i in {1..10}; do
+ - /usr/bin/time -f "\t%E real,\t%U user,\t%S sys" -a -o /tmp/adb_push_time.txt adb shell cp /data/local/tmp/android-apk-automation.zip /data/local/tmp/android-apk-automation_${i}.zip
+ - done
+ - echo "-------------cp zip group end:$(date)--------------------" >> /tmp/adb_push_time.txt
+ - echo "-------------cp dir group start:$(date)--------------------">> /tmp/adb_push_time.txt
+ - for i in {1..10}; do
+ - /usr/bin/time -f "\t%E real,\t%U user,\t%S sys" -a -o /tmp/adb_push_time.txt adb shell cp -r /data/local/tmp/android-apk-automation /data/local/tmp/android-apk-automation_${i}
+ - done
+ - echo "-------------cp dir group end:$(date)--------------------" >> /tmp/adb_push_time.txt
- adb shell dmesg > /tmp/dmesg.log
- if [ -f /tmp/adb_push_time.txt ]; then lava-test-run-attach /tmp/adb_push_time.txt text/plain; fi
- if [ -f /tmp/dmesg.log ]; then lava-test-run-attach /tmp/dmesg.log text/plain; fi
diff --git a/custom.yaml b/custom.yaml
new file mode 100644
index 0000000..8441397
--- /dev/null
+++ b/custom.yaml
@@ -0,0 +1,21 @@
+metadata:
+ name: shell_custom
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Run monkey test long time with blacklist"
+ maintainer:
+ - yongqin.liu@linaro.org
+ os:
+ - android
+ scope:
+ - functional
+ devices:
+ - wg
+
+params:
+ SHELL_COMMAND: "sleep 3600"
+
+run:
+ steps:
+ - lava-test-case logcat-d --shell logcat -d
+ - lava-test-case ifconfig --shell ifconfig
+ - lava-test-case custom-command --shell $SHELL_COMMAND
diff --git a/multinode-target.yaml b/multinode-target.yaml
new file mode 100644
index 0000000..0243947
--- /dev/null
+++ b/multinode-target.yaml
@@ -0,0 +1,67 @@
+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:
+ - lava-test-case step1a-cat-build-info --shell cat /system/build.prop
+ - lava-test-case step1b-$SIGNAL_PREFIX-getprop --shell getprop
+ - 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-capture-kmsg-levels --shell 'cat /proc/sys/kernel/printk > /data/local/tmp/kmsg_levels'
+ - lava-test-case step6-disable-kmsg --shell echo '1 1 1 1' > /proc/sys/kernel/printk
+ - lava-test-case step7-stop-adbd --shell stop adbd
+ - lava-test-case step8-start-adbd --shell 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-test-case step9-send-ip --shell lava-send $TEST_NAME-send-ip ipaddr=$IPADDR
+ - if [ -f /data/local/tmp/kmsg_levels ]
+ - then
+ - lava-test-case step10-enable-kmsg --shell 'cat /data/local/tmp/kmsg_levels > /proc/sys/kernel/printk'
+ - fi
+ # sleep here to allow for output of kernel messages
+ - sleep 10
+ - lava-test-case step11-multinode-sync --shell lava-sync $TEST_NAME-finished