summaryrefslogtreecommitdiff
path: root/java/testkit/bin/setenv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'java/testkit/bin/setenv.sh')
-rw-r--r--java/testkit/bin/setenv.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/java/testkit/bin/setenv.sh b/java/testkit/bin/setenv.sh
index c2a0c46d55..3ddb6b606f 100644
--- a/java/testkit/bin/setenv.sh
+++ b/java/testkit/bin/setenv.sh
@@ -17,6 +17,13 @@
# under the License.
#
+abs_path()
+{
+ D=`dirname "$1"`
+ B=`basename "$1"`
+ echo "`cd \"$D\" 2>/dev/null && pwd || echo \"$D\"`/$B"
+}
+
# Environment for python tests
test -d ../../../python || { echo "WARNING: skipping test, no python directory."; exit 0; }
PYTHON_DIR=../../../python
@@ -24,20 +31,22 @@ PYTHONPATH=$PYTHON_DIR:$PYTHON_DIR/qpid
if [ "$QPIDD_EXEC" = "" ] ; then
test -x ../../../cpp/src/qpidd || { echo "WARNING: skipping test, QPIDD_EXEC not set and qpidd not found."; exit 0; }
- QPIDD_EXEC=../../../cpp/src/qpidd
+ QPIDD_EXEC=`abs_path "../../../cpp/src/qpidd"`
+ #QPIDD_EXEC=/opt/workspace/qpid/trunk/qpid/cpp/src/.libs/lt-qpidd
fi
if [ "$CLUSTER_LIB" = "" ] ; then
test -x ../../../cpp/src/.libs/cluster.so || { echo "WARNING: skipping test, CLUSTER_LIB not set and cluster.so not found."; exit 0; }
- CLUSTER_LIB=../../../cpp/src/.libs/cluster.so
+ CLUSTER_LIB=`abs_path "../../../cpp/src/.libs/cluster.so"`
+ #CLUSTER_LIB=/opt/workspace/qpid/trunk/qpid/cpp/src/.libs/cluster.so
fi
if [ "$QP_CP" = "" ] ; then
QP_CP=`find ../../build/lib/ -name '*.jar' | tr '\n' ':'`
fi
-if [ "$QUTDIR" = "" ] ; then
- OUTDIR=../
+if [ "$OUTDIR" = "" ] ; then
+ OUTDIR=`abs_path "../output"`
fi