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:
parent
7935ba9f5b
commit
27fa202b5e
11
test/test.sh
11
test/test.sh
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue