mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
48 lines
1.1 KiB
Bash
48 lines
1.1 KiB
Bash
#!/bin/sh
|
|
#
|
|
|
|
script_args=""
|
|
if [ $# -gt 0 ]; then
|
|
script_args=$1
|
|
else
|
|
script_args="auto.blank"
|
|
fi
|
|
|
|
echo "args = $script_args"
|
|
|
|
JDKHOME=`pwd`/../../java
|
|
MOZILLA_FIVE_HOME=`pwd`/../..
|
|
|
|
ARCH=`uname -p`
|
|
|
|
LD_LIBRARY_PATH=$JDKHOME/lib/$ARCH/client:$JDKHOME/lib/$ARCH:$LD_LIBRARY_PATH
|
|
LD_LIBRARY_PATH=$JDKHOME/lib:$JDKHOME/lib/$ARCH/native_threads:$LD_LIBRARY_PATH
|
|
LD_LIBRARY_PATH=`pwd`/../lib:`pwd`/../..:`pwd`/../../components:$LD_LIBRARY_PATH
|
|
LD_LIBRARY_PATH=`pwd`/../../dist/lib:$LD_LIBRARY_PATH
|
|
|
|
echo "LD_LIBRARY_PATH =" $LD_LIBRARY_PATH
|
|
|
|
if [ "$CLASSPATH" = "" ]; then
|
|
CLASSPATH=$JDKHOME/lib/tools.jar:$JDKHOME/lib/rt.jar:`pwd`/../lib/blackwood.jar
|
|
else
|
|
CLASSPATH=$JDKHOME/lib/tools.jar:$JDKHOME/lib/rt.jar:`pwd`/../lib/blackwood.jar:$CLASSPATH
|
|
fi
|
|
|
|
echo "CLASSPATH =" $CLASSPATH
|
|
|
|
libpath=`pwd`/../..:`pwd`/../../components:`pwd`/../lib
|
|
testclass="org.mozilla.webclient.test.EmbeddedMozilla"
|
|
bindir=`pwd`/../..
|
|
|
|
export LD_LIBRARY_PATH
|
|
export CLASSPATH
|
|
export JDKHOME
|
|
export MOZILLA_FIVE_HOME
|
|
|
|
args="-native -Djava.library.path=$libpath -classpath $CLASSPATH $testclass $bindir $script_args"
|
|
|
|
cmd="$JDKHOME/bin/java $args"
|
|
echo "CMD = " $cmd
|
|
|
|
eval $cmd
|