aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2008-03-24 22:58:34 +0000
committerGerald Combs <gerald@wireshark.org>2008-03-24 22:58:34 +0000
commit86027b1ee6c18dd16fd7a966bafa556e95bbfd6c (patch)
treeb8004972f5ff13f87690783e5650416f907e3344 /tools
parent398e06e8751f75135c9ca6f4020a79b789330c22 (diff)
Use cygpath to automatically find our paths under Windows.
svn path=/trunk/; revision=24725
Diffstat (limited to 'tools')
-rwxr-xr-xtools/fuzz-test.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh
index 01029ade3e..5b25d5bf4e 100755
--- a/tools/fuzz-test.sh
+++ b/tools/fuzz-test.sh
@@ -21,6 +21,9 @@ BASE_NAME=fuzz-`$DATE +%Y-%m-%d`-$$
# Temporary file directory and names.
# (had problems with this on cygwin, tried TMP_DIR=./ which worked)
TMP_DIR=/tmp
+if [ "$OSTYPE" == "cygwin" ] ; then
+ TMP_DIR=`cygpath --windows "$TMP_DIR"`
+fi
TMP_FILE=$BASE_NAME.pcap
ERR_FILE=$BASE_NAME.err
@@ -76,6 +79,9 @@ fi
# Make sure we have a valid test set
FOUND=0
for CF in "$@" ; do
+ if [ "$OSTYPE" == "cygwin" ] ; then
+ CF=`cygpath --windows "$CF"`
+ fi
"$CAPINFOS" "$CF" > /dev/null 2>&1 && FOUND=1
if [ $FOUND -eq 1 ] ; then break ; fi
done
@@ -111,6 +117,9 @@ while [ $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 ] ; do
if [ $(( $RUN % 50 )) -eq 0 ] ; then
echo " [Pass $PASS]"
fi
+ if [ "$OSTYPE" == "cygwin" ] ; then
+ CF=`cygpath --windows "$CF"`
+ fi
echo -n " $CF: "
"$CAPINFOS" "$CF" > /dev/null 2>&1