diff mbox

[Branch,~linaro-validation/lava-test/trunk] Rev 132: Add spandex-gles2 test definition.

Message ID 20120312075209.11283.500.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Zygmunt Krynicki March 12, 2012, 7:52 a.m. UTC
Merge authors:
  Alexandros Frantzis (afrantzis)
Related merge proposals:
  https://code.launchpad.net/~afrantzis/lava-test/spandex-gles2/+merge/42243
  proposed by: Alexandros Frantzis (afrantzis)
  review: Approve - Zygmunt Krynicki (zkrynicki)
------------------------------------------------------------
revno: 132 [merge]
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: trunk
timestamp: Mon 2012-03-12 08:50:10 +0100
message:
  Add spandex-gles2 test definition.
added:
  lava_test/test_definitions/spandex-gles2.py
modified:
  doc/changes.rst


--
lp:lava-test
https://code.launchpad.net/~linaro-validation/lava-test/trunk

You are subscribed to branch lp:lava-test.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-test/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'doc/changes.rst'
--- doc/changes.rst	2012-03-12 07:48:46 +0000
+++ doc/changes.rst	2012-03-12 07:50:10 +0000
@@ -17,6 +17,7 @@ 
  * Add command line switch ``--verbose`` that turns on lots of messages
  * Add new GLMark2 ES2 test (glmark2-es2)
  * Add new render-bench test
+ * Add spandex-gles2 test
 
 .. _version_0_4:
 

=== added file 'lava_test/test_definitions/spandex-gles2.py'
--- lava_test/test_definitions/spandex-gles2.py	1970-01-01 00:00:00 +0000
+++ lava_test/test_definitions/spandex-gles2.py	2010-11-30 14:20:51 +0000
@@ -0,0 +1,41 @@ 
+# Copyright (c) 2010 Linaro Limited
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+import abrek.testdef
+
+spandex_benchmark = "/usr/share/spandex/bd/benchmarks/opengles2/benchmark_smoke.txt"
+
+INSTALL_STEPS = [
+    'sudo add-apt-repository ppa:linaro-maintainers/user-platforms',
+    'sudo apt-get update',
+    'sudo apt-get install -y --force-yes spandex-gles2 spandex-benchmarks-gles2'
+    ]
+
+RUNSTEPS = [
+    "spandex-gles2 %s > /dev/null" % spandex_benchmark,
+    "python /usr/share/spandex/bd/python/wikireport.py result.txt"
+    ]
+
+PATTERN = "^\|\s+(?P<test_case_id>[^|]+?)\s+\|\s+(?P<measurement>\d+(\.\d+)?)"
+
+inst = abrek.testdef.AbrekTestInstaller(INSTALL_STEPS,
+                                        deps=["python-software-properties"])
+run = abrek.testdef.AbrekTestRunner(RUNSTEPS)
+parse = abrek.testdef.AbrekTestParser(PATTERN,
+                                      appendall={'units':'reps/s',
+                                                 'result':'pass'})
+
+testobj = abrek.testdef.AbrekTest(testname="spandex-gles2", installer=inst,
+                                  runner=run, parser=parse)