aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2010-06-04 19:57:11 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2010-06-04 19:57:11 +0000
commit0a7ced6eb49593cf9b52615e4f4d73de4d134709 (patch)
tree0a28f1e7cfda7cde88c2f0273fea1d9cb9aae280 /tools
parentd123b9e7379979ff2fedab6009b3ada658a41e1c (diff)
Add BIN_DIR. If it is '.' then set WIRESHARK_RUN_FROM_BUILD_DIRECTORY so that we test plugins
svn path=/trunk/; revision=33093
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test-fuzzed-cap.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/test-fuzzed-cap.sh b/tools/test-fuzzed-cap.sh
index d43704be00..ec7a42b684 100755
--- a/tools/test-fuzzed-cap.sh
+++ b/tools/test-fuzzed-cap.sh
@@ -14,6 +14,9 @@ then
exit 1
fi
+# Directory containing tshark. Default current directory.
+BIN_DIR=.
+
# These may be set to your liking
# Stop the child process, if it's running longer than x seconds
MAX_CPU_TIME=900
@@ -26,8 +29,12 @@ ulimit -S -t $MAX_CPU_TIME -v $MAX_VMEM
# Allow core files to be generated
ulimit -c unlimited
+if [ "$BIN_DIR" = "." ]; then
+ export WIRESHARK_RUN_FROM_BUILD_DIRECTORY=
+fi
+
export WIRESHARK_DEBUG_SCRUB_MEMORY=
export WIRESHARK_DEBUG_SE_USE_CANARY=
export MALLOC_CHECK_=3
-./tshark -nVxr $1 > /dev/null
+$BIN_DIR/tshark -nVxr $1 > /dev/null