/usr/share/gluegen2/make/scripts/runtest.sh is in libgluegen2-build-java 2.3.2-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | #! /bin/bash
builddir="$1"
shift
if [ -z "$builddir" ] ; then
echo Usage $0 build-dir
exit 1
fi
if [ -e /opt-share/apache-ant ] ; then
ANT_PATH=/opt-share/apache-ant
PATH=$ANT_PATH/bin:$PATH
export ANT_PATH
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
if [ -e /usr/share/ant/bin/ant -a -e /usr/share/ant/lib/ant.jar ] ; then
ANT_PATH=/usr/share/ant
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
GLUEGEN_ROOT=`dirname $builddir`
ROOTREL_BUILD=`basename $builddir`
X_ARGS="-Drootrel.build=$ROOTREL_BUILD -Dgluegen.root=$GLUEGEN_ROOT -Djava.library.path=$builddir/obj:$builddir/test/build/natives"
#D_ARGS="-Djogamp.debug.ProcAddressHelper -Djogamp.debug.NativeLibrary -Djogamp.debug.NativeLibrary.Lookup"
#D_ARGS="-Djogamp.debug.TraceLock"
#D_ARGS="-Djogamp.debug.Platform -Djogamp.debug.NativeLibrary"
#D_ARGS="-Djogamp.debug.JarUtil"
#D_ARGS="-Djogamp.debug.TempJarCache"
#D_ARGS="-Djogamp.debug.TempFileCache"
#D_ARGS="-Djogamp.debug.IOUtil -Djogamp.debug.JNILibLoader -Djogamp.debug.TempFileCache -Djogamp.debug.JarUtil -Djava.io.tmpdir=/run/tmp"
#D_ARGS="-Djogamp.debug.IOUtil -Djogamp.debug.JNILibLoader -Djogamp.debug.TempFileCache -Djogamp.debug.JarUtil -Djogamp.debug.TempJarCache"
#D_ARGS="-Djogamp.debug.IOUtil -Djogamp.debug.JarUtil -Djogamp.debug.TempJarCache -Djogamp.debug.Uri -Djogamp.debug.Uri.ShowFix"
#D_ARGS="-Djogamp.debug.Uri -Djogamp.debug.Uri.ShowFix"
#D_ARGS="-Djogamp.debug.JNILibLoader -Djogamp.gluegen.UseTempJarCache=false"
#D_ARGS="-Djogamp.debug.JNILibLoader -Djogamp.debug.TempJarCache"
#D_ARGS="-Djogamp.debug.JNILibLoader"
#D_ARGS="-Djogamp.debug.JNILibLoader.Perf"
#D_ARGS="-Djogamp.debug.Lock"
#D_ARGS="-Djogamp.debug.Lock -Djogamp.debug.Lock.TraceLock"
#D_ARGS="-Djogamp.debug.Lock.TraceLock"
#D_ARGS="-Djogamp.debug.IOUtil -Djogamp.debug.IOUtil.Exe -Djogamp.debug.IOUtil.Exe.NoStream"
#D_ARGS="-Djogamp.debug.IOUtil -Djogamp.debug.IOUtil.Exe"
#D_ARGS="-Djogamp.debug.ByteBufferInputStream"
#D_ARGS="-Djogamp.debug.Bitstream"
D_ARGS="-Djogamp.debug=all"
#D_ARGS="-Djogamp.debug.Logging"
function onetest() {
#USE_CLASSPATH=lib/junit.jar:$ANT_JARS:lib/semantic-versioning/semver.jar:"$builddir"/../make/lib/TestJarsInJar.jar:"$builddir"/gluegen-rt.jar:"$builddir"/gluegen.jar:"$builddir"/gluegen-test-util.jar:"$builddir"/test/build/gluegen-test.jar
USE_CLASSPATH=/usr/share/java/junit4.jar:$ANT_JARS:lib/semantic-versioning/semver.jar:"$builddir"/../test/TestJarsInJar/TestJarsInJar.jar:"$builddir"/gluegen-rt.jar:"$builddir"/gluegen.jar:"$builddir"/gluegen-test-util.jar:"$builddir"/test/build/gluegen-test.jar:"$builddir"/gluegen-rt-natives.jar
#USE_CLASSPATH=lib/junit.jar:$ANT_JARS:lib/semantic-versioning/semver.jar:"$builddir"/../make/lib/TestJarsInJar.jar:"$builddir"/gluegen-rt-alt.jar:"$builddir"/gluegen.jar:"$builddir"/gluegen-test-util.jar:"$builddir"/test/build/gluegen-test.jar
libspath="$builddir"/test/build/natives
#USE_CLASSPATH=lib/junit.jar:$ANT_JARS:"$builddir"/../make/lib/TestJarsInJar.jar:"$builddir"/classes:"$builddir"/test/build/classes
#libspath="$builddir"/obj:"$builddir"/test/build/natives:
LD_LIBRARY_PATH=$libspath:$LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
export LD_LIBRARY_PATH DYLD_LIBRARY_PATH
echo LD_LIBRARY_PATH $LD_LIBRARY_PATH
echo USE_CLASSPATH $USE_CLASSPATH
which java
#echo java -cp $USE_CLASSPATH $X_ARGS $D_ARGS -Djava.library.path=$libspath $*
#java -cp $USE_CLASSPATH $X_ARGS $D_ARGS -Djava.library.path="$libspath" $*
echo java -cp "$USE_CLASSPATH" $X_ARGS $D_ARGS $*
java -cp "$USE_CLASSPATH" $X_ARGS $D_ARGS $*
#j3 -cp "$USE_CLASSPATH" $X_ARGS $D_ARGS $*
echo
}
#
(cd $builddir/../test/TestJarsInJar && sh make.sh)
#
onetest com.jogamp.common.GlueGenVersion 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestSystemPropsAndEnvs 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestVersionInfo 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestVersionNumber 2>&1 | tee -a $LOG
#onetest com.jogamp.common.util.TestVersionSemantics 2>&1 | tee -a $LOG
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.TestRecursiveThreadGroupLock01 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.locks.TestSingletonServerSocket00 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.locks.TestSingletonServerSocket01 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.locks.TestSingletonServerSocket02 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestFloatStack01 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestIntegerStack01 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestArrayHashSet01 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestArrayHashMap01 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.IntIntHashMapTest 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.IntObjectHashMapTest 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.LongIntHashMapTest 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestPlatform01 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestRunnableTask01 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestIOUtil01 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestTempJarCache 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestJarUtil 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestValueConversion 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestSyncRingBuffer01 $*
onetest com.jogamp.common.util.TestLFRingBuffer01 $*
onetest com.jogamp.common.util.TestBitfield00 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestBitstream00 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestBitstream01 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestBitstream02 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestBitstream03 2>&1 | tee -a $LOG
onetest com.jogamp.common.util.TestBitstream04 2>&1 | tee -a $LOG
onetest com.jogamp.common.net.TestUrisWithAssetHandler 2>&1 | tee -a $LOG
onetest com.jogamp.common.net.TestUriQueryProps 2>&1 | tee -a $LOG
onetest com.jogamp.common.net.TestUri01 2>&1 | tee -a $LOG
onetest com.jogamp.common.net.TestUri02Composing 2>&1 | tee -a $LOG
onetest com.jogamp.common.net.TestUri03Resolving 2>&1 | tee -a $LOG
onetest com.jogamp.common.net.TestUri99LaunchOnReservedCharPathBug908 2>&1 | tee -a $LOG
onetest com.jogamp.common.net.AssetURLConnectionUnregisteredTest 2>&1 | tee -a $LOG
onetest com.jogamp.common.net.AssetURLConnectionRegisteredTest 2>&1 | tee -a $LOG
onetest com.jogamp.junit.sec.TestSecIOUtil01 2>&1 | tee -a $LOG
onetest com.jogamp.common.nio.BuffersTest 2>&1 | tee -a $LOG
onetest com.jogamp.common.nio.TestBuffersFloatDoubleConversion 2>&1 | tee -a $LOG
onetest com.jogamp.common.nio.TestPointerBufferEndian 2>&1 | tee -a $LOG
onetest com.jogamp.common.nio.TestStructAccessorEndian 2>&1 | tee -a $LOG
onetest com.jogamp.common.nio.TestByteBufferInputStream 2>&1 | tee -a $LOG
onetest com.jogamp.common.nio.TestByteBufferOutputStream 2>&1 | tee -a $LOG
onetest com.jogamp.common.nio.TestByteBufferCopyStream 2>&1 | tee -a $LOG
onetest com.jogamp.common.os.TestElfReader01 $* 2>&1 | tee -a $LOG
onetest com.jogamp.gluegen.test.junit.internals.TestType 2>&1 | tee -a $LOG
onetest com.jogamp.gluegen.test.junit.generation.PCPPTest 2>&1 | tee -a $LOG
onetest com.jogamp.gluegen.jcpp.IncludeAbsoluteTest 2>&1 | tee -a $LOG
onetest com.jogamp.gluegen.jcpp.CppReaderTest 2>&1 | tee -a $LOG
onetest com.jogamp.gluegen.jcpp.TokenPastingWhitespaceTest 2>&1 | tee -a $LOG
onetest com.jogamp.gluegen.jcpp.PreprocessorTest 2>&1 | tee -a $LOG
onetest com.jogamp.gluegen.test.junit.generation.Test1p1JavaEmitter 2>&1 | tee -a $LOG
onetest com.jogamp.gluegen.test.junit.generation.Test1p2ProcAddressEmitter 2>&1 | tee -a $LOG
onetest com.jogamp.gluegen.test.junit.generation.Test1p2LoadJNIAndImplLib 2>&1 | tee -a $LOG
onetest com.jogamp.gluegen.test.junit.structgen.TestStructGen01 2>&1 | tee -a $LOG
onetest com.jogamp.gluegen.test.junit.structgen.TestStructGen02 2>&1 | tee -a $LOG
|