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

Proposed by Naresh Kamboju
Status: Merged
Merged at revision: 210
Proposed branch: lp:~naresh-kamboju/lava-android-test/adding-sched_tests
Merge into: lp:lava-android-test
Diff against target: 76 lines (+55/-1)
2 files modified
doc/tests.rst (+6/-1)
lava_android_test/test_definitions/sched_tests.py (+49/-0)
To merge this branch: bzr merge lp:~naresh-kamboju/lava-android-test/adding-sched_tests
Reviewer Review Type Date Requested Status
Andy Doan (community) Approve
Review via email: mp+126550@code.launchpad.net

Description of the change

Adding new test entry "sched_tests" in lava-android-test.

To post a comment you must log in.
Revision history for this message
Andy Doan (doanac) wrote :

I'll merge now.

review: Approve

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

Subscribers

People subscribed via source and target branches