OSDN Git Service

Scaling down the stress test defaults iteration counts to some base level.
authorJason Noguchi <jnoguchi@google.com>
Wed, 20 Feb 2013 22:42:27 +0000 (14:42 -0800)
committerJason Noguchi <jnoguchi@google.com>
Wed, 20 Feb 2013 23:56:58 +0000 (15:56 -0800)
For true stress testing, need to pass arguments to scale these back up to 100.
Also, temporarily removing SwitchPreview test which needs updating and currently
would block other tests in stress suite.

Change-Id: I9dd92e0090e2554aca5cb4b23fed2d33554c9c5e

tests/src/com/android/gallery3d/StressTests.java
tests/src/com/android/gallery3d/stress/CameraStressTestRunner.java

index 32eefdc..b991e9e 100755 (executable)
@@ -41,7 +41,7 @@ public class StressTests extends TestSuite {
         result.addTestSuite(CameraLatency.class);
         result.addTestSuite(CameraStartUp.class);
         result.addTestSuite(ImageCapture.class);
-        result.addTestSuite(SwitchPreview.class);
+//      result.addTestSuite(SwitchPreview.class);
         return result;
     }
 }
index 57ae691..d3fb10d 100755 (executable)
@@ -25,8 +25,8 @@ public class CameraStressTestRunner extends InstrumentationTestRunner {
 
     // Default recorder settings
     public static int mVideoDuration = 20000; // set default to 20 seconds
-    public static int mVideoIterations = 100; // set default to 100 videos
-    public static int mImageIterations = 100; // set default to 100 images
+    public static int mVideoIterations = 1; // set default to 1 video
+    public static int mImageIterations = 10; // set default to 10 images
 
     @Override
     public TestSuite getAllTests() {