1
0
Fork 0

add another directory to detect arangosh

This commit is contained in:
Wilfried Goesgens 2017-02-08 11:00:50 +01:00
parent ad1c7e7c13
commit 9dffdbe3f2
1 changed files with 21 additions and 18 deletions

View File

@ -2,12 +2,12 @@
export PID=$$
if test -n "$ORIGINAL_PATH"; then
# running in cygwin...
PS='\'
export EXT=".exe"
# running in cygwin...
PS='\'
export EXT=".exe"
else
export EXT=""
PS='/'
export EXT=""
PS='/'
fi;
ulimit -n 2048
@ -15,20 +15,23 @@ ulimit -n 2048
export PORT=`expr 1024 + $RANDOM`
if [ -z "${ARANGOSH}" ]; then
if [ -x build/bin/arangosh ]; then
ARANGOSH=build/bin/arangosh
elif [ -x bin/arangosh ]; then
ARANGOSH=bin/arangosh
else
echo "$0: cannot locate arangosh"
fi
if [ -x build/bin/arangosh ]; then
ARANGOSH=build/bin/arangosh
elif [ -x bin/arangosh ]; then
ARANGOSH=bin/arangosh
elif [ -x usr/bin/arangosh ]; then
ARANGOSH=usr/bin/arangosh
else
echo "$0: cannot locate arangosh"
exit 1
fi
fi
#
exec $ARANGOSH \
-c etc${PS}relative${PS}arangosh.conf \
--log.level warning \
--server.endpoint tcp://127.0.0.1:${PORT} \
--javascript.execute UnitTests${PS}unittest.js \
-- \
"$@"
-c etc${PS}relative${PS}arangosh.conf \
--log.level warning \
--server.endpoint tcp://127.0.0.1:${PORT} \
--javascript.execute UnitTests${PS}unittest.js \
-- \
"$@"