From add8637013433733bc80080da9bb3d77aa7748d9 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 23 Nov 2006 20:43:40 +0000 Subject: Scripts to simplify runnning topictest. topicall is the main script. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@478659 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/test/bin/env | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 qpid/cpp/test/bin/env (limited to 'qpid/cpp/test/bin/env') diff --git a/qpid/cpp/test/bin/env b/qpid/cpp/test/bin/env new file mode 100755 index 0000000000..76797b1ef7 --- /dev/null +++ b/qpid/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 + + -- cgit v1.2.1