summaryrefslogtreecommitdiff
path: root/android/lava-android-test-target.yaml
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-07-22 18:56:43 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-07-22 18:56:43 +0100
commite214f7c8dc9d4a518239db171c65fa470922ed89 (patch)
treeae8210f6c49ca91bd7b663f7c2051f8c8556e996 /android/lava-android-test-target.yaml
parentc7cef569677c94a56eb8a250f822cc99ebb9307c (diff)
android: added lava-android-test wrapper
The lava-test-shell wrapper around lava-android-test allows to execute the lava-android-test from the KVM device type in LAVA which acts as a host. With this approach it is possible to controll the host environment and for example use different Java versions with different Android CTS branches. The test wrapper JSON fragment follows: { "command": "lava_test_shell", "parameters": { "role": "host", "testdef_repos": [ { "git-repo": "git://git.linaro.org/qa/test-definitions.git", "parameters": { "TEST_NAME": "cts", "TEST_PARAMS": "--package android.bionic --timeout 1800 --disable-reboot" }, "testdef": "android/lava-android-test-host.yaml" } ], "timeout": 7200 } }, { "command": "lava_test_shell", "parameters": { "role": "target", "testdef_repos": [ { "git-repo": "git://git.linaro.org/qa/test-definitions.git", "parameters": { "TEST_NAME": "cts", "TEST_PARAMS": "--package android.bionic --timeout 1800 --disable-reboot" }, "testdef": "android/lava-android-test-target.yaml" } ], "timeout": 7200 } } lava-android-test-host.yaml and lava-android-test-target.yaml take TEST_NAME and TEST_PARAMS. These have to be the same for each pair of test shells. Optionally lava-android-test-host.yaml takes JAVA_PACKAGE parameter which is used to define the Java version running on host. Change-Id: Ief169010a1510392c741513136cbc245ab769b7b Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'android/lava-android-test-target.yaml')
-rw-r--r--android/lava-android-test-target.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/android/lava-android-test-target.yaml b/android/lava-android-test-target.yaml
new file mode 100644
index 0000000..a705e0c
--- /dev/null
+++ b/android/lava-android-test-target.yaml
@@ -0,0 +1,32 @@
+metadata:
+ name: lava-android-test-target
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Wrapper around lava-android-test. This is the target part.
+ It sends the IP address of the target to host and than
+ waits for the host to execute tests."
+ maintainer:
+ - milosz.wasilewski@linaro.org
+ os:
+ - android
+ scope:
+ - functional
+ devices:
+ - panda
+ - panda-es
+ - vexpress-a9
+ - vexpress-tc2
+ - wg
+
+params:
+ TEST_NAME: "busybox"
+ TEST_PARAMS: ""
+
+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-stop-adbd --shell stop adbd
+ - lava-test-case step5-start-adbd --shell start adbd
+ - lava-test-case step6-send-ip --shell lava-send $TEST_NAME-${TEST_PARAMS// /_}-send-ip ipaddr=$(getprop dhcp.eth0.ipaddress)
+ - lava-test-case step7-multinode-sync --shell lava-sync $TEST_NAME-${TEST_PARAMS// /_}-finished