From patchwork Thu Jun 23 14:23:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alexandros.frantzis@linaro.org X-Patchwork-Id: 2219 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 25C972404C for ; Thu, 23 Jun 2011 14:23:23 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id EA6F7A189B4 for ; Thu, 23 Jun 2011 14:23:22 +0000 (UTC) Received: by mail-qw0-f52.google.com with SMTP id 8so1392733qwb.11 for ; Thu, 23 Jun 2011 07:23:22 -0700 (PDT) Received: by 10.224.203.73 with SMTP id fh9mr1637790qab.340.1308839002752; Thu, 23 Jun 2011 07:23:22 -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.229.230.139 with SMTP id jm11cs19232qcb; Thu, 23 Jun 2011 07:23:22 -0700 (PDT) Received: by 10.227.10.129 with SMTP id p1mr2042876wbp.76.1308838996240; Thu, 23 Jun 2011 07:23:16 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id d13si3931807wbh.58.2011.06.23.07.23.15; Thu, 23 Jun 2011 07:23:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QZkoN-0003mW-Ad for ; Thu, 23 Jun 2011 14:23:15 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 494702E8060 for ; Thu, 23 Jun 2011 14:23:15 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: glcompbench X-Launchpad-Branch: ~glcompbench-dev/glcompbench/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 31 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~glcompbench-dev/glcompbench/trunk] Rev 31: Add 'duration' and 'iterations' test options. Message-Id: <20110623142315.3922.66814.launchpad@loganberry.canonical.com> Date: Thu, 23 Jun 2011 14:23: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="13265"; Instance="initZopeless config overlay" X-Launchpad-Hash: ff4517a54b98be43767f360472a31c20afd847aa ------------------------------------------------------------ revno: 31 committer: Alexandros Frantzis branch nick: trunk timestamp: Thu 2011-06-23 16:10:17 +0300 message: Add 'duration' and 'iterations' test options. modified: src/composite-test.cc src/composite-test.h --- lp:glcompbench https://code.launchpad.net/~glcompbench-dev/glcompbench/trunk You are subscribed to branch lp:glcompbench. To unsubscribe from this branch go to https://code.launchpad.net/~glcompbench-dev/glcompbench/trunk/+edit-subscription === modified file 'src/composite-test.cc' --- src/composite-test.cc 2011-06-23 11:22:08 +0000 +++ src/composite-test.cc 2011-06-23 13:10:17 +0000 @@ -28,6 +28,13 @@ using std::string; using std::map; +CompositeTest::CompositeTest(const string& test_name) : + name_(test_name) +{ + options_["duration"] = CompositeTest::Option("duration", "3.0", ""); + options_["iterations"] = CompositeTest::Option("iterations", "5", ""); +} + /** * Gets the number of window that are visible. * === modified file 'src/composite-test.h' --- src/composite-test.h 2011-06-23 11:22:08 +0000 +++ src/composite-test.h 2011-06-23 13:10:17 +0000 @@ -37,8 +37,8 @@ class CompositeTest { public: - CompositeTest(const std::string& test_name) : - name_(test_name) {} + CompositeTest(const std::string& test_name); + virtual void init() {} virtual void prepare_for_run() {} virtual void draw(std::list &window_list)