From 1a231b61a54be40f49a3ab91d1bbfdff7b427090 Mon Sep 17 00:00:00 2001 From: "Darryl L. Pierce" Date: Mon, 30 Sep 2013 20:25:09 +0000 Subject: QPID-5189: Moved the Dispatch Python path to before any default path. Also added a note in the README.me file explaining how to use config.sh. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1527765 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/extras/dispatch/README.md | 12 +++++++++++- qpid/extras/dispatch/config.sh | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/qpid/extras/dispatch/README.md b/qpid/extras/dispatch/README.md index 22e1a68570..1a4438fdf9 100644 --- a/qpid/extras/dispatch/README.md +++ b/qpid/extras/dispatch/README.md @@ -13,8 +13,18 @@ $ mkdir build $ cd build $ cmake .. $ make -$ make test +$ make test # see below Note: Your PYTHONPATH _must_ include /python in its list of paths in order to test and run Dispatch. +Running The Tests +================= + +Prior to running the unit tests, you should source the file config.sh which is +found in the root directory. + +$ . config.sh + +The file sets up the environment so that the tests can find the Python +libraries, etc. diff --git a/qpid/extras/dispatch/config.sh b/qpid/extras/dispatch/config.sh index 0f5f77e549..f398830ee6 100644 --- a/qpid/extras/dispatch/config.sh +++ b/qpid/extras/dispatch/config.sh @@ -22,5 +22,5 @@ cd $(dirname ${BASH_SOURCE[0]}) > /dev/null export QPID_DISPATCH_HOME=$(pwd) cd - > /dev/null -export PYTHONPATH=$PYTHONPATH:$QPID_DISPATCH_HOME/python +export PYTHONPATH=$QPID_DISPATCH_HOME/python:$PYTHONPATH -- cgit v1.2.1