Merge lp:~naresh-kamboju/lava-android-test/adding-sched_test into lp:lava-android-test

Proposed by Naresh Kamboju on 2012-09-25
Status: Needs review
Proposed branch: lp:~naresh-kamboju/lava-android-test/adding-sched_test
Merge into: lp:lava-android-test
Diff against target: 83 lines (+55/-1)
2 files modified
doc/tests.rst (+6/-1)
lava_android_test/test_definitions/sched_test.py (+49/-0)
To merge this branch: bzr merge lp:~naresh-kamboju/lava-android-test/adding-sched_test
Reviewer Review Type Date Requested Status
Linaro Validation Team 2012-09-26 Pending
Andy Doan 2012-09-25 Pending
Review via email: mp+126341@code.launchpad.net

Description of the change

I have added sched_test in to lava-android-test.
please merge.

To post a comment you must log in.
Andy Doan (doanac) wrote :

I believe Naresh was going to make some minor adjustments to this before we merge. The changes we discussed were:

providing a URL: so we understand where this is coming from
changing "test_suite": this is way too generic

Unmerged revisions

210. By Naresh Kamboju on 2012-09-25

adding sched_test

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-07-10 09:16:53 +0000
3+++ doc/tests.rst 2012-09-25 21:40:25 +0000
4@@ -6,6 +6,7 @@
5
6 The following tests are currently supported in LAVA Android Test:
7
8+ * `sched_test`_
9 * `big_LITTLE`_
10 * `bluetooth`_
11 * `busybox`_
12@@ -66,6 +67,10 @@
13 ++++++++++
14 .. automodule:: lava_android_test.test_definitions.big_LITTLE
15
16+sched_test
17+++++++++++
18+.. automodule:: lava_android_test.test_definitions.sched_test
19+
20 bluetooth
21 +++++++++
22 .. automodule:: lava_android_test.test_definitions.bluetooth
23@@ -100,4 +105,4 @@
24
25 shells
26 ++++++
27-.. automodule:: lava_android_test.test_definitions.shells
28\ No newline at end of file
29+.. automodule:: lava_android_test.test_definitions.shells
30
31=== added file 'lava_android_test/test_definitions/sched_test.py'
32--- lava_android_test/test_definitions/sched_test.py 1970-01-01 00:00:00 +0000
33+++ lava_android_test/test_definitions/sched_test.py 2012-09-25 21:40:25 +0000
34@@ -0,0 +1,49 @@
35+# Copyright (c) 2012 Linaro
36+
37+# Author: Linaro Validation Team <linaro-dev@lists.linaro.org>
38+#
39+# This file is part of LAVA Android Test.
40+#
41+#
42+# This program is free software: you can redistribute it and/or modify
43+# it under the terms of the GNU General Public License as published by
44+# the Free Software Foundation, either version 3 of the License, or
45+# (at your option) any later version.
46+#
47+# This program is distributed in the hope that it will be useful,
48+# but WITHOUT ANY WARRANTY; without even the implied warranty of
49+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50+# GNU General Public License for more details.
51+#
52+# You should have received a copy of the GNU General Public License
53+# along with this program. If not, see <http://www.gnu.org/licenses/>.
54+
55+"""
56+Drives scheduler test scripts that are pre-intalled on Linaro
57+Android build
58+
59+**URL:** TODO
60+
61+**Default options:** None
62+"""
63+
64+import lava_android_test.testdef
65+
66+test_name = 'sched_test'
67+
68+DEFAULT_OPTIONS='output all'
69+
70+INSTALL_STEPS_ADB_PRE = []
71+ADB_SHELL_STEPS = ['test_suite $(OPTIONS)']
72+PATTERN = "(?P<test_case_id>.*-*)\s+:\s+(?P<result>(SUCCESS|FAILED))"
73+
74+inst = lava_android_test.testdef.AndroidTestInstaller(
75+ steps_adb_pre=INSTALL_STEPS_ADB_PRE)
76+run = lava_android_test.testdef.AndroidTestRunner(
77+ adbshell_steps=ADB_SHELL_STEPS)
78+parser = lava_android_test.testdef.AndroidTestParser(PATTERN)
79+testobj = lava_android_test.testdef.AndroidTest(testname=test_name,
80+ installer=inst,
81+ runner=run,
82+ parser=parser,
83+ default_options=DEFAULT_OPTIONS)

Subscribers

People subscribed via source and target branches