Make it easier to run tests out of tree.

Change-Id: I4ed10339d3c543d9d199e5262b6e7bb8247544ac
Reviewed-on: https://code.wireshark.org/review/5148
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Joerg Mayer 2014-11-05 21:00:26 +01:00 committed by Michael Mann
parent 7935ba9f5b
commit 27fa202b5e
1 changed files with 8 additions and 3 deletions

View File

@ -61,9 +61,14 @@ FIN
exit 0
fi
source test-backend.sh
source config.sh
MYDIR=$(dirname $0)
THISBINDIR=$(cd run && pwd)
if [ -e $THISBINDIR/tshark -o -e $THISBINDIR/dumpcap -o -e $THISBINDIR/rawshark ]; then
WS_BIN_PATH=${WS_BIN_PATH:-$THISBINDIR}
WS_QT_BIN_PATH=${WS_QT_BIN_PATH:-$THISBINDIR}
fi
source $MYDIR/test-backend.sh
source $MYDIR/config.sh
# needed by some tests
TEST_OUTDIR=$(mktemp -d)