Merge lp:~liuyq0307/lava-android-test/improve-test-docs into lp:lava-android-test

Proposed by Yongqin Liu
Status: Superseded
Proposed branch: lp:~liuyq0307/lava-android-test/improve-test-docs
Merge into: lp:lava-android-test
Diff against target: 290 lines (+179/-10)
9 files modified
doc/tests.rst (+45/-5)
doc/usage.rst (+12/-1)
lava_android_test/test_definitions/big_LITTLE.py (+1/-2)
lava_android_test/test_definitions/cache_coherency.py (+1/-2)
lava_android_test/test_definitions/commands/__init__.py (+29/-0)
lava_android_test/test_definitions/hostshells/__init__.py (+28/-0)
lava_android_test/test_definitions/instruments/__init__.py (+27/-0)
lava_android_test/test_definitions/monkey.py (+7/-0)
lava_android_test/test_definitions/shells/__init__.py (+29/-0)
To merge this branch: bzr merge lp:~liuyq0307/lava-android-test/improve-test-docs
Reviewer Review Type Date Requested Status
Linaro Validation Team Pending
Review via email: mp+114137@code.launchpad.net

This proposal has been superseded by a proposal from 2012-07-11.

Description of the change

Improve some documentation of test.rst and usage.rst

This branch is based the following branch:
lp:~liuyq0307/lava-android-test/connect-lab-wifi/

So wait until the above branch is merge.
Then the review of this branch will be clear

To post a comment you must log in.
189. By Yongqin Liu

