diff options
author | Sven Gothel <[email protected]> | 2011-10-24 11:20:17 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-24 11:20:17 +0200 |
commit | 3b6ef84e25a3fcaa2de381be3758c144ae239b6a (patch) | |
tree | 1d80fa951459200202acadcd8b9d5d650b2b89de /etc/test_dbg.sh | |
parent | 40a0d1c18d40b99086e53addd95c0e84d0175a0b (diff) |
Add debug version of etc/test.*
Diffstat (limited to 'etc/test_dbg.sh')
-rwxr-xr-x | etc/test_dbg.sh | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/etc/test_dbg.sh b/etc/test_dbg.sh new file mode 100755 index 000000000..49c0a0554 --- /dev/null +++ b/etc/test_dbg.sh @@ -0,0 +1,50 @@ +#! /bin/bash + +THISDIR=`pwd` +logfile=`basename $0 .sh`.log + +rm -f $logfile + +which java 2>&1 | tee -a $logfile +java -version 2>&1 | tee -a $logfile +echo LIBXCB_ALLOW_SLOPPY_LOCK: $LIBXCB_ALLOW_SLOPPY_LOCK 2>&1 | tee -a $logfile +echo LIBGL_DRIVERS_PATH: $LIBGL_DRIVERS_PATH 2>&1 | tee -a $logfile +echo LIBGL_DEBUG: $LIBGL_DEBUG 2>&1 | tee -a $logfile +echo java $X_ARGS $D_ARGS $* 2>&1 | tee -a $logfile + +CLASSPATH=jar/gluegen-rt.jar:jar/nativewindow.all.jar:jar/jogl.all.jar:jar/newt.all.jar +export CLASSPATH + +export LD_LIBRARY_PATH=./lib:$LD_LIBRARY_PATH +export DYLD_LIBRARY_PATH=./lib:$DYLD_LIBRARY_PATH +echo LD_LIBRARY PATH: $LD_LIBRARY_PATH +echo DYLD_LIBRARY PATH: $DYLD_LIBRARY_PATH +echo + +echo CLASSPATH: $CLASSPATH +echo + +D_ARGS="-Djogamp.debug=all -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all" + +# D_ARGS="-Djogamp.debug.TraceLock" +# D_ARGS="-Dnewt.debug.EDT -Dnativewindow.debug.ToolkitLock.TraceLock -Dnativewindow.debug.NativeWindow" +# D_ARGS="-Dnewt.debug.Window -Dnewt.debug.Display -Dnewt.debug.EDT" +# D_ARGS="-Dnewt.debug.EDT -Dnativewindow.debug.ToolkitLock.TraceLock -Dnativewindow.debug.X11Util.TraceDisplayLifecycle=true" +#D_ARGS="-Djogamp.common.utils.locks.Lock.timeout=600000 -Djogamp.debug.Lock -Djogamp.debug.Lock.TraceLock" +# D_ARGS="-Dnewt.debug.Window -Dnewt.debug.EDT -Dnewt.debug.Display " +#D_ARGS="-Dnewt.debug.EDT -Djogamp.common.utils.locks.Lock.timeout=600000 -Djogl.debug.Animator -Dnewt.debug.Display -Dnewt.debug.Screen" +#D_ARGS="-Dnewt.debug.EDT -Dnewt.debug.Display -Dnativewindow.debug.X11Util -Djogl.debug.GLDrawable -Djogl.debug.GLCanvas" +#D_ARGS="-Dnewt.debug.EDT -Djogl.debug.GLContext" +#D_ARGS="-Dnewt.debug.Screen -Dnewt.debug.EDT -Djogamp.debug.Lock" +#D_ARGS="-Dnewt.debug.EDT" +#D_ARGS="-Dnewt.debug.EDT -Djogl.debug=all -Dnativewindow.debug=all" +# D_ARGS="-Djogl.debug=all" +X_ARGS="-Dsun.java2d.noddraw=true -Dsun.java2d.opengl=false" + +#java $X_ARGS $ARGS_AWT $D_ARGS com.jogamp.common.GlueGenVersion 2>&1 | tee -a $logfile +#java $X_ARGS $ARGS_AWT $D_ARGS com.jogamp.nativewindow.NativeWindowVersion 2>&1 | tee -a $logfile +#java $X_ARGS $ARGS_AWT $D_ARGS com.jogamp.opengl.JoglVersion 2>&1 | tee -a $logfile +#java $X_ARGS $ARGS_AWT $D_ARGS com.jogamp.newt.NewtVersion 2>&1 | tee -a $logfile +#java $X_ARGS $ARGS_AWT $D_ARGS javax.media.opengl.awt.GLCanvas 2>&1 | tee -a $logfile +java $X_ARGS $ARGS_NEWT $D_ARGS com.jogamp.newt.opengl.GLWindow 2>&1 | tee -a $logfile + |