cURL / Mailing Lists / curl-library / Single Mail

curl-library

test200

From: David Byron <DByron_at_everdreamcorp.com>
Date: Mon, 4 Aug 2003 16:43:25 -0700

I'm trying to get the testsuite to pass with the standalone windows version
of curl I just built. A little odd I suppose because the testsuite requires
cygwin (for configure/make/building sws/perl/etc.) but I still want to test
my standalone version.

In any case, the curl I want to test looks like this:

$ curl -V
curl 7.10.6 (win32) libcurl/7.10.6 OpenSSL/0.9.7a
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: SSL NTLM

When I do

tests/ $ make test
********* System characteristics ********
* curl 7.10.6 (win32)
* libcurl/7.10.6 OpenSSL/0.9.7a
* Host: DByron
* System: CYGWIN_NT-5.1 DByron 1.3.22(0.78/3/2) 2003-03-18 09:20 i686
unknown unknown Cygwin
* Server SSL: OFF
* libcurl SSL: ON
* libcurl debug: OFF
*****************************************

[ stuff snipped /

Everything is fine up to test200, when I get

test 200...[basic file:// file]
curl returned 37, 0 was expected
 error FAILED

 - abort tests
Shutting down test suite servers:
* kill pid for ftp => 8560
* kill pid for http => 9028
TESTDONE: 111 tests out of 112 reported OK: 99%
TESTFAIL: These test cases failed: 200
TESTINFO: 5 tests were skipped due to these restraints:
TESTINFO: "unfulfilled requirements" happened 5 times (130, 131, 132, 133,
134)
make: *** [test] Error 1

log/stderr200 contains:

* Couldn't open file /cygdrive/c/src/cobra/curl/tests/log/test200.txt
curl: (37) Couldn't open file
/cygdrive/c/src/cobra/curl/tests/log/test200.txt

The last line of log/curl.log contains:

../src/curl --output log/curl200.out --include -v
file://localhost//cygdrive/c/src/cobra/curl/tests/log/test200.txt
>log/stdout200
2>log/stderr200

Looking at data/test200, I'm curious about the command. Currently, it is:

 <command>
file://localhost/%PWD/log/test200.txt
</command>

How come localhost is there? That may be a detail. The real issue here is
that runtests.pl has a routine called subVariables that swaps %PWD for
whatever the pwd command spits out. pwd is a cygwin program that knows
about /cygdrive/c, etc. However, the standalone windows version of curl
doesn't know how to handle that.

I can write a patch to runtests.pl to make it call cygpath with -w. Not
sure the best way to do it though. No fair polluting it for everyone else.
It doesn't even belong in that CYGWIN-PATCHES directory since a "pure"
cygwin environment works fine.

Any thoughts?

$ ../src/curl file://localhost/c:/src/cobra/curl/tests/log/test200.txt

doesn't work for me.

$ ../src/curl file://c:/src/cobra/curl/tests/log/test200.txt

does work.

Thanks much.

-DB

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-05