summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2013-10-16 22:29:36 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2013-10-30 15:09:13 -0700
commitd6d760ac4ca9fbbd5e278d1c0e268faf98ba9796 (patch)
tree7ba150baa5d99a2c93dcab5253e4294bdce1cc26
parentd49bbdadbd7ead21380825a7f5af6fd0011de63b (diff)
Install adb test
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--1.txt1
-rw-r--r--forwarder.yaml8
-rw-r--r--get-ip.sh0
-rwxr-xr-xinstall-adb.sh10
-rw-r--r--json/kvm-beagleblack-group.json81
-rw-r--r--json/kvm-panda-android-group.json88
-rw-r--r--receiver.yaml63
-rw-r--r--receiver2.yaml30
-rw-r--r--run-adb.sh1
-rwxr-xr-xrun-lava-android-test.sh13
-rw-r--r--target.yaml22
11 files changed, 167 insertions, 150 deletions
diff --git a/1.txt b/1.txt
new file mode 100644
index 0000000..6842f0b
--- /dev/null
+++ b/1.txt
@@ -0,0 +1 @@
+staging-panda21:ipaddr=192.168.239.153
diff --git a/forwarder.yaml b/forwarder.yaml
index 084edac..3e56278 100644
--- a/forwarder.yaml
+++ b/forwarder.yaml
@@ -10,11 +10,6 @@ metadata:
- functional
devices:
- kvm
- - arndale
- - panda
- - beaglebone-black
- - beagle-xm
- - mx53loco
install:
deps:
@@ -23,6 +18,7 @@ install:
- lsb-release
- usbutils
- wget
+ - android-tools-adb
- ntpdate
- apache2
@@ -36,7 +32,7 @@ run:
- lava-test-case linux-linaro-ubuntu-netstat --shell netstat -an
- lava-test-case linux-linaro-ubuntu-ifconfig-dump --shell ifconfig -a
- lava-test-case linux-linaro-ubuntu-route-dump-a --shell route
- - lava-test-case linux-linaro-ubuntu-route-ifconfig-up-lo --shell ifconfig lo up
+ - lava-test-case linux-linaro-ubuntu-rout-ifconfig-up-lo --shell ifconfig lo up
- lava-test-case linux-linaro-ubuntu-route-dump-b --shell route
- lava-test-case linux-linaro-ubuntu-route-ifconfig-up --shell ifconfig eth0 up
- lava-test-case multinode-wait --shell lava-wait-all sending
diff --git a/get-ip.sh b/get-ip.sh
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/get-ip.sh
diff --git a/install-adb.sh b/install-adb.sh
new file mode 100755
index 0000000..ce1a3eb
--- /dev/null
+++ b/install-adb.sh
@@ -0,0 +1,10 @@
+#1/bin/sh
+
+set -e
+set -x
+DEBIAN_FRONTEND=noninteractive add-apt-repository -y ppa:nilarimogard/webupd8
+DEBIAN_FRONTEND=noninteractive apt-get -y update
+DEBIAN_FRONTEND=noninteractive apt-get -y install android-tools-adb android-tools-fastboot
+DEBIAN_FRONTEND=noninteractive apt-get -y install python-pip python-dev build-essential
+pip install lava-android-test
+adb devices
diff --git a/json/kvm-beagleblack-group.json b/json/kvm-beagleblack-group.json
deleted file mode 100644
index d6e5778..0000000
--- a/json/kvm-beagleblack-group.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "health_check": false,
- "logging_level": "DEBUG",
- "timeout": 900,
- "job_name": "kvm-beagleblack-group-node",
- "device_group": [
- {
- "role": "99",
- "count": 1,
- "device_type": "beaglebone-black",
- "tags": [
- "codehelp-bottle"
- ]
- },
- {
- "role": "42",
- "count": 1,
- "device_type": "kvm",
- "tags": [
- "codehelp-hhgg"
- ]
- }
- ],
- "actions": [
- {
- "command": "deploy_linaro_image",
- "parameters": {
- "image": "http://images.validation.linaro.org/kvm-debian-wheezy.img.gz",
- "role": "42"
- }
- },
- {
- "command": "deploy_linaro_image",
- "parameters": {
- "image": "http://linaro-gateway/beaglebone/beaglebone_20130625-379.img.gz",
- "role": "99"
- }
- },
- {
- "command": "lava_test_shell",
- "parameters": {
- "testdef_repos": [
- {
- "git-repo": "git://git.linaro.org/qa/test-definitions.git",
- "testdef": "ubuntu/smoke-tests-basic.yaml"
- },
- {
- "git-repo": "git://git.linaro.org/people/neilwilliams/multinode-yaml.git",
- "testdef": "forwarder.yaml"
- }
- ],
- "timeout": 900,
- "role": "99"
- }
- },
- {
- "command": "lava_test_shell",
- "parameters": {
- "testdef_repos": [
- {
- "git-repo": "git://git.linaro.org/qa/test-definitions.git",
- "testdef": "ubuntu/smoke-tests-basic.yaml"
- },
- {
- "git-repo": "git://git.linaro.org/people/neilwilliams/multinode-yaml.git",
- "testdef": "receiver.yaml"
- }
- ],
- "timeout": 900,
- "role": "42"
- }
- },
- {
- "command": "submit_results_on_host",
- "parameters": {
- "stream": "/anonymous/codehelp/",
- "server": "http://staging.validation.linaro.org/RPC2/"
- }
- }
- ]
-}
diff --git a/json/kvm-panda-android-group.json b/json/kvm-panda-android-group.json
new file mode 100644
index 0000000..28dc762
--- /dev/null
+++ b/json/kvm-panda-android-group.json
@@ -0,0 +1,88 @@
+{
+ "health_check": false,
+ "logging_level": "DEBUG",
+ "timeout": 900,
+ "job_name": "kvm-beagleblack-group-node",
+ "device_group": [
+ {
+ "role": "host",
+ "count": 1,
+ "device_type": "kvm",
+ "tags": [
+ "codehelp-hhgg"
+ ]
+ },
+ {
+ "role": "target",
+ "count": 1,
+ "device_type": "panda",
+ "tags": [
+ "codehelp-cop"
+ ]
+ }
+ ],
+ "actions": [
+ {
+ "command": "deploy_linaro_image",
+ "parameters": {
+ "image": "http://community.validation.linaro.org/images/kvm/ubuntu-12-04-server-base-lava.img.gz",
+ "role": "host"
+ }
+ },
+ {
+ "command": "deploy_linaro_android_image",
+ "metadata": {
+ "android.build": "448",
+ "android.name": "linaro-android-member-ti_panda-linaro",
+ "android.url": "https://android-build.linaro.org/jenkins/job/linaro-android-member-ti_panda-linaro/448/"
+ },
+ "parameters": {
+ "boot": "http://snapshots.linaro.org/android//~linaro-android-member-ti/panda-linaro/448//boot.tar.bz2",
+ "data": "http://snapshots.linaro.org/android//~linaro-android-member-ti/panda-linaro/448//userdata.tar.bz2",
+ "system": "http://snapshots.linaro.org/android//~linaro-android-member-ti/panda-linaro/448//system.tar.bz2",
+ "role": "target"
+ }
+ },
+ {
+ "command": "android_install_binaries",
+ "parameters": {"role": "target"}
+ },
+ {
+ "command": "boot_linaro_android_image",
+ "parameters": {"role": "target"}
+ },
+ {
+ "command": "lava_test_shell",
+ "parameters": {
+ "testdef_repos": [
+ {
+ "git-repo": "git://git.linaro.org/people/bhoj/multinode-experiment.git",
+ "testdef": "receiver2.yaml"
+ }
+ ],
+ "timeout": 900,
+ "role": "host"
+ }
+ },
+ {
+ "command": "lava_test_shell",
+ "parameters": {
+ "testdef_repos": [
+ {
+ "git-repo": "git://git.linaro.org/people/bhoj/multinode-experiment.git",
+ "testdef": "target.yaml"
+ }
+ ],
+ "timeout": 900,
+ "role": "target"
+ }
+ },
+ {
+ "command": "submit_results_on_host",
+ "parameters": {
+ "stream": "/anonymous/codehelp/",
+ "server": "http://staging.validation.linaro.org/RPC2/"
+ }
+ }
+ ]
+}
diff --git a/receiver.yaml b/receiver.yaml
deleted file mode 100644
index 8c7c6f8..0000000
--- a/receiver.yaml
+++ /dev/null
@@ -1,63 +0,0 @@
-metadata:
- format: Lava-Test Test Definition 1.0
- name: multinode-network
- description: "MultiNode network test commands"
- maintainer:
- - neil.williams@linaro.org
- os:
- - ubuntu
- scope:
- - functional
- devices:
- - kvm
- - arndale
- - panda
- - beaglebone-black
- - beagle-xm
- - mx53loco
-
-install:
- deps:
- - curl
- - realpath
- - lsb-release
- - usbutils
- - wget
- - ntpdate
- - apache2
-
-run:
- steps:
- - lava-test-case multinode-role-output --shell lava-role
- - lava-test-case multinode-sync --shell lava-sync running
- - lava-test-case multinode-send-message --shell lava-send sending source=$(lava-self) role=$(lava-role) hostname=$(hostname -f) kernver=$(uname -r) kernhost=$(uname -n)
- - lava-test-case multinode-group --shell lava-group
- - lava-group
- - lava-test-case linux-linaro-ubuntu-netstat --shell netstat -an
- - lava-test-case linux-linaro-ubuntu-ifconfig-dump --shell ifconfig -a
- - lava-test-case linux-linaro-ubuntu-route-dump-a --shell route
- - lava-test-case linux-linaro-ubuntu-route-ifconfig-up-lo --shell ifconfig lo up
- - lava-test-case linux-linaro-ubuntu-route-dump-b --shell route
- - lava-test-case linux-linaro-ubuntu-route-ifconfig-up --shell ifconfig eth0 up
- - lava-test-case multinode-wait --shell lava-wait-all sending
- - cat /tmp/lava_multi_node_cache.txt
- - lava-test-case multinode-network --shell lava-network broadcast eth0
- - lava-test-case multinode-get-network --shell lava-network collect eth0
- - lava-test-case realpath-check --shell realpath ./check_ip
- - cat ./check_ip
- - lava-test-case multinode-lava-network-ipv4 --shell ./check_ip
- - lava-test-case multinode-broadcast-ipv4 --shell lava-network query $(lava-self) ipv4
- - lava-test-case multinode-broadcast-ipv6 --shell lava-network query $(lava-self) ipv6
- - lava-test-case multinode-broadcast-netmask --shell lava-network query $(lava-self) netmask
- - lava-test-case multinode-broadcast-gateway --shell lava-network query $(lava-self) default-gateway
- - lava-test-case multinode-broadcast-hostname --shell lava-network query $(lava-self) hostname
- - lava-test-case multinode-broadcast-fqdn --shell lava-network query $(lava-self) hostname-full
- - lava-test-case multinode-broadcast-dns1 --shell lava-network query $(lava-self) dns_1
- - lava-test-case multinode-broadcast-dns2 --shell lava-network query $(lava-self) dns_2
- - lava-test-case multinode-broadcast-dns3 --shell lava-network query $(lava-self) dns_3
- - lava-test-case ntpdate-check --shell ntpdate-debian
- - lava-test-case file-sync --shell lava-sync download
- - lava-test-case wget-from-group --shell ./file-get.sh
- - lava-test-case get-sync --shell lava-sync received
- - lava-test-case list-file --shell ls -l /tmp/testfile
- - lava-test-case remove-file --shell rm /tmp/testfile
diff --git a/receiver2.yaml b/receiver2.yaml
new file mode 100644
index 0000000..91ef229
--- /dev/null
+++ b/receiver2.yaml
@@ -0,0 +1,30 @@
+metadata:
+ format: Lava-Test Test Definition 1.0
+ name: multinode-network
+ description: "MultiNode network test commands"
+ maintainer:
+ - neil.williams@linaro.org
+ os:
+ - ubuntu
+ scope:
+ - functional
+ devices:
+ - kvm
+
+install:
+ deps:
+ - curl
+ - realpath
+ - python-software-properties
+ - usbutils
+ - wget
+ - ntpdate
+ - apache2
+
+run:
+ steps:
+ - lava-test-case install-adb --shell cat /etc/issue
+ - lava-test-case install-adb --shell ./install-adb.sh
+ - lava-test-case multinode-sync --shell lava-wait send-ip
+ - lava-test-case multinode-sync --shell ./run-lava-android-test.sh
+ - lava-test-case multinode-sync --shell lava-sync running
diff --git a/run-adb.sh b/run-adb.sh
new file mode 100644
index 0000000..3675f52
--- /dev/null
+++ b/run-adb.sh
@@ -0,0 +1 @@
+sed
diff --git a/run-lava-android-test.sh b/run-lava-android-test.sh
new file mode 100755
index 0000000..99eb640
--- /dev/null
+++ b/run-lava-android-test.sh
@@ -0,0 +1,13 @@
+#1/bin/sh
+
+set -e
+set -x
+export ADBHOST=`cat /tmp/lava_multi_node_cache.txt | sed -e "s/.*=//g"`
+echo $ADBHOST
+ping -c 5 $ADBHOST
+adb connect $ADBHOST
+adb kill-server
+adb devices
+lava-android-test install shell-binder
+lava-android-test run shell-binder
+
diff --git a/target.yaml b/target.yaml
new file mode 100644
index 0000000..601a71d
--- /dev/null
+++ b/target.yaml
@@ -0,0 +1,22 @@
+metadata:
+ format: Lava-Test Test Definition 1.0
+ name: multinode-network
+ description: "MultiNode Android test"
+ maintainer:
+ - vishal.bhoj@linaro.org
+ os:
+ - android
+ scope:
+ - functional
+ devices:
+ - panda
+
+run:
+ steps:
+ - lava-test-case cat-build-info --shell cat /system/build.prop
+ - lava-test-case get-adb --shell getprop service.adb.tcp.port
+ - lava-test-case set-adb --shell setprop service.adb.tcp.port 5555
+ - lava-test-case stop-adbd --shell stop adbd
+ - lava-test-case start-adbd --shell start adbd
+ - lava-test-case send-ip --shell lava-send send-ip ipaddr=$(getprop dhcp.eth0.ipaddress)
+ - lava-test-case multinode-sync --shell lava-sync running