diff options
author | Sven Gothel <[email protected]> | 2012-02-29 02:31:25 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-02-29 02:31:25 +0100 |
commit | c739c6e02eff2e2b5f51ea9d5a385960b3bd07ca (patch) | |
tree | 17ce07b6849fa4d4691a9cc3d43a8cef665c23c7 /make/scripts | |
parent | 03697923f27df06343f8885f1c1b70bf4b3af9c2 (diff) |
CrossTest: Add AWT Unit-Test. Unit-Tests: Refine GLProfile request where we favor a more detailed request than getDefault().
Diffstat (limited to 'make/scripts')
-rwxr-xr-x | make/scripts/targetcommand-awt.sh | 59 | ||||
-rwxr-xr-x | make/scripts/targetcommand-newt.sh (renamed from make/scripts/targetcommand-1.sh) | 0 |
2 files changed, 59 insertions, 0 deletions
diff --git a/make/scripts/targetcommand-awt.sh b/make/scripts/targetcommand-awt.sh new file mode 100755 index 000000000..e50e6c8a2 --- /dev/null +++ b/make/scripts/targetcommand-awt.sh @@ -0,0 +1,59 @@ +#! /bin/sh + +THISDIR=`pwd` + +#XTRA_FLAGS="-Dnewt.test.Screen.disableScreenMode -Djogl.debug.EGL -Djogl.debug.GLDrawable" +XTRA_FLAGS="-Dnewt.test.Screen.disableScreenMode" +#XTRA_FLAGS="-Dnewt.debug.Screen" +#XTRA_FLAGS="-Dnativewindow.debug.GraphicsConfiguration -Dnativewindow.debug.NativeWindow" +#XTRA_FLAGS="-Dnewt.debug.Window -Djogl.debug.EGL -Djogl.debug.GLContext -Djogl.debug.GLDrawable" +#XTRA_FLAGS="-Djogl.debug.GLContext -Djogl.debug.GLProfile -Djogl.debug.GLDrawable" +#XTRA_FLAGS="-Djogl.debug.EGL" +#XTRA_FLAGS="-Djogl.debug.GraphicsConfiguration" +#XTRA_FLAGS="-Djogl.debug.GLContext -Djogl.debug.GLDrawable" +#XTRA_FLAGS="-Djogl.debug.TraceGL" +#XTRA_FLAGS="-Djogl.debug.DebugGL -Djogl.debug.TraceGL" + +TSTCLASS=com.jogamp.opengl.test.junit.jogl.demos.es2.awt.TestGearsES2AWT +#TSTCLASS=com.jogamp.opengl.test.junit.jogl.demos.gl2.awt.TestGearsAWT + + mkdir -p $THISDIR/projects-cross + + rsync -av --delete --delete-after --delete-excluded \ + --exclude 'build-x86*/' --exclude 'build-linux-x*/' --exclude 'build-android*/' --exclude 'build-win*/' --exclude 'build-mac*/' \ + --exclude 'classes/' --exclude 'src/' --exclude '.git/' --exclude '*-java-src.zip' \ + jogamp@jogamp02::PROJECTS/JOGL/gluegen jogamp@jogamp02::PROJECTS/JOGL/jogl $THISDIR/projects-cross + + cd $THISDIR/projects-cross/jogl/make + +function junit_run() { + java \ + -cp ../../gluegen/make/lib/junit.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-junit.jar:../../gluegen/build-linux-armv7/gluegen-rt.jar:../build-linux-armv7/jar/jogl.all.jar:../build-linux-armv7/jar/jogl.test.jar\ + $XTRA_FLAGS \ + com.jogamp.newt.util.MainThread\ + org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner \ + $TSTCLASS \ + 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,$THISDIR/targetcommand.xml +} + +function main_run() { + java \ + -cp ../../gluegen/make/lib/junit.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-junit.jar:../../gluegen/build-linux-armv7/gluegen-rt.jar:../build-linux-armv7/jar/jogl.all.jar:../build-linux-armv7/jar/jogl.test.jar\ + $XTRA_FLAGS \ + com.jogamp.newt.util.MainThread\ + $TSTCLASS \ + $* +} + +# junit_run 2>&1 | tee $THISDIR/targetcommand.log + +main_run $* 2>&1 | tee $THISDIR/targetcommand.log + diff --git a/make/scripts/targetcommand-1.sh b/make/scripts/targetcommand-newt.sh index 5933b6a79..5933b6a79 100755 --- a/make/scripts/targetcommand-1.sh +++ b/make/scripts/targetcommand-newt.sh |