diff options
author | Gerald Combs <gerald@wireshark.org> | 2010-06-04 16:59:49 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2010-06-04 16:59:49 +0000 |
commit | e5def72fe742dc6e50c12b805add7f652b6c8b0e (patch) | |
tree | 2a9c92ee8e8be0a571590b2287e14ba06b1c8cfb /tools/fuzz-test.sh | |
parent | 397f576de2e7f5e53f9238dbf8732eab4b38c02c (diff) |
If BIN_DIR is ".", set WIRESHARK_RUN_FROM_BUILD_DIRECTORY so that we
test plugins.
svn path=/trunk/; revision=33085
Diffstat (limited to 'tools/fuzz-test.sh')
-rwxr-xr-x | tools/fuzz-test.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh index c21fc40c1c..13970d39a2 100755 --- a/tools/fuzz-test.sh +++ b/tools/fuzz-test.sh @@ -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 |