Merge lp:~afrantzis/lava-test/spandex-gles2 into lp:lava-test/0.0

Proposed by Alexandros Frantzis
Status: Merged
Merged at revision: 132
Proposed branch: lp:~afrantzis/lava-test/spandex-gles2
Merge into: lp:lava-test/0.0
Diff against target: 45 lines (+41/-0)
1 file modified
abrek/test_definitions/spandex-gles2.py (+41/-0)
To merge this branch: bzr merge lp:~afrantzis/lava-test/spandex-gles2
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Paul Larson Pending
Review via email: mp+42243@code.launchpad.net

Description of the change

Test definition for spandex-gles2 benchmark.

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Looks good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'abrek/test_definitions/spandex-gles2.py'
2--- abrek/test_definitions/spandex-gles2.py 1970-01-01 00:00:00 +0000
3+++ abrek/test_definitions/spandex-gles2.py 2010-11-30 14:24:42 +0000
4@@ -0,0 +1,41 @@
5+# Copyright (c) 2010 Linaro Limited
6+#
7+# This program is free software: you can redistribute it and/or modify
8+# it under the terms of the GNU General Public License as published by
9+# the Free Software Foundation, either version 3 of the License, or
10+# (at your option) any later version.
11+#
12+# This program is distributed in the hope that it will be useful,
13+# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+# GNU General Public License for more details.
16+#
17+# You should have received a copy of the GNU General Public License
18+# along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
20+import abrek.testdef
21+
22+spandex_benchmark = "/usr/share/spandex/bd/benchmarks/opengles2/benchmark_smoke.txt"
23+
24+INSTALL_STEPS = [
25+ 'sudo add-apt-repository ppa:linaro-maintainers/user-platforms',
26+ 'sudo apt-get update',
27+ 'sudo apt-get install -y --force-yes spandex-gles2 spandex-benchmarks-gles2'
28+ ]
29+
30+RUNSTEPS = [
31+ "spandex-gles2 %s > /dev/null" % spandex_benchmark,
32+ "python /usr/share/spandex/bd/python/wikireport.py result.txt"
33+ ]
34+
35+PATTERN = "^\|\s+(?P<test_case_id>[^|]+?)\s+\|\s+(?P<measurement>\d+(\.\d+)?)"
36+
37+inst = abrek.testdef.AbrekTestInstaller(INSTALL_STEPS,
38+ deps=["python-software-properties"])
39+run = abrek.testdef.AbrekTestRunner(RUNSTEPS)
40+parse = abrek.testdef.AbrekTestParser(PATTERN,
41+ appendall={'units':'reps/s',
42+ 'result':'pass'})
43+
44+testobj = abrek.testdef.AbrekTest(testname="spandex-gles2", installer=inst,
45+ runner=run, parser=parse)

Subscribers

People subscribed via source and target branches