diff options
author | Bill Meier <wmeier@newsguy.com> | 2010-10-18 13:21:04 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2010-10-18 13:21:04 +0000 |
commit | 175ec40ea0233f5720e1e38668c7b32d188bac61 (patch) | |
tree | 7e371656f444e5f1d7aefb273c7b3c18d0092843 /tools | |
parent | 02a19a65c257b9a5dcfb9b54716d1000facb1529 (diff) |
Add fuzz-test option (-C) to specify a configuration profile.
svn path=/trunk/; revision=34553
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/fuzz-test.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh index 323c8d5698..0b5a614f8d 100755 --- a/tools/fuzz-test.sh +++ b/tools/fuzz-test.sh @@ -31,6 +31,9 @@ MAX_PASSES=0 # Perform a two pass analysis on the capture file? TWO_PASS= +# Specific config profile ? +CONFIG_PROFILE= + # These may be set to your liking # Stop the child process if it's running longer than x seconds MAX_CPU_TIME=900 @@ -54,9 +57,10 @@ ERR_PROB=0.02 # To do: add options for file names and limits -while getopts ":b:d:e:Pp:" OPTCHAR ; do +while getopts ":b:d:e:C:Pp:" OPTCHAR ; do case $OPTCHAR in b) BIN_DIR=$OPTARG ;; + C) CONFIG_PROFILE="-C $OPTARG " ;; d) TMP_DIR=$OPTARG ;; e) ERR_PROB=$OPTARG ;; p) MAX_PASSES=$OPTARG ;; @@ -86,7 +90,7 @@ ulimit -c unlimited # V Print a view of the details of the packet rather than a one-line summary of the packet # x Cause TShark to print a hex and ASCII dump of the packet data after printing the summary or details # r Read packet data from the following infile -TSHARK_ARGS="${TWO_PASS}-nVxr" +TSHARK_ARGS="${CONFIG_PROFILE}${TWO_PASS}-nVxr" NOTFOUND=0 for i in "$TSHARK" "$EDITCAP" "$CAPINFOS" "$DATE" "$TMP_DIR" ; do |