diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-08-12 21:18:39 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-08-12 21:18:39 +0000 |
commit | 019e6122252cd0feef2d0a4ed2ba1d704a10c56b (patch) | |
tree | 85ae0268d82cbdc58e71eb68441ae04519bdcb36 /tests | |
parent | 6550d271f0e83267e124c6a972f39f65d87a0593 (diff) |
David Byron's fix that makes this script use 'cygpath' instead of 'pwd' if
this runs on windows, to find out the current working directory.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runtests.pl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 4af8665f6..450d49aab 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -452,6 +452,22 @@ sub checkcurl { $curl =~ s/^(.*)(libcurl.*)/$1/g; $libcurl = $2; + + if ($curl =~ /win32/) + { + # Native Windows builds don't understand the + # output of cygwin's pwd. It will be + # something like /cygdrive/c/<some path>. + # + # Use the cygpath utility to convert the + # working directory to a Windows friendly + # path. The -m option converts to use drive + # letter:, but it uses / instead \. Forward + # slashes (/) are easier for us. We don't + # have to escape them to get them to curl + # through a shell. + chomp($pwd = `cygpath -m $pwd`); + } } elsif($_ =~ /^Protocols: (.*)/i) { # these are the supported protocols, we don't use this knowledge |