diff mbox

[Branch,~linaro-validation/lava-test/trunk] Rev 109: Perf test from Avik Sil

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

Commit Message

Paul Larson Jan. 18, 2012, 9:47 p.m. UTC
Merge authors:
  Avik Sil (aviksil)
Related merge proposals:
  https://code.launchpad.net/~linaro-foundations/lava-test/lava-test-perf/+merge/85631
  proposed by: Avik Sil (aviksil)
  review: Approve - Paul Larson (pwlars)
  review: Approve - Le Chi Thu (le-chi-thu)
  review: Approve - Zygmunt Krynicki (zkrynicki)
------------------------------------------------------------
revno: 109 [merge]
committer: Paul Larson <paul.larson@linaro.org>
branch nick: lava-test
timestamp: Wed 2012-01-18 15:45:51 -0600
message:
  Perf test from Avik Sil
added:
  lava_test/test_definitions/perf.py
modified:
  lava_test/core/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 'lava_test/core/providers.py'
--- lava_test/core/providers.py	2012-01-17 12:42:46 +0000
+++ lava_test/core/providers.py	2012-01-18 21:45:51 +0000
@@ -37,6 +37,7 @@ 
         'gtkperf',
         'ltp',
         'peacekeeper',
+        'perf',
         'posixtestsuite',
         'pwrmgmt',
         'pybench',

=== added file 'lava_test/test_definitions/perf.py'
--- lava_test/test_definitions/perf.py	1970-01-01 00:00:00 +0000
+++ lava_test/test_definitions/perf.py	2012-01-17 06:37:14 +0000
@@ -0,0 +1,31 @@ 
+# Copyright (c) 2010, 2011 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/>.
+
+from lava_test.core.installers import TestInstaller
+from lava_test.core.parsers import TestParser
+from lava_test.core.runners import TestRunner
+from lava_test.core.tests import Test
+
+DEFAULT_OPTIONS = ""
+DEPS = ["linux-tools"]
+RUNSTEPS = ["export PERFBIN=`find /usr/bin/ -name perf_* | sort -r | head -n 1 | xargs basename`; $PERFBIN test 2>&1  $(OPTIONS)"]
+PATTERN = "^ \d+:\s+(?P<test_case_id>[\w\s]+):\W+(?P<message>\w+)"
+
+perfinst = TestInstaller(deps=DEPS)
+perfrun = TestRunner(RUNSTEPS, default_options=DEFAULT_OPTIONS)
+perfparser = TestParser(PATTERN,
+                   appendall={"result":"pass"})
+testobj = Test(test_id="perf", installer=perfinst,
+                                  runner=perfrun, parser=perfparser)