From patchwork Thu Apr 19 14:37:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 7949 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 442A623E49 for ; Thu, 19 Apr 2012 14:37:15 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id D6D60A18579 for ; Thu, 19 Apr 2012 14:37:14 +0000 (UTC) Received: by iage36 with SMTP id e36so16408132iag.11 for ; Thu, 19 Apr 2012 07:37:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=2g0N4MP4bvGym90EcLSEJchpjNXrEvwLcPcX5sbtJX8=; b=dyQ3DpNKAId6WnbmsiEHrnSkTkY6ALBo9lmHkhHoxC9yEYxNBXs5cufIYtsRbzLEvF y1+IIYSUUjwemvwZu+DgbEH8dFjQl098uEiv1TezqeaXbBB5cNHz42Wi2rhY56CMsmNn CGCCezZd4LI1XxhSDcoM6aay9EtDlWELpOOcc6pytZRyTJnOClekR4Ndg3E7Iveoesa7 eOASszZyBEfjf2q5nujlcCm5ox/o6mpLPQ09sAsYSPL6iewiNS3ko83xs4h+QM0dYikc vhvE62x7mXvDhAmFrY+AH8KkSyqd+z52kBrfqlXDxGSdHjB5j/y02nqhE5mOvcKk+B0S eEVg== Received: by 10.42.19.72 with SMTP id a8mr1794324icb.39.1334846234182; Thu, 19 Apr 2012 07:37:14 -0700 (PDT) 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.231.137.198 with SMTP id x6csp294275ibt; Thu, 19 Apr 2012 07:37:13 -0700 (PDT) Received: by 10.180.101.136 with SMTP id fg8mr27092926wib.4.1334846232730; Thu, 19 Apr 2012 07:37:12 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id gl10si10155662wib.27.2012.04.19.07.37.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Apr 2012 07:37:12 -0700 (PDT) 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 1SKsTv-0001oQ-Nt for ; Thu, 19 Apr 2012 14:37:11 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id A4CFEE01EE for ; Thu, 19 Apr 2012 14:37:11 +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: 143 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 143: Merge rewritten perf test Message-Id: <20120419143711.24793.97999.launchpad@ackee.canonical.com> Date: Thu, 19 Apr 2012 14:37:11 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15108"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: dd92f79859595daa222c97cbdb6e5f67f9008bc5 X-Gm-Message-State: ALoCoQl+Mgcugk0iPNa4SeFBe7Q/GyY4Dz+EykyaMsfDq4hA+UPcP8/MDvvJEPfpJ9Nei+lI19gy Merge authors: Avik Sil (aviksil) Related merge proposals: https://code.launchpad.net/~linaro-foundations/lava-test/lava-test-perf/+merge/101358 proposed by: Avik Sil (aviksil) review: Approve - Ricardo Salveti (rsalveti) review: Approve - Zygmunt Krynicki (zkrynicki) ------------------------------------------------------------ revno: 143 [merge] committer: Zygmunt Krynicki branch nick: trunk timestamp: Thu 2012-04-19 16:35:00 +0200 message: Merge rewritten perf test modified: doc/changes.rst lava_test/test_definitions/perf.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 'doc/changes.rst' --- doc/changes.rst 2012-03-27 12:42:34 +0000 +++ doc/changes.rst 2012-04-19 14:35:00 +0000 @@ -6,6 +6,8 @@ Version 0.7 (UNRELEASED) ======================== +* Add perf test + .. _version_0_6: Version 0.6 === modified file 'lava_test/test_definitions/perf.py' --- lava_test/test_definitions/perf.py 2012-03-17 11:02:42 +0000 +++ lava_test/test_definitions/perf.py 2012-04-19 14:35:00 +0000 @@ -1,4 +1,4 @@ -# Copyright (c) 2010, 2011 Linaro +# Copyright (c) 2010-2012 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 @@ -14,10 +14,10 @@ # along with this program. If not, see . """ -A simple test for the perf performance counters subsystem in Linux. This -currently just runs 'perf test' sanity tests built into the perf tool +A simple test for the perf performance counters subsystem in Linux. This +currently executes various perf commands built into the perf tool -**URL:** None +**URL:** https://code.launchpad.net/~linaro-maintainers/lava-test/lava-test-perf **Default options:** None """ @@ -28,20 +28,18 @@ 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+)" - -installer = TestInstaller(deps=DEPS) +DEPS = ["linux-tools", "stress"] +INSTALLSTEPS = ["bzr branch lp:~linaro-maintainers/lava-test/lava-test-perf"] +RUNSTEPS = ["cp lava-test-perf/run-perf-test.sh .; sudo bash ./run-perf-test.sh"] +PATTERN = "^(?P[\w\s-]+)\s+:\s+(?P\w+)" +FIXUPS = { + "PASS": "pass", + "FAIL": "fail" +} + +installer = TestInstaller(INSTALLSTEPS, deps=DEPS) runner = TestRunner(RUNSTEPS, default_options=DEFAULT_OPTIONS) -parser = TestParser(PATTERN, appendall={"result": "pass"}) +parser = TestParser(PATTERN, fixupdict=FIXUPS) testobj = Test( test_id="perf",