aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2007-11-12 19:47:15 +0000
committerGerald Combs <gerald@wireshark.org>2007-11-12 19:47:15 +0000
commit0a2fdfe9ec382d03352a2b43af7bbbba94b06f1d (patch)
tree328cc3526550b30ca4a62a1770bda1bc6f49fa7b /tools
parent7d8064f5483a1e758c8271d7c43a9dc1256899f2 (diff)
Print the pass number periodically as a convenience for running the script
on a large number of trace files. svn path=/trunk/; revision=23437
Diffstat (limited to 'tools')
-rwxr-xr-xtools/fuzz-test.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh
index d1fbdf6c0f..01029ade3e 100755
--- a/tools/fuzz-test.sh
+++ b/tools/fuzz-test.sh
@@ -103,9 +103,14 @@ trap "rm -f $TMP_DIR/$TMP_FILE $TMP_DIR/$ERR_FILE; echo ""; exit 1" HUP INT TERM
PASS=0
while [ $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 ] ; do
PASS=`expr $PASS + 1`
- echo "Pass $PASS:"
+ echo "Starting pass $PASS:"
+ RUN=0
for CF in "$@" ; do
+ RUN=$(( $RUN + 1 ))
+ if [ $(( $RUN % 50 )) -eq 0 ] ; then
+ echo " [Pass $PASS]"
+ fi
echo -n " $CF: "
"$CAPINFOS" "$CF" > /dev/null 2>&1