From patchwork Mon Mar 12 07:48:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 7221 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 92F0A23E12 for ; Mon, 12 Mar 2012 07:48:13 +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 38979A1835A for ; Mon, 12 Mar 2012 07:48:13 +0000 (UTC) Received: by iage36 with SMTP id e36so8393965iag.11 for ; Mon, 12 Mar 2012 00:48:12 -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=/igAa6BnOb/RAKDWYBIaFlVduxIBMEcNScBwcoR0zFo=; b=CjD/aHLu5XoICBBFC7covI3hweTegTcAeInwHSAZvueY7Dcvyp1U8OVoRCxXl2Wt0H Y1/KTbMb4B2/LaFn9m/7ABaFcUBb3QJCf/E0KoNRhS98R6aOUYZ/FmWlybZyP7pPXw3E GMvfGcY0GwZpQF9M50+K/pjQuZi3cVIcJTNDRsU8hYho2rXgvGj2DBoRhJRXU8alEMrJ al/CxPGiwaSfozs+ZbgV+lUkb5H9BwMhD3mCYU9EV2FisAvyQs5AxyNb+XXYl9SeIl8Z 4JJjMcesBfG/WlOAhUECGWXv3Xk7yvcOzgXg7T8L3pXwzPjhg3miYtSygdx1RU74Tlsk 0P2Q== Received: by 10.50.222.233 with SMTP id qp9mr6394181igc.58.1331538492554; Mon, 12 Mar 2012 00:48:12 -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 k18csp34687ibg; Mon, 12 Mar 2012 00:48:11 -0700 (PDT) Received: by 10.216.131.34 with SMTP id l34mr6442164wei.54.1331538491194; Mon, 12 Mar 2012 00:48:11 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id fe1si13757802wib.6.2012.03.12.00.48.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Mar 2012 00:48:11 -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 1S6zzF-0007M5-RZ for ; Mon, 12 Mar 2012 07:48:09 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id C3F2EE1446 for ; Mon, 12 Mar 2012 07:48:09 +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: 130 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 130: Add test definition for the glmark2-es2 benchmark. Message-Id: <20120312074809.10462.83973.launchpad@ackee.canonical.com> Date: Mon, 12 Mar 2012 07:48:09 -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: 15ebc87b871d81f11a41d59f6f7ad6f73aa45d0f X-Gm-Message-State: ALoCoQlRB/pcwsfq/1/efnAQ6HJ2efs59svPCsxR+N09w5wzFsQeEtDwPewF+lTmLsjqHgJOAC5C Merge authors: Alexandros Frantzis (afrantzis) Related merge proposals: https://code.launchpad.net/~afrantzis/lava-test/glmark2-es2/+merge/37244 proposed by: Alexandros Frantzis (afrantzis) review: Approve - Zygmunt Krynicki (zkrynicki) ------------------------------------------------------------ revno: 130 [merge] committer: Zygmunt Krynicki branch nick: trunk timestamp: Mon 2012-03-12 08:46:13 +0100 message: Add test definition for the glmark2-es2 benchmark. added: lava_test/test_definitions/glmark2-es2.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-10 13:21:53 +0000 +++ doc/changes.rst 2012-03-12 07:46:13 +0000 @@ -15,6 +15,7 @@ lsb_release modules are not visible to python. * 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) .. _version_0_4: === added file 'lava_test/test_definitions/glmark2-es2.py' --- lava_test/test_definitions/glmark2-es2.py 1970-01-01 00:00:00 +0000 +++ lava_test/test_definitions/glmark2-es2.py 2010-10-01 12:44:34 +0000 @@ -0,0 +1,40 @@ +import re +import abrek.testdef + +RUNSTEPS = ["glmark2-es2"] + +class Glmark2Parser(abrek.testdef.AbrekTestParser): + def parse(self): + PAT1 = "^\W+(?P.*?)\W+FPS:\W+(?P\d+)" + filename = "testoutput.log" + pat1 = re.compile(PAT1) + in_results = False + cur_test = "" + with open(filename, 'r') as fd: + for line in fd.readlines(): + if line.find("Precompilation") != -1: + in_results = True + if in_results == True: + match = pat1.search(line) + if match: + d = match.groupdict() + d['test_case_id'] = "%s.%s" % (cur_test, d['subtest']) + d.pop('subtest') + self.results['test_results'].append(d) + else: + if line.startswith("==="): + in_results = False + else: + cur_test = line.strip() + + if self.fixupdict: + self.fixresults(self.fixupdict) + if self.appendall: + self.appendtoall(self.appendall) + +parse = Glmark2Parser(appendall={'units':'fps', 'result':'pass'}) +inst = abrek.testdef.AbrekTestInstaller(deps=["glmark2-es2"]) +run = abrek.testdef.AbrekTestRunner(RUNSTEPS) + +testobj = abrek.testdef.AbrekTest(testname="glmark2-es2", installer=inst, + runner=run, parser=parse)