aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-10 16:37:29 +0200
committerSven Gothel <[email protected]>2012-10-10 16:37:29 +0200
commit5cabafe5482ae2f7b4bb447a225eb2a6477fee4d (patch)
treec2751514361e20012329858424f977dd8531fea1 /src
parent34d7e1f13a107e63bd234e4b31782cfb46feb4c0 (diff)
TestSWTAccessor03AWTGLn: Add '-time <duration>' commandline option
Diffstat (limited to 'src')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTAccessor03AWTGLn.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTAccessor03AWTGLn.java b/src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTAccessor03AWTGLn.java
index 080dff396..91902a896 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTAccessor03AWTGLn.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTAccessor03AWTGLn.java
@@ -55,6 +55,7 @@ import org.junit.Test;
import com.jogamp.common.os.Platform;
import com.jogamp.nativewindow.swt.SWTAccessor;
import com.jogamp.opengl.test.junit.jogl.demos.es1.OneTriangle;
+import com.jogamp.opengl.test.junit.util.MiscUtils;
import com.jogamp.opengl.test.junit.util.UITestCase;
/**
@@ -64,7 +65,7 @@ import com.jogamp.opengl.test.junit.util.UITestCase;
*/
public class TestSWTAccessor03AWTGLn extends UITestCase {
- static final int duration = 250;
+ static int duration = 250;
Display display = null;
Shell shell = null;
@@ -203,6 +204,11 @@ public class TestSWTAccessor03AWTGLn extends UITestCase {
}
public static void main(String args[]) {
+ for(int i=0; i<args.length; i++) {
+ if(args[i].equals("-time")) {
+ duration = MiscUtils.atoi(args[++i], duration);
+ }
+ }
org.junit.runner.JUnitCore.main( TestSWTAccessor03AWTGLn.class.getName() );
}
}