aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-08-24 02:58:53 +0200
committerSven Gothel <[email protected]>2010-08-24 02:58:53 +0200
commit225f3587670a6c0aeee5fcdec982535617ae10bf (patch)
tree29c8699e6783f4d3a2a6ec027e1e8e7d6c561226 /src
parentfa7e79513229ee7fc205ee90d71c7c2ff9a98823 (diff)
Rename junit test TransformFeedbackVeryingsBug407 and add main method
Diffstat (limited to 'src')
-rw-r--r--src/junit/com/jogamp/test/junit/jogl/glsl/TestTransformFeedbackVeryingsBug407NEWT.java (renamed from src/junit/com/jogamp/test/junit/jogl/glsl/TransformFeedbackVeryingsBug407Test.java)19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/junit/com/jogamp/test/junit/jogl/glsl/TransformFeedbackVeryingsBug407Test.java b/src/junit/com/jogamp/test/junit/jogl/glsl/TestTransformFeedbackVeryingsBug407NEWT.java
index 1bb513bf3..9f3127b38 100644
--- a/src/junit/com/jogamp/test/junit/jogl/glsl/TransformFeedbackVeryingsBug407Test.java
+++ b/src/junit/com/jogamp/test/junit/jogl/glsl/TestTransformFeedbackVeryingsBug407NEWT.java
@@ -21,12 +21,13 @@ import com.jogamp.newt.Screen;
import com.jogamp.newt.Window;
import com.jogamp.opengl.util.glsl.ShaderUtil;
+import java.io.IOException;
/**
* Bug 'Function glTransformFeedbackVaryings incorrectly passes argument'
* http://jogamp.org/bugzilla/show_bug.cgi?id=407
*/
-public class TransformFeedbackVeryingsBug407Test {
+public class TestTransformFeedbackVeryingsBug407NEWT {
static {
//NativeUtil.preloadNativeLibs(); // internal method
@@ -129,4 +130,20 @@ public class TransformFeedbackVeryingsBug407Test {
Assert.assertEquals(GL3.GL_NO_ERROR, gl.glGetError());
Assert.assertTrue(baos.toString().contains("(named PPPosition)"));
}
+
+ public static void main(String args[]) throws IOException {
+ String tstname = TestTransformFeedbackVeryingsBug407NEWT.class.getName();
+ org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(new String[] {
+ tstname,
+ "filtertrace=true",
+ "haltOnError=false",
+ "haltOnFailure=false",
+ "showoutput=true",
+ "outputtoformatters=true",
+ "logfailedtests=true",
+ "logtestlistenerevents=true",
+ "formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter",
+ "formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,TEST-"+tstname+".xml" } );
+ }
+
}