summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-07 07:25:06 +0100
committerSven Gothel <[email protected]>2010-11-07 07:25:06 +0100
commitc0f7019bf8f68293aec944ff0faee3977674b990 (patch)
treea502046f6ac35db46bdbc0e30c975e36a698195a /make
parent15006b22048ce6afda129ea2f802af8d89170df5 (diff)
Enable ant based single test script
Diffstat (limited to 'make')
-rw-r--r--make/scripts/runtest.sh21
1 files changed, 19 insertions, 2 deletions
diff --git a/make/scripts/runtest.sh b/make/scripts/runtest.sh
index 61e660b..101bb9e 100644
--- a/make/scripts/runtest.sh
+++ b/make/scripts/runtest.sh
@@ -8,6 +8,22 @@ if [ -z "$builddir" ] ; then
exit 1
fi
+if [ -z "$ANT_PATH" ] ; then
+ TMP_ANT_PATH=$(dirname `which ant`)/..
+ if [ -e $TMP_ANT_PATH/lib/ant.jar ] ; then
+ ANT_PATH=$TMP_ANT_PATH
+ export ANT_PATH
+ echo autosetting ANT_PATH to $ANT_PATH
+ fi
+fi
+if [ -z "$ANT_PATH" ] ; then
+ echo ANT_PATH does not exist, set it
+ print_usage
+ exit
+fi
+
+ANT_JARS=$ANT_PATH/lib/ant.jar:$ANT_PATH/lib/ant-junit.jar:$ANT_PATH/lib/ant-launcher.jar
+
LOG=runtest.log
rm -f $LOG
@@ -18,12 +34,13 @@ function onetest() {
clazz=$1
shift
echo $clazz
- java $D_ARGS -Djava.library.path=$builddir/obj:$builddir/test/build/natives -classpath lib/junit.jar:$builddir/classes:$builddir/test/build/classes $clazz
+ java $D_ARGS -Djava.library.path=$builddir/obj:$builddir/test/build/natives -classpath lib/junit.jar:$ANT_JARS:$builddir/classes:$builddir/test/build/classes $clazz
echo
}
#onetest com.jogamp.common.util.TestIteratorIndexCORE 2>&1 | tee -a $LOG
-onetest com.jogamp.common.util.locks.TestRecursiveLock01 2>&1 | tee -a $LOG
+#onetest com.jogamp.common.util.locks.TestRecursiveLock01 2>&1 | tee -a $LOG
#onetest com.jogamp.common.util.TestArrayHashSet01 2>&1 | tee -a $LOG
+onetest com.jogamp.gluegen.PCPPTest 2>&1 | tee -a $LOG
#onetest com.jogamp.gluegen.test.TestPointerBufferEndian 2>&1 | tee -a $LOG
#onetest com.jogamp.gluegen.test.TestStructAccessorEndian 2>&1 | tee -a $LOG