diff options
| author | Alan Conway <aconway@apache.org> | 2006-11-23 20:43:40 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2006-11-23 20:43:40 +0000 |
| commit | 5c5b418c4db21949d1a526fde57e619195039e54 (patch) | |
| tree | b032ed19865964bcdd435b72080434841d75f224 /cpp/test/bin/env | |
| parent | 07c4ffe83617edc973121b41ab23d91be3333c9d (diff) | |
| download | qpid-python-5c5b418c4db21949d1a526fde57e619195039e54.tar.gz | |
Scripts to simplify runnning topictest. topicall is the main script.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478659 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/test/bin/env')
| -rwxr-xr-x | cpp/test/bin/env | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cpp/test/bin/env b/cpp/test/bin/env new file mode 100755 index 0000000000..76797b1ef7 --- /dev/null +++ b/cpp/test/bin/env @@ -0,0 +1,23 @@ +#!/bin/bash +# Set environment variables for test scripts. + +pathmunge () { + if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then + if [ "$2" = "after" ] ; then + PATH=$PATH:$1 + else + PATH=$1:$PATH + fi + fi +} + +if [ -z QPID_ROOT ] ; then echo "You must set QPID_ROOT" ; fi + +pathmunge $QPID_ROOT/cpp/test/bin +pathmunge $QPID_ROOT/cpp/build/*/bin +pathmunge $QPID_ROOT/cpp/build/*/test + +export QPID_HOME=${QPID_HOME:-$QPID_ROOT/java/build} +pathmunge $QPID_HOME/bin + + |
