cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: running tests under Cygwin

From: David Byron <DByron_at_everdreamcorp.com>
Date: Tue, 27 May 2003 12:37:36 -0700

It looks like your patch only affects ftp testing. I tried it anyway, and
have the same results.

For test 1 (stderr1), the client is receiving one more byte than it's
supposed to (7 instead of 6). I'm not sure I totally understand the format
of test1, etc. but this feels like a CR/LF thing, perhaps because I
extracted the tar files with WinZip.

I tried extracting the tar file with tar, and there is a difference in the
test files...and magically, the tests all pass.

I've definitely been bitten by this before, and should know better. I
remember vaguely seeing a note about this on the curl site, but not sure
where. I don't see one on the download page now, which might be a good
place, or perhaps the FAQ.

Thanks for your help.

-DB

> -----Original Message-----
> From: Roth, Kevin P. [mailto:KPRoth_at_MAPLLC.com]
> Sent: Tuesday, May 27, 2003 11:33 AM
> To: curl-users_at_lists.sourceforge.net
> Cc: David Byron
> Subject: RE: running tests under Cygwin
>
>
> I typically just do:
>
> $ make test
>
> inside the build directory, and most of the tests work just
> fine. There's an issue with perl 5.8 where some of the tests
> don't run reliably, but in my customized version of the
> source (look on the downloads page for Cygwin Source) I've
> got a patch in place that fixes that problem.
>
> - Kevin
>
> -----Original Message-----
> From: David Byron [mailto:DByron_at_everdreamcorp.com]
> Sent: Tuesday, May 27, 2003 2:09 PM
> To: 'curl-users_at_lists.sourceforge.net'
> Subject: running tests under Cygwin
>
> I've configured and built the source for 7.10.5 following the
> instructions in docs/INSTALL. I tried running the testsuite,
> but all the tests fail.
>
> For just the first test, I get:
>
> DByron_at_DByron /cygdrive/c/src/curl-7.10.5-cygwin-sh/tests
> $ ./runtests.pl -v 1
> ********* System characteristics ********
> * curl 7.10.5 (i686-pc-cygwin)
> * libcurl/7.10.5 zlib/1.1.4
> * Host: DByron
> * System: CYGWIN_NT-5.1 DByron 1.3.22(0.78/3/2) 2003-03-18
> 09:20 i686 unknown unknown Cygwin
> * Memory debugging: OFF
> * Netrc debugging: OFF
> * HTTPS server: OFF
> * FTPS server: OFF
> * libcurl SSL: OFF
> *****************************************
> CMD; ../src/curl -o log/verifiedserver --silent -i
> 127.0.0.1:8999/verifiedserver 2>/dev/null
> RUN: curl command returned 7
> CMD: perl -I. ./httpserver.pl 8999 &
> RUN: HTTP server is now verified to be our server
> ]est 001...[simple HTTP GET
> >log/stdout1 2>log/stderr1rl1.out --include -v
http://127.0.0.1:8999/1 curl returned 18, 0 was expected error FAILED

 - abort tests
RUN: Test server pid 12024 signalled to die
TESTDONE: 0 tests out of 1 reported OK: 0%
TESTFAIL: These test cases failed: 1

The attached files show some more information. stdout1 is empty. Do other
folks have this working? Is this expected to work?

Thanks much.

-DB

-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
Received on 2003-05-27