Skip Menu |

This queue is for tickets about the WWW-Curl CPAN distribution.

Report information
The Basics
Id: 33579
Status: resolved
Priority: 0/
Queue: WWW-Curl

People
Owner: Nobody in particular
Requestors: andy_bach [...] wiwb.uscourts.gov
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 3.02
Fixed in: (no value)



Subject: test 01basic (CURL_TEST_URL) others hang due to prompt for test URL (3.02)
install can't be done by cpan or by the usual perl Makefile.PL/make/make test as 01basic.t and others need an URL and use prompt() but the output/prompt part is turned of during make test. Even w/ CURL_TEST_URL set, they all hang waiting for input. # Read URL to get, defaulting to environment variable if supplied my $defurl=$ENV{CURL_TEST_URL} || ""; my $url = prompt("# Please enter an URL to fetch",$defurl); if (!$url) { prompt is from ExtUtils::MakeMaker. I'd guess you want to decide to use the defurl first if in cpan/make test mode or supply a set of real default URLs. Note the 13slowleak seems to hang. This is Darwin 10.5 x86 perl, v5.8.8 built for darwin-thread-multi-2level curl 7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3 Protocols: tftp ftp telnet dict ldap http file https ftps Features: GSS-Negotiate IPv6 Largefile NTLM SSL libz but i don't think that matters.
From: andy_bach [...] wiwb.uscourts.gov
except for 08ssl test 18: not ok 18 test https://www.passport.net/ verify=0/level=0 expected pass - 28 and # perl t/13slowleak.t # Please enter an URL to fetch [http://www.google.com] 1..2 ok 1 [hung] # perl t/17slist.t # Please enter an URL to fetch [http://www.google.com] 1..0 # need a real 'printenv' cgi script for this test (note - missing newline on end of error msg) assume these were meant to fail: # perl t/19basic-back.t 1..0 # TODO skipping broken backwards namespace test # perl t/20basic-back-func.t 1..0 # TODO skipping broken backwards namespace test installing 3.02 and the test (when you can see the prompt) succeed. the tests in t/new seem to all succeed also. a
Hi Andy, I've put in a non-empty default URL (www.google.com) in 3.12. My understanding is that the CPAN module should run the make test without any standard input, so MakeMaker::prompt should pick this default value. It works for me when I do a 'make test < /dev/null', but the intention is to use Test::Harness to do this properly in the upcoming WWW::Curl 4, which will be dropping support for perl < 5.6
Subject: Re: [rt.cpan.org #33579] test 01basic (CURL_TEST_URL) others hang due to prompt for test URL (3.02)
Date: Wed, 27 Feb 2008 16:14:19 -0600
To: bug-WWW-Curl [...] rt.cpan.org
From: Andy_Bach [...] wiwb.uscourts.gov
Okay, I just tried 3.11 from cpan (and it fails due to missing Share.pm.in) and building by hand (commented out the Share.pm Makefile chunk) got export CURL_TEST_URL=www.google.com make test < /dev/null to pass all tests. Seems 3.12 has fixed that, though t/07ftp-upload..............skipped: No test ftp URL supplied - skipping test needs CURL_TEST_URL_FTP - maybe the Makefile could ask for that stuff. t/08ssl..................... Failed 2/21 subtests t/17slist...................skipped: need a real 'printenv' cgi script for this test Test Summary Report ------------------- t/08ssl.t (Wstat: 0 Tests: 21 Failed: 2) Failed test number(s): 7, 9 appears: test https://65.205.248.243/ verify=0/level=2 expected fail - 0 test https://65.205.249.60/ verify=0/level=2 expected fail - 0 succeed unexpectedly. Do see cc -c -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -Wall -pipe -DVERSION=\"3.12\" -DXS_VERSION=\"3.12\" -fPIC "-I/usr/lib/perl5/5.8.3/i586-linux-thread-multi/CORE" Curl.c Curl.xs: In function `fwrite_wrapper2': Curl.xs:347: warning: unused variable `sv' Curl.c: In function `XS_WWW__Curl__Easy_init': Curl.c:652: warning: unused variable `ix' Curl.c: In function `XS_WWW__Curl__Easy_version': Curl.c:777: warning: unused variable `items' Curl.c: In function `XS_WWW__Curl__Easy_internal_setopt': Curl.c:950: warning: unused variable `option' Curl.c:951: warning: unused variable `value' Curl.c: In function `XS_WWW__Curl__Form_add': Curl.c:1215: warning: unused variable `name' Curl.c:1216: warning: unused variable `value' Curl.c: In function `XS_WWW__Curl__Form_addfile': Curl.c:1246: warning: unused variable `filename' Curl.c:1247: warning: unused variable `description' Curl.c:1248: warning: unused variable `type' Curl.xs: At top level: Curl.xs:535: warning: `passwd_callback_func' defined but not used Running Mkbootstrap for WWW::Curl () which compares to the 3.02 make cc -c -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -Wall -pipe -DVERSION=\"3.02\" -DXS_VERSION=\"3.02\" -fPIC "-I/usr/lib/perl5/5.8.3/i586-linux-thread-multi/CORE" Curl.c Curl.xs: In function `fwrite_wrapper': Curl.xs:256: warning: unused variable `sv' Curl.c: In function `XS_WWW__Curl__Easy_init': Curl.c:546: warning: unused variable `ix' Curl.c: In function `XS_WWW__Curl__Easy_version': Curl.c:665: warning: unused variable `items' Curl.c: In function `XS_WWW__Curl__Easy_internal_setopt': Curl.c:809: warning: unused variable `option' Curl.c:810: warning: unused variable `value' Curl.c: In function `XS_WWW__Curl__Form_add': Curl.c:1041: warning: unused variable `name' Curl.c:1042: warning: unused variable `value' Curl.c: In function `XS_WWW__Curl__Form_addfile': Curl.c:1072: warning: unused variable `filename' Curl.c:1073: warning: unused variable `description' Curl.c:1074: warning: unused variable `type' Curl.xs: At top level: Curl.xs:431: warning: `passwd_callback_func' defined but not used Running Mkbootstrap for WWW::Curl () ------------------- Andy Bach Systems Mangler Internet: andy_bach@wiwb.uscourts.gov Voice: (608) 261-5738 Fax: 264-5932 To avoide the tediouse repetition of these woordes: is equalle to: I will settle as I doe often in woorke use, a paire of paralleles, or gemowe [twin] lines of one lengthe: =, bicause noe .2. thynges, can be moare equalle. Robert Recorde 1557 - Even more interesting stuff! http://www-history.mcs.st-and.ac.uk/Biographies/Recorde.htmlI'd
The test suite has been reworked in 4.00, so this should be fixed now. Let me know if you encounter any problems with the new suite.