summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2016-04-22 01:28:44 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2016-04-22 01:28:44 +0800
commit1a1e6db40adcb3e3916042fc3c4d9ac7738ec4cc (patch)
treef38e97bb15336daf8548d4bd16cdf48d5610fe1b
small repo for the target side for the android-apk-automation testHEADmaster
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--application-benchmark-target.yaml24
-rw-r--r--lava-android-benchmark-target.yaml36
2 files changed, 60 insertions, 0 deletions
diff --git a/application-benchmark-target.yaml b/application-benchmark-target.yaml
new file mode 100644
index 0000000..2e29039
--- /dev/null
+++ b/application-benchmark-target.yaml
@@ -0,0 +1,24 @@
+metadata:
+ name: target-stop
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Wrapper for notifying the host side that target side is ready,
+ and waiting for the singal from host side to stop target."
+ maintainer:
+ - yongqin.liu@linaro.org
+ os:
+ - android
+ scope:
+ - functional
+ devices:
+ - juno
+
+run:
+ steps:
+ - lava-test-case step1-cat-build-info --shell cat /system/build.prop
+ - 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 step3-set-adb-root --shell setprop service.adb.root 1
+ - lava-test-case step4-stop-adbd --shell stop adbd
+ - lava-test-case step5-start-adbd --shell start adbd
+ - lava-test-case step6-send-ip --shell lava-send application-benchmark-target-ready-send-ip ipaddr=$(getprop dhcp.eth0.ipaddress)
+ - lava-test-case step7-multinode-sync --shell lava-sync application-benchmark-stop-target
diff --git a/lava-android-benchmark-target.yaml b/lava-android-benchmark-target.yaml
new file mode 100644
index 0000000..ee542ee
--- /dev/null
+++ b/lava-android-benchmark-target.yaml
@@ -0,0 +1,36 @@
+metadata:
+ name: lava-android-benchmark-target
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Multinode target part for android benchmarking"
+ maintainer:
+ - milosz.wasilewski@linaro.org
+ os:
+ - android
+ scope:
+ - benchmark
+ devices:
+ - panda
+ - panda-es
+ - vexpress-a9
+ - vexpress-tc2
+ - juno
+
+params:
+ TEST_NAME: "geekbench"
+
+run:
+ steps:
+ - lava-test-case step1-cat-build-info --shell cat /system/build.prop
+ - 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
+ - sleep 10
+ - IPADDR=$(getprop dhcp.eth0.ipaddress)
+ - if [ -z $IPADDR ]; then netcfg eth0 up; netcfg eth0 dhcp; IPADDR=$(getprop dhcp.eth0.ipaddress); fi
+ - lava-test-case step6-send-ip --shell lava-send $TEST_NAME-send-ip ipaddr=$IPADDR
+ - lava-test-case step7-enable-kmsg --shell 'cat /data/local/tmp/kmsg_levels > /proc/sys/kernel/printk'
+ - lava-test-case step8-multinode-sync --shell lava-sync $TEST_NAME-finished