diff mbox

[Branch,~glcompbench-dev/glcompbench/trunk] Rev 31: Add 'duration' and 'iterations' test options.

Message ID 20110623142315.3922.66814.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org June 23, 2011, 2:23 p.m. UTC
------------------------------------------------------------
revno: 31
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
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
diff mbox

Patch

=== 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<CompositeWindow*> &window_list)