aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-09 20:07:21 +0100
committerSven Gothel <[email protected]>2010-11-09 20:07:21 +0100
commit597d10f5a5f743a51cfe56f3c381fd80e941a394 (patch)
treef28d0fcfaab03fc0534c0308a577ca0c0cc93d4f /etc
parent7dce462b56f1e77e3cc2b68cb72c27a549c53f91 (diff)
Adding simple static main test entry to provide standalone autobuild verification
Diffstat (limited to 'etc')
-rwxr-xr-xetc/test.bat10
-rwxr-xr-xetc/test.sh44
2 files changed, 54 insertions, 0 deletions
diff --git a/etc/test.bat b/etc/test.bat
new file mode 100755
index 000000000..808234399
--- /dev/null
+++ b/etc/test.bat
@@ -0,0 +1,10 @@
+
+set BLD_DIR=jar
+set LIB_DIR=lib
+
+set CP_ALL=.;%BLD_DIR%\gluegen-rt.jar;%BLD_DIR%\nativewindow.all.jar;%BLD_DIR%\jogl.all.jar;%BLD_DIR%\newt.all.jar
+echo CP_ALL %CP_ALL%
+
+set X_ARGS="-Dsun.java2d.noddraw=true" "-Dsun.awt.noerasebackground=true"
+
+%J2RE_HOME%\bin\java -classpath %CP_ALL% "-Djava.library.path=%LIB_DIR%" %X_ARGS% %1 %2 %3 %4 %5 %6 %7 %8 %9 > java-win64.log 2>&1
diff --git a/etc/test.sh b/etc/test.sh
new file mode 100755
index 000000000..d86687316
--- /dev/null
+++ b/etc/test.sh
@@ -0,0 +1,44 @@
+#! /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.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 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
+