From patchwork Wed Jan 18 21:47:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 6287 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 73B7123E07 for ; Wed, 18 Jan 2012 21:47:15 +0000 (UTC) Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id 634BDA18045 for ; Wed, 18 Jan 2012 21:47:15 +0000 (UTC) Received: by mail-bk0-f52.google.com with SMTP id zt4so3599882bkb.11 for ; Wed, 18 Jan 2012 13:47:15 -0800 (PST) Received: by 10.205.139.66 with SMTP id iv2mr9252410bkc.27.1326923235195; Wed, 18 Jan 2012 13:47:15 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.82.144 with SMTP id ac16cs161167bkc; Wed, 18 Jan 2012 13:47:14 -0800 (PST) Received: by 10.180.103.2 with SMTP id fs2mr39401182wib.21.1326923233481; Wed, 18 Jan 2012 13:47:13 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id ep20si11526633wid.38.2012.01.18.13.47.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Jan 2012 13:47:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RndLd-00070y-8m for ; Wed, 18 Jan 2012 21:47:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 33DB8E0442 for ; Wed, 18 Jan 2012 21:47:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-test X-Launchpad-Branch: ~linaro-validation/lava-test/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 109 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 109: Perf test from Avik Sil Message-Id: <20120118214713.10005.7881.launchpad@ackee.canonical.com> Date: Wed, 18 Jan 2012 21:47:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14681"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: e0443ab2d961afcfe8e4d0a1217f42776bc17a1f 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 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 === 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 . + +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[\w\s]+):\W+(?P\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)