diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2011-07-15 04:43:44 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2011-07-15 04:43:44 +0000 |
| commit | d58b837942a135533f3ec576a133c7ceecad3eee (patch) | |
| tree | dd86ceaa1ea0056b4c96af2b966f9cc18658618c /qpid/java/tools/bin/qpid-python-testkit | |
| parent | 665fd64f84261d3bb9342b00f7f7823f367e3981 (diff) | |
| download | qpid-python-d58b837942a135533f3ec576a133c7ceecad3eee.tar.gz | |
QPID-3358 Simplified the scripts to make it easy to run them.
1. Removed the various set-env scripts. Instead in their place I want to introduce profiles that sets the env to
run under different environments. Ex from a source checkout or installed rpms.
2. Introduced Profile-run-from-source to set the env to run the tools
from an SVN checkout in a linux env.
3. Modified the scripts to use common variable names things like
classpaths, java executable, logging config etc..
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1146959 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/tools/bin/qpid-python-testkit')
| -rwxr-xr-x | qpid/java/tools/bin/qpid-python-testkit | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/qpid/java/tools/bin/qpid-python-testkit b/qpid/java/tools/bin/qpid-python-testkit index cbe7972421..7233d0d075 100755 --- a/qpid/java/tools/bin/qpid-python-testkit +++ b/qpid/java/tools/bin/qpid-python-testkit @@ -22,9 +22,12 @@ # via the python test runner. The defaults are set for a running # from an svn checkout -. ./set-testkit-env.sh +. check-qpid-java-env export PYTHONPATH=./:$PYTHONPATH -rm -rf $OUTDIR -qpid-python-test -DOUTDIR=$OUTDIR -m testkit "$@" - +echo $PYTHONPATH +if [ "$OUTDIR" = "" ] ; then + OUTDIR=$PWD +fi +testdir=$OUTDIR/testkit-out-`date +%F-%H-%M-%S` +qpid-python-test -m testkit -DOUTDIR=$testdir"$@" |
