From 3c9a8fdd71d8d1e29de4da3126cf35e1a88a069b Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Thu, 19 Nov 2009 23:02:07 +0000 Subject: Uncommented the other two tests Modified the scripts to work out the errors. It's now in a reasonable state to start expanding the tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@882346 13f79535-47bb-0310-9956-ffa450edef68 --- java/testkit/bin/qpid-python-testkit | 6 ++++-- java/testkit/bin/setenv.sh | 17 +++++++++++++---- 2 files changed, 17 insertions(+), 6 deletions(-) (limited to 'java/testkit/bin') diff --git a/java/testkit/bin/qpid-python-testkit b/java/testkit/bin/qpid-python-testkit index 3584e14d88..e1696ff722 100755 --- a/java/testkit/bin/qpid-python-testkit +++ b/java/testkit/bin/qpid-python-testkit @@ -26,7 +26,9 @@ export PYTHONPATH=../:$PYTHONPATH -echo $PYTHONPATH +if [ -d $OUTDIR ]; then + rm -rf $OUTDIR +fi -$PYTHON_DIR/qpid-python-test -m testkit +$PYTHON_DIR/qpid-python-test -DOUTDIR=$OUTDIR -m testkit 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 -- cgit v1.2.1