blob: 85252a5c1638734c334db0eb3e168d1a7bee755d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
metadata:
name: cts-host
format: "Lava-Test-Shell Test Definition 1.0"
description: "Run CTS on Linaro android. Host side;
Get user defined CTS test command from JSON and run;
The value put in params section in this file is default, user can overwrite them by the values in JSON file."
maintainer:
- milosz.wasilewski@linaro.org
os:
- ubuntu
devices:
- kvm
scope:
- functional
install:
deps:
- xz-utils
- python-lxml
- python-setuptools
- android-tools-adb
- android-tools-fastboot
- zip
- libc6:i386
- libncurses5:i386
- libstdc++6:i386
params:
JDK: "default-jdk"
JRE: "default-jre"
CTS_URL: "http://testdata.validation.linaro.org/cts/android-cts-5.0-armv8.zip"
TEST_NAME: "android-cts-5.0-armv8"
TEST_PARAMS: "run cts --package android.aadb --disable-reboot"
run:
steps:
- apt-get install -y $JDK $JRE
- lava-wait $TEST_NAME-send-ip
- IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt`
- export REGEX="([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])"
- echo $IPADDR | grep -P $REGEX
- if [ $? -eq 0 ]; then adb connect $IPADDR; IPADDR=$IPADDR:5555; fi
- adb -s $IPADDR wait-for-device
- "./android/scripts/cts.py $CTS_URL $IPADDR $TEST_PARAMS"
- echo "processes running"
- ps
- lava-sync $TEST_NAME-finished
|