From 86027b1ee6c18dd16fd7a966bafa556e95bbfd6c Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 24 Mar 2008 22:58:34 +0000 Subject: Use cygpath to automatically find our paths under Windows. svn path=/trunk/; revision=24725 --- tools/fuzz-test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tools') 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 -- cgit v1.2.3