if [ -n "${OS#Windows}" ] ; then
WS_SYSTEM="Windows"
export CYGWIN="$CYGWIN error_start=c:\cygwin\bin\dumper.exe -d %1 %2"
- DIR_SEP="\\"
else
WS_SYSTEM=`uname -s`
- DIR_SEP="/"
fi
# Tell Wireshark to quit after capuring packets.
export WIRESHARK_QUIT_AFTER_CAPTURE="True"
-CAPTURE_DIR="captures${DIR_SEP}"
+CAPTURE_DIR="captures/"
# Configuration paths
TEST_HOME="$PWD/fakehome"
+
if [ "$WS_SYSTEM" == "Windows" ] ; then
TEST_HOME="`cygpath -w $TEST_HOME`"
+ CAPTURE_DIR="`cygpath -w $CAPTURE_DIR`"
fi
# Display our environment
-"127.0.0.1","443","http","%test_keys_dir%rsasnakeoil2.key",""
+"127.0.0.1","443","http","TEST_KEYS_DIRrsasnakeoil2.key",""
test_remark_add "../$UAT exists. One or more tests may fail."
else
echo "# Created by $DC_ID" > ../$UAT
- sed -e "s:%test_keys_dir%:${TEST_KEYS_DIR}:" < ./config/$UAT.tmpl >> ../$UAT
+ sed -e "s|TEST_KEYS_DIR|${TEST_KEYS_DIR//\\/\\\\}|" < ./config/$UAT.tmpl >> ../$UAT
fi
done
}