diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-06-04 19:57:11 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-06-04 19:57:11 +0000 |
commit | 50beccc920cee8257543fcddf9447bbfc92f1b39 (patch) | |
tree | 0a28f1e7cfda7cde88c2f0273fea1d9cb9aae280 /tools/test-fuzzed-cap.sh | |
parent | c91c4de405e84c413345b363cd7d483a72e290b9 (diff) |
Add BIN_DIR. If it is '.' then set WIRESHARK_RUN_FROM_BUILD_DIRECTORY so that we test plugins
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33093 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools/test-fuzzed-cap.sh')
-rwxr-xr-x | tools/test-fuzzed-cap.sh | 9 |
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 |