summaryrefslogtreecommitdiff
path: root/cpp/tests/env
blob: 49201c01fd04b2c38a9f857dd74dacf2759c99cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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/tests
# 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