If BIN_DIR is ".", set WIRESHARK_RUN_FROM_BUILD_DIRECTORY so that we
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 4 Jun 2010 16:59:49 +0000 (16:59 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 4 Jun 2010 16:59:49 +0000 (16:59 +0000)
test plugins.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33085 f5534014-38df-0310-8fa8-9805f1628bb7

tools/fuzz-test.sh

index c21fc40c1cfdf8e6bf8e542c8021e957a2f891cf..13970d39a231940558e4d18e19e5639633f5fa6a 100755 (executable)
@@ -63,6 +63,10 @@ TSHARK="$BIN_DIR/tshark"
 EDITCAP="$BIN_DIR/editcap"
 CAPINFOS="$BIN_DIR/capinfos"
 
+if [ "$BIN_DIR" = "." ]; then
+    export WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1
+fi
+
 # set some limits to the child processes, e.g. stop it if it's running longer then MAX_CPU_TIME seconds
 # (ulimit is not supported well on cygwin and probably other platforms, e.g. cygwin shows some warnings)
 ulimit -S -t $MAX_CPU_TIME -v $MAX_VMEM