merge with trunk

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/tests.rst'
2--- doc/tests.rst 2012-06-25 17:22:29 +0000
3+++ doc/tests.rst 2012-07-11 03:23:17 +0000
4@@ -6,7 +6,7 @@
5
6 The following tests are currently supported in LAVA Android Test:
7
8- * `big-LITTLE`_
9+ * `big_LITTLE`_
10 * `bluetooth`_
11 * `busybox`_
12 * `cts`_
13@@ -21,7 +21,11 @@
14 * `v8`_
15 * `wifi`_
16 * `0xbench`_
17-
18+ * `commands`_
19+ * `instruments`_
20+ * `hostshells`_
21+ * `shells`_
22+
23 busybox
24 +++++++
25 .. automodule:: lava_android_test.test_definitions.busybox
26@@ -58,6 +62,42 @@
27 +++++++++
28 .. automodule:: lava_android_test.test_definitions.gatortest
29
30-big-LITTLE
31-++++++++++
32-.. automodule:: lava_android_test.test_definitions.big-little
33+big_LITTLE
34+++++++++++
35+.. automodule:: lava_android_test.test_definitions.big_LITTLE
36+
37+bluetooth
38++++++++++
39+.. automodule:: lava_android_test.test_definitions.bluetooth
40+
41+tjbench
42++++++++
43+.. automodule:: lava_android_test.test_definitions.tjbench
44+
45+ime
46++++
47+.. automodule:: lava_android_test.test_definitions.ime
48+
49+usbhardware
50++++++++++++
51+.. automodule:: lava_android_test.test_definitions.usbhardware
52+
53+wifi
54+++++
55+.. automodule:: lava_android_test.test_definitions.wifi
56+
57+commands
58+++++++++
59+.. automodule:: lava_android_test.test_definitions.commands
60+
61+hostshells
62+++++++++++
63+.. automodule:: lava_android_test.test_definitions.hostshells
64+
65+instruments
66++++++++++++
67+.. automodule:: lava_android_test.test_definitions.instruments
68+
69+shells
70+++++++
71+.. automodule:: lava_android_test.test_definitions.shells
72\ No newline at end of file
73
74=== modified file 'doc/usage.rst'
75--- doc/usage.rst 2012-06-16 05:11:07 +0000
76+++ doc/usage.rst 2012-07-11 03:23:17 +0000
77@@ -144,7 +144,7 @@
78 and the output is well formatted, then congratulations, you can go
79 directly to step 6. You don't need to wrap script again.
80
81-3. Three types simple test
82+3. Four types simple test
83
84 1. Instrumentation test, run like "adb shell am instrument ..."
85
86@@ -176,6 +176,17 @@
87
88 echo "test_case_fail=fail"
89 echo "test_case_pass=pass"
90+
91+ 4. Host shell test, need to write a shell and run like "bash script.sh"
92+
93+ create a file like lava_android_test/test_definitions/hostshells/example.sh
94+ and put it under lava_android_test/test_definitions/shells::
95+
96+ #!/bin/bash
97+ echo "hostshells-example-fail=fail"
98+ echo "hostshells-example-pass=pass"
99+
100+ this shell script will be passed "-s $(SERIAL) $(OPTIONS)" as arguments
101
102 4. About test scripts/tools
103
104
105=== renamed file 'lava_android_test/test_definitions/big-LITTLE.py' => 'lava_android_test/test_definitions/big_LITTLE.py'
106--- lava_android_test/test_definitions/big-LITTLE.py 2012-06-25 17:23:05 +0000
107+++ lava_android_test/test_definitions/big_LITTLE.py 2012-07-11 03:23:17 +0000
108@@ -27,10 +27,9 @@
109 **Default options:** None
110 """
111
112-import lava_android_test.config
113 import lava_android_test.testdef
114
115-test_name = 'big-LITTLE'
116+test_name = 'big_LITTLE'
117
118 INSTALL_STEPS_ADB_PRE = []
119 ADB_SHELL_STEPS = ['run_stress_switcher_tests.sh -a']
120
121=== renamed file 'lava_android_test/test_definitions/cache-coherency.py' => 'lava_android_test/test_definitions/cache_coherency.py'
122--- lava_android_test/test_definitions/cache-coherency.py 2012-05-22 11:29:25 +0000
123+++ lava_android_test/test_definitions/cache_coherency.py 2012-07-11 03:23:17 +0000
124@@ -18,10 +18,9 @@
125 # You should have received a copy of the GNU General Public License
126 # along with this program. If not, see <http://www.gnu.org/licenses/>.
127
128-import lava_android_test.config
129 import lava_android_test.testdef
130
131-test_name = 'cache-coherency'
132+test_name = 'cache_coherency'
133
134 INSTALL_STEPS_ADB_PRE = []
135 ADB_SHELL_STEPS = ['stressapptest -M 16 --cc_test -s 10']
136
137=== modified file 'lava_android_test/test_definitions/commands/__init__.py'
138--- lava_android_test/test_definitions/commands/__init__.py 2012-05-29 11:03:47 +0000
139+++ lava_android_test/test_definitions/commands/__init__.py 2012-07-11 03:23:17 +0000
140@@ -0,0 +1,29 @@
141+# copyright (C) 2012 Linaro Limited
142+#
143+# Author: Linaro Validation Team <linaro-dev@lists.linaro.org>
144+#
145+# This file is part of LAVA Android Test.
146+#
147+#
148+# This program is free software: you can redistribute it and/or modify
149+# it under the terms of the GNU General Public License as published by
150+# the Free Software Foundation, either version 3 of the License, or
151+# (at your option) any later version.
152+#
153+# This program is distributed in the hope that it will be useful,
154+# but WITHOUT ANY WARRANTY; without even the implied warranty of
155+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
156+# GNU General Public License for more details.
157+#
158+# You should have received a copy of the GNU General Public License
159+# along with this program. If not, see <http://www.gnu.org/licenses/>.
160+
161+"""
162+This directory contains the test that only needs to run an android command and
163+specify the output pattern that to parse the command ouptu to get result.
164+Please see the example.py for a reference.
165+
166+**URL:** None
167+
168+**Default options:** None
169+"""
170
171=== modified file 'lava_android_test/test_definitions/hostshells/__init__.py'
172--- lava_android_test/test_definitions/hostshells/__init__.py 2012-07-10 06:34:06 +0000
173+++ lava_android_test/test_definitions/hostshells/__init__.py 2012-07-11 03:23:17 +0000
174@@ -1,2 +1,30 @@
175+# copyright (C) 2012 Linaro Limited
176+#
177+# Author: Linaro Validation Team <linaro-dev@lists.linaro.org>
178+#
179+# This file is part of LAVA Android Test.
180+#
181+#
182+# This program is free software: you can redistribute it and/or modify
183+# it under the terms of the GNU General Public License as published by
184+# the Free Software Foundation, either version 3 of the License, or
185+# (at your option) any later version.
186+#
187+# This program is distributed in the hope that it will be useful,
188+# but WITHOUT ANY WARRANTY; without even the implied warranty of
189+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
190+# GNU General Public License for more details.
191+#
192+# You should have received a copy of the GNU General Public License
193+# along with this program. If not, see <http://www.gnu.org/licenses/>.
194+"""
195+This directory contains the tests that only need to run a host command.
196+Please see the example.sh for a reference.
197+
198+**URL:** None
199+
200+**Default options:** None
201+"""
202+
203 import os
204 curdir = os.path.dirname(os.path.realpath(__file__))
205
206=== modified file 'lava_android_test/test_definitions/instruments/__init__.py'
207--- lava_android_test/test_definitions/instruments/__init__.py 2012-05-29 11:03:47 +0000
208+++ lava_android_test/test_definitions/instruments/__init__.py 2012-07-11 03:23:17 +0000
209@@ -0,0 +1,27 @@
210+# copyright (C) 2012 Linaro Limited
211+#
212+# Author: Linaro Validation Team <linaro-dev@lists.linaro.org>
213+#
214+# This file is part of LAVA Android Test.
215+#
216+#
217+# This program is free software: you can redistribute it and/or modify
218+# it under the terms of the GNU General Public License as published by
219+# the Free Software Foundation, either version 3 of the License, or
220+# (at your option) any later version.
221+#
222+# This program is distributed in the hope that it will be useful,
223+# but WITHOUT ANY WARRANTY; without even the implied warranty of
224+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
225+# GNU General Public License for more details.
226+#
227+# You should have received a copy of the GNU General Public License
228+# along with this program. If not, see <http://www.gnu.org/licenses/>.
229+"""
230+This directory contains the tests that only need to run the "am instrument -w"
231+command on android. Please see the example.py for a reference.
232+
233+**URL:** None
234+
235+**Default options:** None
236+"""
237
238=== modified file 'lava_android_test/test_definitions/monkey.py'
239--- lava_android_test/test_definitions/monkey.py 2012-06-19 02:56:46 +0000
240+++ lava_android_test/test_definitions/monkey.py 2012-07-11 03:23:17 +0000
241@@ -17,6 +17,13 @@
242 #
243 # You should have received a copy of the GNU General Public License
244 # along with this program. If not, see <http://www.gnu.org/licenses/>.
245+"""
246+Performs a test of monkey functionality in Android with the monkey command
247+
248+**URL:** http://android.git.linaro.org/gitweb?p=platform/development.git;a=blob;f=cmds/monkey/monkey
249+
250+**Default options:** None
251+"""
252 import os
253 import lava_android_test.testdef
254 from lava_android_test.config import get_config
255
256=== modified file 'lava_android_test/test_definitions/shells/__init__.py'
257--- lava_android_test/test_definitions/shells/__init__.py 2012-05-29 11:03:47 +0000
258+++ lava_android_test/test_definitions/shells/__init__.py 2012-07-11 03:23:17 +0000
259@@ -1,2 +1,31 @@
260+# copyright (C) 2012 Linaro Limited
261+#
262+# Author: Linaro Validation Team <linaro-dev@lists.linaro.org>
263+#
264+# This file is part of LAVA Android Test.
265+#
266+#
267+# This program is free software: you can redistribute it and/or modify
268+# it under the terms of the GNU General Public License as published by
269+# the Free Software Foundation, either version 3 of the License, or
270+# (at your option) any later version.
271+#
272+# This program is distributed in the hope that it will be useful,
273+# but WITHOUT ANY WARRANTY; without even the implied warranty of
274+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
275+# GNU General Public License for more details.
276+#
277+# You should have received a copy of the GNU General Public License
278+# along with this program. If not, see <http://www.gnu.org/licenses/>.
279+"""
280+This directory contains the tests that only need to run the android shell
281+script that stored under this directory. Please see the example.sh for a reference.
282+
283+**URL:** None
284+
285+**Default options:** None
286+"""
287+
288+
289 import os
290 curdir = os.path.dirname(os.path.realpath(__file__))

Subscribers

People subscribed via source and target branches