From 69a95ad3a2558713bd405ff8bb88be1e9e03929e Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Thu, 26 Jul 2012 02:38:34 +0000 Subject: valgrind-wireshark.sh: - add support for 2-pass dissection and config profiles - make whitespace a consistent 4-spaces fuzz-test.sh: - update 2-pass support to use -2 and not the old -P - add support for fuzz-testing under valgrind with the new -g option svn path=/trunk/; revision=44024 --- tools/valgrind-wireshark.sh | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'tools/valgrind-wireshark.sh') diff --git a/tools/valgrind-wireshark.sh b/tools/valgrind-wireshark.sh index 63fa8e210d..512f000018 100755 --- a/tools/valgrind-wireshark.sh +++ b/tools/valgrind-wireshark.sh @@ -33,27 +33,29 @@ COMMAND=tshark COMMAND_ARGS="-nVxr" COMMAND_ARGS2= -while getopts ":b:ltwce" OPTCHAR ; do +while getopts ":2b:C:ltwce" OPTCHAR ; do case $OPTCHAR in + 2) COMMAND_ARGS="-2 $COMMAND_ARGS" ;; b) BIN_DIR=$OPTARG ;; + C) COMMAND_ARGS="-C $OPTARG $COMMAND_ARGS" ;; l) LEAK_CHECK="--leak-check=full" ;; t) TRACK_ORIGINS="--track-origins=yes" ;; - w) COMMAND=wireshark - COMMAND_ARGS="-nr" ;; - c) COMMAND=capinfos - COMMAND_ARGS="" ;; - e) COMMAND=editcap - COMMAND_ARGS="-E 0.02" - # We don't care about the output of editcap - COMMAND_ARGS2="/dev/null" ;; + w) COMMAND=wireshark + COMMAND_ARGS="-nr" ;; + c) COMMAND=capinfos + COMMAND_ARGS="" ;; + e) COMMAND=editcap + COMMAND_ARGS="-E 0.02" + # We don't care about the output of editcap + COMMAND_ARGS2="/dev/null" ;; esac done shift $(($OPTIND - 1)) if [ $# -ne 1 ] then - printf "Usage: $0 [-b bin_dir] [-l] [-t] [-w] /path/to/file.pcap\n" - exit 1 + printf "Usage: $0 [-2] [-b bin_dir] [-C config_profile] [-l] [-t] [-w] /path/to/file.pcap\n" + exit 1 fi if [ "$BIN_DIR" = "." ]; then -- cgit v1.2.1