From patchwork Mon Mar 12 07:50:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 7222 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 BF5E323E12 for ; Mon, 12 Mar 2012 07:50:17 +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 60797A183DF for ; Mon, 12 Mar 2012 07:50:17 +0000 (UTC) Received: by iage36 with SMTP id e36so8396594iag.11 for ; Mon, 12 Mar 2012 00:50:16 -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=X4z2C/AAXJxKtipgI6UbTTMSUlin3j3BxV4Zn2rL6eU=; b=MiSLMF2qou7BCwBvjWwi+s8HlfbVmXPdspXucDb2L7D+t/wsNPm64V3/aTMHW8lBB/ Yf9Xte5YCMLZ7IFaOVb8KZ5gvJ/RSZnpoX5kk+cxFZdJoyD/P5BJiLgc9RpjTHGSj4nY OF5J4ADFSbr60RleTnsPJZ3gk5431AFQVZVV/qdJoHkDAjhraz0cOmrVZF0qK441GsEl 6FXIss0nmgZlo5kd+yN4lA/xtDm3KVdYqNkIHfs8ZxuLlBIfoS5YWxjNfbrZLx5s29qL GsiKu8aBVtNcY10dlVOCdIxN/oubNcwVfQZMx89aHohSuBstmuu5HVQIHCkUgybJPxJV 3b3Q== Received: by 10.50.183.137 with SMTP id em9mr17108964igc.58.1331538616801; Mon, 12 Mar 2012 00:50:16 -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.53.18 with SMTP id k18csp34711ibg; Mon, 12 Mar 2012 00:50:16 -0700 (PDT) Received: by 10.180.88.199 with SMTP id bi7mr24865894wib.12.1331538615722; Mon, 12 Mar 2012 00:50:15 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id x48si16890985weq.73.2012.03.12.00.50.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Mar 2012 00:50:15 -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 1S701H-0007OL-5B for ; Mon, 12 Mar 2012 07:50:15 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 1AFFCE0555 for ; Mon, 12 Mar 2012 07:50: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: 131 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 131: Add render-bench test definition. Message-Id: <20120312075015.10967.74906.launchpad@ackee.canonical.com> Date: Mon, 12 Mar 2012 07:50: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="14933"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 2066c8010185fee4adfbcf8398d10baa5598b390 X-Gm-Message-State: ALoCoQkyBAvZLmxx9dPP0E5cUOcJXm3TWVEAQMYr9n8nT/uX/WzAgUTCJkXApEAhTNPTQ6ZEitc3 Merge authors: Alexandros Frantzis (afrantzis) Related merge proposals: https://code.launchpad.net/~afrantzis/lava-test/render-bench/+merge/37247 proposed by: Alexandros Frantzis (afrantzis) review: Approve - Zygmunt Krynicki (zkrynicki) ------------------------------------------------------------ revno: 131 [merge] committer: Zygmunt Krynicki branch nick: trunk timestamp: Mon 2012-03-12 08:48:46 +0100 message: Add render-bench test definition. added: lava_test/test_definitions/render-bench.py modified: doc/changes.rst --- 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-12 07:46:13 +0000 +++ doc/changes.rst 2012-03-12 07:48:46 +0000 @@ -16,6 +16,7 @@ * Enabled URL cache used by the ``lava-test register`` command. * Add command line switch ``--verbose`` that turns on lots of messages * Add new GLMark2 ES2 test (glmark2-es2) + * Add new render-bench test .. _version_0_4: === added file 'lava_test/test_definitions/render-bench.py' --- lava_test/test_definitions/render-bench.py 1970-01-01 00:00:00 +0000 +++ lava_test/test_definitions/render-bench.py 2010-10-01 13:09:45 +0000 @@ -0,0 +1,33 @@ +import re +import abrek.testdef + +class RenderBenchParser(abrek.testdef.AbrekTestParser): + def parse(self): + PAT1 = "^Test: (?P.*)" + PAT2 = "^Time: (?P\d+\.\d+)" + filename = "testoutput.log" + pat1 = re.compile(PAT1) + pat2 = re.compile(PAT2) + cur_test = None + with open(filename, 'r') as fd: + for line in fd: + match = pat1.search(line) + if match: + cur_test = match.groupdict()['test_case_id'] + else: + match = pat2.search(line) + if match: + d = match.groupdict() + d['test_case_id'] = cur_test + self.results['test_results'].append(d) + + self.appendtoall({'units':'seconds', 'result':'pass'}) + +RUNSTEPS = ["render_bench"] + +inst = abrek.testdef.AbrekTestInstaller(deps=["render-bench"]) +run = abrek.testdef.AbrekTestRunner(RUNSTEPS) +parse = RenderBenchParser() + +testobj = abrek.testdef.AbrekTest(testname="render-bench", installer=inst, + runner=run, parser=parse)