diff mbox

[Branch,~linaro-validation/lava-test/trunk] Rev 86: Add xrestop test from Avik Sil

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

Commit Message

Paul Larson Aug. 17, 2011, 1:47 p.m. UTC
Merge authors:
  Avik Sil (aviksil)
  Paul Larson <paul.larson@linaro.org>
Related merge proposals:
  https://code.launchpad.net/~aviksil/lava-test/new-test-definitions/+merge/71851
  proposed by: Avik Sil (aviksil)
  review: Approve - Paul Larson (pwlars)
  review: Approve - Zygmunt Krynicki (zkrynicki)
------------------------------------------------------------
revno: 86 [merge]
committer: Paul Larson <paul.larson@linaro.org>
branch nick: lava-test
timestamp: Wed 2011-08-17 14:38:38 +0100
message:
  Add xrestop test from Avik Sil
added:
  abrek/test_definitions/xrestop.py
modified:
  abrek/providers.py


--
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 'abrek/providers.py'
--- abrek/providers.py	2011-08-09 09:48:02 +0000
+++ abrek/providers.py	2011-08-17 13:34:33 +0000
@@ -32,6 +32,7 @@ 
         'stream',
         'tiobench',
         'x11perf',
+        'xrestop',
     ]
 
     def __init__(self, config):

=== added file 'abrek/test_definitions/xrestop.py'
--- abrek/test_definitions/xrestop.py	1970-01-01 00:00:00 +0000
+++ abrek/test_definitions/xrestop.py	2011-08-17 13:28:09 +0000
@@ -0,0 +1,27 @@ 
+# Copyright (c) 2010 Linaro
+#
+# 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
+
+INSTALLSTEPS = ['bzr branch lp:~linaro-foundations/lava-test/xrestopscript']
+RUNSTEPS = ["./xrestopscript/xrestop.sh"]
+PATTERN = "^(?P<test_case_id>\w+):\W+(?P<measurement>\d+)"
+
+xrestopinst = abrek.testdef.AbrekTestInstaller(INSTALLSTEPS, deps=["xrestop"])
+xrestoprun = abrek.testdef.AbrekTestRunner(RUNSTEPS)
+xrestopparser = abrek.testdef.AbrekTestParser(PATTERN,
+                   appendall={'units':'KB', 'result':'pass'})
+testobj = abrek.testdef.AbrekTest(testname="xrestop", installer=xrestopinst,
+                                  runner=xrestoprun, parser=xrestopparser)