Merge lp:~pundiramit/lava-android-test/stress-tests into lp:lava-android-test

Proposed by Amit Pundir
Status: Merged
Merged at revision: 157
Proposed branch: lp:~pundiramit/lava-android-test/stress-tests
Merge into: lp:lava-android-test
Diff against target: 128 lines (+114/-0)
3 files modified
lava_android_test/test_definitions/cache-coherency.py (+38/-0)
lava_android_test/test_definitions/iozone.py (+38/-0)
lava_android_test/test_definitions/memtester.py (+38/-0)
To merge this branch: bzr merge lp:~pundiramit/lava-android-test/stress-tests
Reviewer Review Type Date Requested Status
Yongqin Liu Approve
Review via email: mp+106770@code.launchpad.net

Description of the change

Add Android stress tests (memtester, iozone, cache-coherency) in LAVA.

To post a comment you must log in.
Revision history for this message
Yongqin Liu (liuyq0307) wrote :

31 +ADB_SHELL_STEPS = ['"stressapptest -M 16 --cc_test -s 10"']
74 +ADB_SHELL_STEPS = ['"iozone -a -i 0 -i 2 -s 16m -V teststring"']
117 +ADB_SHELL_STEPS = ['"memtester 1M 1"']

I don't think the double quote is necessary in the three lines above,
and it's possible that they may cause it failed.

review: Needs Fixing
157. By Amit Pundir

Remove double quotes from ADB_SHELL_STEPS

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

Thanks.
Have tested the version 157

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'lava_android_test/test_definitions/cache-coherency.py'
2--- lava_android_test/test_definitions/cache-coherency.py 1970-01-01 00:00:00 +0000
3+++ lava_android_test/test_definitions/cache-coherency.py 2012-05-22 11:34:31 +0000
4@@ -0,0 +1,38 @@
5+# Copyright (c) 2012 Linaro
6+
7+# Author: Linaro Validation Team <linaro-dev@lists.linaro.org>
8+#
9+# This file is part of LAVA Android Test.
10+#
11+#
12+# This program is free software: you can redistribute it and/or modify
13+# it under the terms of the GNU General Public License as published by
14+# the Free Software Foundation, either version 3 of the License, or
15+# (at your option) any later version.
16+#
17+# This program is distributed in the hope that it will be useful,
18+# but WITHOUT ANY WARRANTY; without even the implied warranty of
19+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20+# GNU General Public License for more details.
21+#
22+# You should have received a copy of the GNU General Public License
23+# along with this program. If not, see <http://www.gnu.org/licenses/>.
24+
25+import lava_android_test.config
26+import lava_android_test.testdef
27+
28+test_name = 'cache-coherency'
29+
30+INSTALL_STEPS_ADB_PRE = []
31+ADB_SHELL_STEPS = ['stressapptest -M 16 --cc_test -s 10']
32+PATTERN = "^\s*(?P<test_case_id>Status?):\s+(?P<result>(PASS|FAIL)?)\s+-\s+"
33+
34+inst = lava_android_test.testdef.AndroidTestInstaller(
35+ steps_adb_pre=INSTALL_STEPS_ADB_PRE)
36+run = lava_android_test.testdef.AndroidTestRunner(
37+ adbshell_steps=ADB_SHELL_STEPS)
38+parser = lava_android_test.testdef.AndroidTestParser(PATTERN)
39+testobj = lava_android_test.testdef.AndroidTest(testname=test_name,
40+ installer=inst,
41+ runner=run,
42+ parser=parser)
43
44=== added file 'lava_android_test/test_definitions/iozone.py'
45--- lava_android_test/test_definitions/iozone.py 1970-01-01 00:00:00 +0000
46+++ lava_android_test/test_definitions/iozone.py 2012-05-22 11:34:31 +0000
47@@ -0,0 +1,38 @@
48+# Copyright (c) 2012 Linaro
49+
50+# Author: Linaro Validation Team <linaro-dev@lists.linaro.org>
51+#
52+# This file is part of LAVA Android Test.
53+#
54+#
55+# This program is free software: you can redistribute it and/or modify
56+# it under the terms of the GNU General Public License as published by
57+# the Free Software Foundation, either version 3 of the License, or
58+# (at your option) any later version.
59+#
60+# This program is distributed in the hope that it will be useful,
61+# but WITHOUT ANY WARRANTY; without even the implied warranty of
62+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
63+# GNU General Public License for more details.
64+#
65+# You should have received a copy of the GNU General Public License
66+# along with this program. If not, see <http://www.gnu.org/licenses/>.
67+
68+import lava_android_test.config
69+import lava_android_test.testdef
70+
71+test_name = 'iozone'
72+
73+INSTALL_STEPS_ADB_PRE = []
74+ADB_SHELL_STEPS = ['iozone -a -i 0 -i 2 -s 16m -V teststring']
75+PATTERN = "^\s*(?P<test_case_id>Status?):\s+(?P<result>(PASS|FAIL)?)\s+-\s+"
76+
77+inst = lava_android_test.testdef.AndroidTestInstaller(
78+ steps_adb_pre=INSTALL_STEPS_ADB_PRE)
79+run = lava_android_test.testdef.AndroidTestRunner(
80+ adbshell_steps=ADB_SHELL_STEPS)
81+parser = lava_android_test.testdef.AndroidTestParser(PATTERN)
82+testobj = lava_android_test.testdef.AndroidTest(testname=test_name,
83+ installer=inst,
84+ runner=run,
85+ parser=parser)
86
87=== added file 'lava_android_test/test_definitions/memtester.py'
88--- lava_android_test/test_definitions/memtester.py 1970-01-01 00:00:00 +0000
89+++ lava_android_test/test_definitions/memtester.py 2012-05-22 11:34:31 +0000
90@@ -0,0 +1,38 @@
91+# Copyright (c) 2012 Linaro
92+
93+# Author: Linaro Validation Team <linaro-dev@lists.linaro.org>
94+#
95+# This file is part of LAVA Android Test.
96+#
97+#
98+# This program is free software: you can redistribute it and/or modify
99+# it under the terms of the GNU General Public License as published by
100+# the Free Software Foundation, either version 3 of the License, or
101+# (at your option) any later version.
102+#
103+# This program is distributed in the hope that it will be useful,
104+# but WITHOUT ANY WARRANTY; without even the implied warranty of
105+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
106+# GNU General Public License for more details.
107+#
108+# You should have received a copy of the GNU General Public License
109+# along with this program. If not, see <http://www.gnu.org/licenses/>.
110+
111+import lava_android_test.config
112+import lava_android_test.testdef
113+
114+test_name = 'memtester'
115+
116+INSTALL_STEPS_ADB_PRE = []
117+ADB_SHELL_STEPS = ['memtester 1M 1']
118+PATTERN = "^\s*(?P<test_case_id>.*?)\s*:\s*(?P<result>\w+)\s*$"
119+
120+inst = lava_android_test.testdef.AndroidTestInstaller(
121+ steps_adb_pre=INSTALL_STEPS_ADB_PRE)
122+run = lava_android_test.testdef.AndroidTestRunner(
123+ adbshell_steps=ADB_SHELL_STEPS)
124+parser = lava_android_test.testdef.AndroidTestParser(PATTERN)
125+testobj = lava_android_test.testdef.AndroidTest(testname=test_name,
126+ installer=inst,
127+ runner=run,
128+ parser=parser)

Subscribers

People subscribed via source and target branches