Subject: | can't build in CPAN |
I can't figure this out. If I unpack the module and build it with `perl Makefile.PL; make; make test` all the tests run fine. If I install it with CPAN, it breaks.
ib/lib', 'blib/arch')" t/*.t
t/00-load.t ............. 1/1 # Testing AnyEvent::HTTPD 0.93, Perl 5.020000, /ntfhome/local/bin/perl
t/00-load.t ............. ok
t/01_basic_request.t .... ok
t/02_simple_requests.t .. ok
t/03_keep_alive.t ....... ok
t/04_param.t ............ ok
t/05_mp_param.t ......... ok
t/06_long_resp.t ........ ok
t/07_param_semicolon.t .. ok
t/10_allowed_methods.t .. 1/12
# Failed test 'resp GET 200 OK'
# at t/10_allowed_methods.t line 37.
# {
# 'HTTPVersion' => '1.0',
# 'Reason' => 'Unable to connect',
# 'Status' => 500,
# 'URL' => 'http://127.0.0.1:53919/foo',
# 'connection' => 'close',
# 'content-type' => 'text/html',
# 'server' => 'tinyproxy/1.8.3'
# }
# Failed test 'resp GET body OK'
# at t/10_allowed_methods.t line 39.
# <?xml version="1.0" encoding="UTF-8" ?>
# <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
#
# <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
#
# <head>
# <title>500 Unable to connect</title>
# <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
# </head>
#
# <body>
#
# <h1>Unable to connect</h1>
#
# <p>Tinyproxy was unable to connect to the remote web server.</p>
#
# <hr />
#
# <p><em>Generated by <a href="https://banu.com/tinyproxy/">tinyproxy</a> version 1.8.3.</em></p>
#
# </body>
#
# </html>
# Failed test 'resp POST 200 OK'
# at t/10_allowed_methods.t line 53.
# {
# 'HTTPVersion' => '1.0',
# 'Reason' => 'Unable to connect',
# 'Status' => 500,
# 'URL' => 'http://127.0.0.1:53919/foo',
# 'connection' => 'close',
# 'content-type' => 'text/html',
# 'server' => 'tinyproxy/1.8.3'
# }
# Failed test 'resp POST body OK'
# at t/10_allowed_methods.t line 55.
# <?xml version="1.0" encoding="UTF-8" ?>
# <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
#
# <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
#
# <head>
# <title>500 Unable to connect</title>
# <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
# </head>
#
# <body>
#
# <h1>Unable to connect</h1>
#
# <p>Tinyproxy was unable to connect to the remote web server.</p>
#
# <hr />
#
# <p><em>Generated by <a href="https://banu.com/tinyproxy/">tinyproxy</a> version 1.8.3.</em></p>
#
# </body>
#
# </html>
# Failed test 'resp HEAD 200 OK'
# at t/10_allowed_methods.t line 68.
# {
# 'HTTPVersion' => '1.0',
# 'Reason' => 'Unable to connect',
# 'Status' => 500,
# 'URL' => 'http://127.0.0.1:53919/foo',
# 'connection' => 'close',
# 'content-type' => 'text/html',
# 'server' => 'tinyproxy/1.8.3'
# }
# Failed test 'resp OPTIONS 501'
# at t/10_allowed_methods.t line 81.
# {
# 'HTTPVersion' => '1.0',
# 'Reason' => 'Unable to connect',
# 'Status' => 500,
# 'URL' => 'http://127.0.0.1:53919/foo',
# 'connection' => 'close',
# 'content-type' => 'text/html',
# 'server' => 'tinyproxy/1.8.3'
# }
# Failed test 'planned to run 12 but done_testing() expects 8'
# at /ntfhome/local/lib/perl5/site_perl/5.20.0/Test/More.pm line 220.
# Looks like you planned 12 tests but ran 9.
# Looks like you failed 7 tests of 9 run.
t/10_allowed_methods.t .. Dubious, test returned 7 (wstat 1792, 0x700)
Failed 10/12 subtests
t/11_denied_methods.t ... 1/13
# Failed test 'resp GET 200 OK'
# at t/11_denied_methods.t line 42.
# {
# 'HTTPVersion' => '1.0',
# 'Reason' => 'Unable to connect',
# 'Status' => 500,
# 'URL' => 'http://127.0.0.1:55617/foo',
# 'connection' => 'close',
# 'content-type' => 'text/html',
# 'server' => 'tinyproxy/1.8.3'
# }
# Failed test 'resp GET body OK'
# at t/11_denied_methods.t line 44.
# <?xml version="1.0" encoding="UTF-8" ?>
# <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
#
# <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
#
# <head>
# <title>500 Unable to connect</title>
# <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
# </head>
#
# <body>
#
# <h1>Unable to connect</h1>
#
# <p>Tinyproxy was unable to connect to the remote web server.</p>
#
# <hr />
#
# <p><em>Generated by <a href="https://banu.com/tinyproxy/">tinyproxy</a> version 1.8.3.</em></p>
#
# </body>
#
# </html>
# Failed test 'resp POST 501'
# at t/11_denied_methods.t line 58.
# {
# 'HTTPVersion' => '1.0',
# 'Reason' => 'Unable to connect',
# 'Status' => 500,
# 'URL' => 'http://127.0.0.1:55617/foo',
# 'connection' => 'close',
# 'content-type' => 'text/html',
# 'server' => 'tinyproxy/1.8.3'
# }
# Failed test 'resp HEAD 200 OK'
# at t/11_denied_methods.t line 73.
# {
# 'HTTPVersion' => '1.0',
# 'Reason' => 'Unable to connect',
# 'Status' => 500,
# 'URL' => 'http://127.0.0.1:55617/foo',
# 'connection' => 'close',
# 'content-type' => 'text/html',
# 'server' => 'tinyproxy/1.8.3'
# }
# Failed test 'resp OPTIONS OK'
# at t/11_denied_methods.t line 86.
# {
# 'HTTPVersion' => '1.0',
# 'Reason' => 'Unable to connect',
# 'Status' => 500,
# 'URL' => 'http://127.0.0.1:55617/foo',
# 'connection' => 'close',
# 'content-type' => 'text/html',
# 'server' => 'tinyproxy/1.8.3'
# }
# Failed test 'planned to run 13 but done_testing() expects 7'
# at /ntfhome/local/lib/perl5/site_perl/5.20.0/Test/More.pm line 220.
# Looks like you planned 13 tests but ran 8.
# Looks like you failed 6 tests of 8 run.
t/11_denied_methods.t ... Dubious, test returned 6 (wstat 1536, 0x600)
Failed 11/13 subtests
t/12_head_no_body.t ..... ok
t/14_header_unset.t ..... ok
t/pod.t ................. ok
Test Summary Report
-------------------
t/10_allowed_methods.t (Wstat: 1792 Tests: 9 Failed: 7)
Failed tests: 2-7, 9
Non-zero exit status: 7
Parse errors: Bad plan. You planned 12 tests but ran 9.
t/11_denied_methods.t (Wstat: 1536 Tests: 8 Failed: 6)
Failed tests: 2-4, 6-8
Non-zero exit status: 6
Parse errors: Bad plan. You planned 13 tests but ran 8.
Files=13, Tests=56, 5 wallclock secs ( 0.05 usr 0.05 sys + 1.96 cusr 0.50 csys = 2.56 CPU)
Result: FAIL
Failed 2/13 test programs. 13/56 subtests failed.
make: *** [test_dynamic] Error 255
ELMEX/AnyEvent-HTTPD-0.93.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports ELMEX/AnyEvent-HTTPD-0.93.tar.gz
Stopping: 'install' failed for 'AnyEvent::HTTPD'.
Failed during this command:
ELMEX/AnyEvent-HTTPD-0.93.tar.gz : make_test NO