我正在尝试使用Perlbrew在CENTOS Linux服务器上安装Perl。我已经尝试安装5.16,5.18的几个版本。和5.20,但他们似乎都失败了与HTTP::Tiny
相同的测试:
../cpan/HTTP-Tiny/t/000_load.t .................................... ok
../cpan/HTTP-Tiny/t/001_api.t ..................................... ok
http_proxy URL must be in format http[s]://[auth@]<host>:<port>/
at t/002_croakage.t line 29.
../cpan/HTTP-Tiny/t/002_croakage.t ................................
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
http_proxy URL must be in format http[s]://[auth@]<host>:<port>/
at t/003_agent.t line 17.
# Looks like your test exited with 255 before it could output anything.
../cpan/HTTP-Tiny/t/003_agent.t ...................................
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 8/8 subtests
../cpan/HTTP-Tiny/t/010_url.t ..................................... ok
../cpan/HTTP-Tiny/t/020_headers.t ................................. ok
../cpan/HTTP-Tiny/t/030_response.t ................................ ok
../cpan/HTTP-Tiny/t/040_content.t ................................. ok
../cpan/HTTP-Tiny/t/050_chunked_body.t ............................ ok
../cpan/HTTP-Tiny/t/060_http_date.t ............................... ok
http_proxy URL must be in format http[s]://[auth@]<host>:<port>/
at t/070_cookie_jar.t line 23.
# Looks like your test exited with 255 before it could output anything.
../cpan/HTTP-Tiny/t/070_cookie_jar.t ..............................
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 4/4 subtests
../cpan/HTTP-Tiny/t/100_get.t ..................................... ok
../cpan/HTTP-Tiny/t/101_head.t .................................... ok
../cpan/HTTP-Tiny/t/102_put.t ..................................... ok
../cpan/HTTP-Tiny/t/103_delete.t .................................. ok
../cpan/HTTP-Tiny/t/104_post.t .................................... ok
../cpan/HTTP-Tiny/t/110_mirror.t .................................. ok
../cpan/HTTP-Tiny/t/130_redirect.t ................................ ok
https_proxy URL must be in format http[s]://[auth@]<host>:<port>/
at t/140_proxy.t line 14.
../cpan/HTTP-Tiny/t/140_proxy.t ...................................
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
http_proxy URL must be in format http[s]://[auth@]<host>:<port>/
at t/141_no_proxy.t line 13.
../cpan/HTTP-Tiny/t/141_no_proxy.t ................................
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
../cpan/HTTP-Tiny/t/150_post_form.t ............................... ok
../cpan/HTTP-Tiny/t/160_cookies.t ................................. ok
../cpan/HTTP-Tiny/t/161_basic_auth.t .............................. ok
../cpan/HTTP-Tiny/t/162_proxy_auth.t .............................. ok
../cpan/HTTP-Tiny/t/170_keepalive.t ............................... ok
Test Summary Report
-------------------
../cpan/HTTP-Tiny/t/002_croakage.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
../cpan/HTTP-Tiny/t/003_agent.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 8 tests but ran 0.
../cpan/HTTP-Tiny/t/070_cookie_jar.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 4 tests but ran 0.
../cpan/HTTP-Tiny/t/140_proxy.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
../cpan/HTTP-Tiny/t/141_no_proxy.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=2405, Tests=699314, 794 wallclock secs (70.76 usr 12.81 sys + 437.06 cusr 53.75 csys = 574.38 CPU)
Result: FAIL
make: *** [test_harness] Error 5
我注意到140_proxy.t
正在尝试使用http://localhost:8080
作为服务器测试。但是,我们已经在该端口上运行了httpd。 002_croakage.t
甚至不包含任何测试。
所以,
答案 0 :(得分:0)
尝试不在8080上运行您的服务?我猜这是你失败的唯一原因,但唯一可以确定的方法就是尝试。
有一些failing test reports但没有您收到的错误以及所有与连接到外部服务器(google,github,twitter)相关的内容。
而且,为什么HTTP :: Tiny正在运行测试?它不是安装附带的标准Perl模块。
是 Perl分发版附带的标准Perl模块,自Perl 5.13.9起。