From patchwork Wed Oct 24 22:07:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 12486 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 55B4323EC8 for ; Wed, 24 Oct 2012 22:14:40 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id C7304A18D44 for ; Wed, 24 Oct 2012 22:14:39 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so773673iag.11 for ; Wed, 24 Oct 2012 15:14:39 -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=gDA4YxlHTO/Pk+XBy8HBcVKZ/uwjKhX48dOY9zxk/T8=; b=cfEwWpO2YrwqiDpN1RVf06FpQdDe6ALAiJPQR2PFfZSVSO6RFqctfyZR0hwzj8uo6m Z9JGUYE3LdbUFIXooRyVdmwUOoRWKUs5g5nj/H8w6jXXXiBxLZavxaQCWxCuo5WaEgGy oxELioAOEly7Qm8k1isXREXjAlcseq3nZ1VUsPujdhrn6kzszi6EKX2iD10ZGm7ySd+m S/p4DqjHoq6lS0pfkhPA1QPwzrlGST76Yiqfnj+b5hgVgxYPKQFwcdTZliPx1KKpjWDt C4r10+E49Azpj08pfeXsYqOIahuDauFaEME5cRHfjFcVOPva3lmtorj74warZYkTg9d5 Gauw== Received: by 10.50.88.233 with SMTP id bj9mr4003972igb.70.1351116879103; Wed, 24 Oct 2012 15:14:39 -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.50.67.148 with SMTP id n20csp690920igt; Wed, 24 Oct 2012 15:14:38 -0700 (PDT) Received: by 10.180.79.103 with SMTP id i7mr8936407wix.13.1351116877295; Wed, 24 Oct 2012 15:14:37 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id j41si17287982weo.115.2012.10.24.15.14.36 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Oct 2012 15:14:37 -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 1TR9Dg-0001nW-H5 for ; Wed, 24 Oct 2012 22:14:36 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 6D40BE076D for ; Wed, 24 Oct 2012 22:07:15 +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: 185 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 185: Add browser_benchmarks test wrapper Message-Id: <20121024220715.21254.6135.launchpad@ackee.canonical.com> Date: Wed, 24 Oct 2012 22:07:15 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16179"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 2e6c1d06f405f50a8fae9b5f4dc61b6b2722a351 X-Gm-Message-State: ALoCoQnoQMPuXKPu4xJtsRGwke9E0LFBcgrSCLB3s3AU44tQP2k7xMMf69ozDAF0hCq+wthDv0bP Merge authors: John Rigby (jcrigby) Related merge proposals: https://code.launchpad.net/~jcrigby/lava-test/lava-test/+merge/131280 proposed by: John Rigby (jcrigby) review: Approve - Andy Doan (doanac) ------------------------------------------------------------ revno: 185 [merge] committer: Andy Doan branch nick: lava-test timestamp: Wed 2012-10-24 17:05:55 -0500 message: Add browser_benchmarks test wrapper added: lava_test/test_definitions/browser_benchmarks.py modified: doc/changes.rst doc/tests.rst 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 'doc/changes.rst' --- doc/changes.rst 2012-10-22 20:13:33 +0000 +++ doc/changes.rst 2012-10-24 22:05:55 +0000 @@ -7,6 +7,8 @@ ============ * Unreleased +* Added browser_benchmarks test + .. _version_0_12: Version 0.12 === modified file 'doc/tests.rst' --- doc/tests.rst 2012-09-20 00:33:35 +0000 +++ doc/tests.rst 2012-10-24 20:22:57 +0000 @@ -32,6 +32,7 @@ * `x11perf`_ * `xrestop`_ * `wifi-enablement`_ + * `browser-benchmarks`_ bluetooth-enablement ++++++++++++++++++++ @@ -137,3 +138,7 @@ +++++++++++++++ .. automodule:: lava_test.test_definitions.wifi_enablement +browser-benchmarks ++++++++++++++++ +.. automodule:: lava_test.test_definitions.browser_benchmarks + === modified file 'lava_test/core/providers.py' --- lava_test/core/providers.py 2012-09-20 00:33:35 +0000 +++ lava_test/core/providers.py 2012-10-24 20:22:57 +0000 @@ -54,6 +54,7 @@ 'x11perf', 'xrestop', 'wifi_enablement', + 'browser_benchmarks', ] def __init__(self, config): === added file 'lava_test/test_definitions/browser_benchmarks.py' --- lava_test/test_definitions/browser_benchmarks.py 1970-01-01 00:00:00 +0000 +++ lava_test/test_definitions/browser_benchmarks.py 2012-10-24 20:22:57 +0000 @@ -0,0 +1,51 @@ +# Copyright (c) 2012 Linaro +# +# Author: John Rigby +# +# 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 . + +""" +Use Selenium WebDriver to automatically run browser benchmarks +and scrape the results. + +**URL:** https://code.launchpad.net/~linaro-foundations/linaro-ubuntu/browser-benchmarks + +**Default Options:** None +""" + +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 = "" +BZR_REPOS = ["lp:~linaro-foundations/linaro-ubuntu/lava-test-browser-benchmarks"] +DEPS = ["bzr", "python-pip", "chromium-browser", "firefox"] +INSTALLSTEPS = ['pip install selenium'] +RUNSTEPS = ["cd lava-test-browser-benchmarks; bash -x ./run-test.sh; pwd"] +PATTERN = "(?P[a-zA-Z0-9_-]+):\s(?P\w+)" +FIXUPS = { + "PASS": "pass", + "FAIL": "fail" +} + +installer = TestInstaller(INSTALLSTEPS, deps=DEPS, bzr_repos=BZR_REPOS) +runner = TestRunner(RUNSTEPS, default_options=DEFAULT_OPTIONS) +parser = TestParser(PATTERN, fixupdict=FIXUPS) + +testobj = Test( + test_id="browser-benchmarks", + installer=installer, + runner=runner, + parser=parser)