I am trying to install the module Date::ICal and it is failing one of the tests. The output is:
Running make test for RBOW/Date-ICal-2.678.tar.gz
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00load.t ........ ok
t/01sanity.t ...... 1/?
# Failed test 'Epoch time of 0'
# at t/01sanity.t line 13.
# got: '3155760000'
# expected: '0'
# Failed test 'Time should be stored in UTC anyway, right?'
# at t/01sanity.t line 28.
# got: '3155760000'
# expected: '0'
# Looks like you failed 2 tests of 22.
t/01sanity.t ...... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/22 subtests
t/02normalize.t ... ok
t/03components.t .. ok
t/04epoch.t ....... 1/?
# Failed test 'creation test from epoch (compare to epoch)'
# at t/04epoch.t line 8.
# got: '3155760000'
# expected: '0'
# Failed test 'creation test from epoch = 3600 (compare to epoch)'
# at t/04epoch.t line 19.
# got: '3155763600'
# expected: '3600'
# Looks like you failed 2 tests of 18.
t/04epoch.t ....... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/18 subtests
Failed 2/18 subtests
t/05ical.t ........ ok
t/06add.t ......... ok
t/07compare.t ..... ok
t/08offset.t ...... 1/?
# Failed test 'creation test from epoch (compare to epoch)'
# at t/08offset.t line 8.
# Looks like you failed 1 test of 30.
t/08offset.t ...... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/30 subtests
t/09greg.t ........ ok
t/10subtract.t .... ok
t/11duration.t .... ok
I have tried this on a Raspberry Pi3 and also in the Ubuntu app on Windows 11, with the same results on both.
It looks like they are both adding an offset of 3155760000 to the epoch. Any ideas why and how to fix it?
It looks like something is off by a year (3155760000 seconds in a year, roughly π*10^9). The module hasn't been updated in a year, and the warning in the module says not to use it:
Please note that this module is long-since abandoned. While I do accept
patches, and occasionally apply them, for the most part it is
recommended that you move off of this module and use the various modules
developed by the datetime project. You can find out more about the
datetime project at http://datetime.perl.org/
If you are installing this for some legacy thing, does the current version of the module match what you were using before?
Related
This is very similar to my recent question except that this time, the smoke tests of CGI::Github::Webhook are fine on Travis CI as well as locally (both, with the OS installed Perl 5.22 and with a Perl 5.24 built and installed via Perlbrew, see below), but fail in all but one CPAN Testers report.
The most common error there looks like this:
PERL_DL_NONLAZY=1 "/bbbike/perl-5.24.0/bin/perl5.24.0" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/auth-fail.t ............ ok
t/author-critic.t ........ skipped: these tests are for testing by the author
t/author-pod-coverage.t .. skipped: these tests are for testing by the author
t/author-pod-syntax.t .... skipped: these tests are for testing by the author
t/basic-functionality.t .. ok
Attempt to reload List/Util.pm aborted.
Compilation failed in require at /bbbike/perl-5.24.0/lib/site_perl/5.24.0/Sub/Exporter/Progressive.pm line 9.
BEGIN failed--compilation aborted at /bbbike/perl-5.24.0/lib/site_perl/5.24.0/Sub/Exporter/Progressive.pm line 9.
Compilation failed in require at /bbbike/perl-5.24.0/lib/site_perl/5.24.0/Devel/GlobalDestruction.pm line 11.
BEGIN failed--compilation aborted at /bbbike/perl-5.24.0/lib/site_perl/5.24.0/Devel/GlobalDestruction.pm line 11.
Compilation failed in require at /bbbike/perl-5.24.0/lib/site_perl/5.24.0/Moo/_Utils.pm line 26.
BEGIN failed--compilation aborted at /bbbike/perl-5.24.0/lib/site_perl/5.24.0/Moo/_Utils.pm line 26.
Compilation failed in require at /bbbike/perl-5.24.0/lib/site_perl/5.24.0/Moo.pm line 12.
BEGIN failed--compilation aborted at /bbbike/perl-5.24.0/lib/site_perl/5.24.0/Moo.pm line 12.
Compilation failed in require at /tmpfs/.cpan-build-cpansand/2016060903/CGI-Github-Webhook-0.04-pS8kOL/blib/lib/CGI/Github/Webhook.pm line 11.
BEGIN failed--compilation aborted at /tmpfs/.cpan-build-cpansand/2016060903/CGI-Github-Webhook-0.04-pS8kOL/blib/lib/CGI/Github/Webhook.pm line 11.
Compilation failed in require at ./cgitest.pl line 10.
BEGIN failed--compilation aborted at ./cgitest.pl line 10.
script /cgi-bin/cgitest.pl generated no valid headers at /opt/perl-5.24.0/lib/site_perl/5.24.0/CGI/Test.pm line 468.
Use of uninitialized value $in_fname in unlink at /opt/perl-5.24.0/lib/site_perl/5.24.0/CGI/Test.pm line 469.
Use of uninitialized value $in_fname in concatenation (.) or string at /opt/perl-5.24.0/lib/site_perl/5.24.0/CGI/Test.pm line 469.
can't unlink : No such file or directory at /opt/perl-5.24.0/lib/site_perl/5.24.0/CGI/Test.pm line 469.
Locally with my perlbrew-built Perl 5.24 it looks like this:
[…]-Github-Webhook-0.04 → perlbrew use 5.24.0
[…]-Github-Webhook-0.04 → which perl
/home/abe/perl5/perlbrew/perls/perl-5.24.0/bin/perl
[…]-Github-Webhook-0.04 → perl -v
This is perl 5, version 24, subversion 0 (v5.24.0) built for x86_64-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2016, Larry Wall
Perl may be copied […]
[…]-Github-Webhook-0.04 → perl Makefile.PL
Generating a Unix-style Makefile
Writing Makefile for CGI::Github::Webhook
Writing MYMETA.yml and MYMETA.json
[…]-Github-Webhook-0.04 → prove -l
t/auth-fail.t ............ ok
t/author-critic.t ........ skipped: these tests are for testing by the author
t/author-pod-coverage.t .. skipped: these tests are for testing by the author
t/author-pod-syntax.t .... skipped: these tests are for testing by the author
t/basic-functionality.t .. ok
t/cgi-test-auth-fail.t ... ok
t/cgi-test.t ............. ok
t/methods-non-json.t ..... ok
t/methods.t .............. ok
t/release-kwalitee.t ..... skipped: these tests are for release candidate testing
All tests successful.
Files=10, Tests=52, 1 wallclock secs ( 0.04 usr 0.00 sys + 0.66 cusr 0.07 csys = 0.77 CPU)
Result: PASS
Even if I call it the very same way as done in the CPAN Testers report, it does not fail for me:
[…]-Github-Webhook-0.04 → PERL_DL_NONLAZY=1 /home/abe/perl5/perlbrew/perls/perl-5.24.0/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/auth-fail.t ............ ok
t/author-critic.t ........ skipped: these tests are for testing by the author
t/author-pod-coverage.t .. skipped: these tests are for testing by the author
t/author-pod-syntax.t .... skipped: these tests are for testing by the author
t/basic-functionality.t .. ok
t/cgi-test-auth-fail.t ... ok
t/cgi-test.t ............. ok
t/methods-non-json.t ..... ok
t/methods.t .............. ok
t/release-kwalitee.t ..... skipped: these tests are for release candidate testing
All tests successful.
Files=10, Tests=52, 1 wallclock secs ( 0.02 usr 0.02 sys + 0.68 cusr 0.05 csys = 0.77 CPU)
Result: PASS
But I fail to see why I can't reproduce those errors despite nearly every CPAN Testers report fails for the 0.04 version.
You are probably getting a different mix of libraries with perlbrew than with a vanilla cpan install. From your error messages, it looks like a few dependencies are missing.
I tried installing through cpan on perl (5.20.1), the tests seem to fail due to a warning getting inserted into the cgi output by Path::Tiny
cpan CGI::Github::Webhook
... skipping dependencies ...
CGI::Test is up to date (1.111).
ABE/CGI-Github-Webhook-0.04.tar.gz
Has already been unwrapped into directory /home/felix/.cpan/build/CGI-Github-Webhook-0.04-10wq5g
ABE/CGI-Github-Webhook-0.04.tar.gz
Has already been prepared
Running make for A/AB/ABE/CGI-Github-Webhook-0.04.tar.gz
cp static-badges/errored.png blib/lib/auto/share/module/CGI-Github-Webhook/errored.png
cp static-badges/failed.svg blib/lib/auto/share/module/CGI-Github-Webhook/failed.svg
cp static-badges/failed.png blib/lib/auto/share/module/CGI-Github-Webhook/failed.png
cp static-badges/success.svg blib/lib/auto/share/module/CGI-Github-Webhook/success.svg
cp static-badges/errored.svg blib/lib/auto/share/module/CGI-Github-Webhook/errored.svg
cp static-badges/success.png blib/lib/auto/share/module/CGI-Github-Webhook/success.png
cp lib/CGI/Github/Webhook.pm blib/lib/CGI/Github/Webhook.pm
Manifying 1 pod document
ABE/CGI-Github-Webhook-0.04.tar.gz
/usr/bin/make -- OK
Running make test
Skip blib/lib/auto/share/module/CGI-Github-Webhook/success.png (unchanged)
Skip blib/lib/auto/share/module/CGI-Github-Webhook/errored.svg (unchanged)
Skip blib/lib/auto/share/module/CGI-Github-Webhook/failed.svg (unchanged)
Skip blib/lib/auto/share/module/CGI-Github-Webhook/errored.png (unchanged)
Skip blib/lib/auto/share/module/CGI-Github-Webhook/failed.png (unchanged)
Skip blib/lib/auto/share/module/CGI-Github-Webhook/success.svg (unchanged)
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/auth-fail.t ............ 1/3
# Failed test 'CGI output as expected'
# at t/auth-fail.t line 28.
# got: 'Unrecognized option(s) passed to make_path(): err at /usr/local/share/perl/5.20.1/Path/Tiny.pm line 1117.
# Content-Type: text/plain; charset=utf-8
#
# Authentication failed
# '
# expected: 'Content-Type: text/plain; charset=utf-8
#
# Authentication failed
# '
# Looks like you failed 1 test of 3.
t/auth-fail.t ............ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests
t/author-critic.t ........ skipped: these tests are for testing by the author
t/author-pod-coverage.t .. skipped: these tests are for testing by the author
t/author-pod-syntax.t .... skipped: these tests are for testing by the author
t/basic-functionality.t .. 1/12
# Failed test 'CGI output as expected'
# at t/basic-functionality.t line 33.
# got: 'Unrecognized option(s) passed to make_path(): err at /usr/local/share/perl/5.20.1/Path/Tiny.pm line 1117.
# Content-Type: text/plain; charset=utf-8
#
# Successfully triggered
# '
# expected: 'Content-Type: text/plain; charset=utf-8
#
# Successfully triggered
# '
# Failed test 'CGI output as expected'
# at t/basic-functionality.t line 65.
# got: 'Unrecognized option(s) passed to make_path(): err at /usr/local/share/perl/5.20.1/Path/Tiny.pm line 1117.
# Content-Type: text/plain; charset=utf-8
#
# Trigger failed
# '
# expected: 'Content-Type: text/plain; charset=utf-8
#
# Trigger failed
# '
# Looks like you failed 2 tests of 12.
t/basic-functionality.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/12 subtests
t/cgi-test-auth-fail.t ... ok
t/cgi-test.t ............. ok
t/methods-non-json.t ..... Unrecognized option(s) passed to make_path(): err at /usr/local/share/perl/5.20.1/Path/Tiny.pm line 1117.
t/methods-non-json.t ..... ok
t/methods.t .............. Unrecognized option(s) passed to make_path(): err at /usr/local/share/perl/5.20.1/Path/Tiny.pm line 1117.
t/methods.t .............. ok
t/release-kwalitee.t ..... skipped: these tests are for release candidate testing
Test Summary Report
-------------------
t/auth-fail.t (Wstat: 256 Tests: 3 Failed: 1)
Failed test: 2
Non-zero exit status: 1
t/basic-functionality.t (Wstat: 512 Tests: 12 Failed: 2)
Failed tests: 2, 8
Non-zero exit status: 2
Files=10, Tests=52, 3 wallclock secs ( 0.10 usr 0.02 sys + 2.41 cusr 0.25 csys = 2.78 CPU)
Result: FAIL
Failed 2/10 test programs. 3/52 subtests failed.
Makefile:878: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
ABE/CGI-Github-Webhook-0.04.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports ABE/CGI-Github-Webhook-0.04.tar.gz
Here is a stacktrace for that warning:
cpan look CGI::Github::Webhook
/.cpan/build/CGI-Github-Webhook-0.04-wA0tww/t $ perl -d -I../lib cgi/basic.pl 'echo foo'
Loading DB routines from perl5db.pl version 1.44
Editor support available.
Enter h or 'h h' for help, or 'man perldebug' for more help.
Unrecognized option(s) passed to make_path(): err at /usr/local/share/perl/5.20.1/Path/Tiny.pm line 1117.
at /usr/local/share/perl/5.20.1/File/Path.pm line 115.
File::Path::mkpath("/tmp/XtmjrOLDl8/auto/share/module") called at /usr/local/share/perl/5.20.1/Path/Tiny.pm line 1117
Path::Tiny::mkpath(Path::Tiny=ARRAY(0xa6e67cc)) called at /usr/local/share/perl/5.20.1/Test/File/ShareDir/TempDirObject.pm line 75
Test::File::ShareDir::TempDirObject::_module_tempdir(Test::File::ShareDir::TempDirObject=HASH(0xa5b316c)) called at /usr/local/share/perl/5.20.1/Test/File/ShareDir/TempDirObject.pm line 112
Test::File::ShareDir::TempDirObject::_module_share_target_dir(Test::File::ShareDir::TempDirObject=HASH(0xa5b316c), "CGI::Github::Webhook") called at /usr/local/share/perl/5.20.1/Test/File/ShareDir/TempDirObject.pm line 132
Test::File::ShareDir::TempDirObject::_install_module(Test::File::ShareDir::TempDirObject=HASH(0xa5b316c), "CGI::Github::Webhook") called at /usr/local/share/perl/5.20.1/Test/File/ShareDir.pm line 60
Test::File::ShareDir::import("Test::File::ShareDir", "-share", HASH(0xa416f90)) called at cgi/basic.pl line 9
main::BEGIN() called at cgi/basic.pl line 13
eval {...} called at cgi/basic.pl line 13
main::(cgi/basic.pl:16): my $cgi = CGI->new();
I'm trying to use Perlbrew to install Perl on a CENTOS Linux server. I've tried installing several versions of 5.16, 5.18. and 5.20, but they all seem to fail the same tests with 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
I've noticed that 140_proxy.t is trying to use http://localhost:8080 as a server test. However, we already have an httpd running on that port. 002_croakage.t doesn't even contain any tests.
So,
Are these generally known to be bad tests?
Is this an issue that others have run into?
Does this have anything to do with our current service running on port 8080?
Would there be an issue if I did a force install?
And, why is HTTP::Tiny running tests? It's not a standard Perl module that comes with the installation.
Try without your service running on 8080? I'm guessing that's the only reason you are getting failures, but the only way to know for certain is to try.
There are a few failing test reports but not with the errors you are getting and all relating to connecting to an external server (google, github, twitter).
And, why is HTTP::Tiny running tests? It's not a standard Perl module that comes with the installation.
It is a standard Perl module that comes with the Perl distribution, since Perl 5.13.9.
I'm trying to install Time::Out.
The error looks to be coming from the tar file. Do I need to install anything more? I get the following:
install Time::Out
Reading 'C:\Perl\cpan\Metadata'
Database was generated on Thu, 05 Jun 2014 08:53:02 GMT
Running install for module 'Time::Out'
Checksum for C:\Perl\cpan\sources\authors\id\P\PA\PATL\Time-Out-0.11.tar.gz ok
Scanning cache C:\Perl/cpan/build for sizes
............................................................................DONE
Time-Out-0.11/
Time-Out-0.11/MANIFEST
Time-Out-0.11/t/
Time-Out-0.11/t/01_init.t
Time-Out-0.11/t/pod.t
Time-Out-0.11/t/03_exceptions.t
Time-Out-0.11/t/02_usage.t
Time-Out-0.11/Out.pod
Time-Out-0.11/README
Time-Out-0.11/Out.pm
Time-Out-0.11/META.yml
Time-Out-0.11/Makefile.PL
Time-Out-0.11/Changes
Configuring P/PA/PATL/Time-Out-0.11.tar.gz with Makefile.PL
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Time::Out
Writing MYMETA.yml and MYMETA.json
PATL/Time-Out-0.11.tar.gz
C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site -- OK
Running make for P/PA/PATL/Time-Out-0.11.tar.gz
cp Out.pm blib\lib\Time\Out.pm
cp Out.pod blib\lib\Time\Out.pod
PATL/Time-Out-0.11.tar.gz
C:\Perl\site\bin\dmake.exe -- OK
Running make test
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Te
st::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/01_init.t ........ ok
t/02_usage.t .......
The following tests use sleep() so please be patient...
t/02_usage.t ....... 10/15 # Failed test 11 in t/02_usage.t at line 97
# t/02_usage.t line 97 is: ok($# eq 'timeout') ;
t/02_usage.t ....... 11/15 # Failed test 12 in t/02_usage.t at line 108
# t/02_usage.t line 108 is: ok($# eq 'timeout') ;
# Failed test 13 in t/02_usage.t at line 109
# t/02_usage.t line 109 is: ok(!$seen) ;
t/02_usage.t ....... Failed 3/15 subtests
(less 1 skipped subtest: 11 okay)
t/03_exceptions.t .. ok
t/pod.t ............ skipped: Test::Pod 1.00 required for testing POD
Test Summary Report
-------------------
t/02_usage.t (Wstat: 0 Tests: 15 Failed: 3)
Failed tests: 11-13
Files=4, Tests=19, 23 wallclock secs ( 0.09 usr + 0.05 sys = 0.14 CPU)
Result: FAIL
Failed 1/4 test programs. 3/19 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
PATL/Time-Out-0.11.tar.gz
C:\Perl\site\bin\dmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PATL/Time-Out-0.11.tar.gz
Failed during this command:
PATL/Time-Out-0.11.tar.gz : make_test NO
Is there another module I can use similar to the Time::Out? Besides alarm?
Per the Time::Out documentation, it does not work for blocking IO on windows. This means - at a minimum - that the tests will fail. You can skip the tests from the cpan shell using force install Time::Out, but this may mean that it doesn't work for your purposes.
I'm trying to install Perl module Crypt::DSA but it's not working. Unfortunately, there's nothing much i could find on Internet.
Here's the detail:
[root#jenkins_slave Crypt-DSA-1.17]# perl Makefile.PL
Generating a Unix-style Makefile
Writing Makefile for Crypt::DSA
Writing MYMETA.yml and MYMETA.json
[root#vpc-jenkins_slave3 Crypt-DSA-1.17]# make
Skip blib/lib/Crypt/DSA/Signature.pm (unchanged)
Skip blib/lib/Crypt/DSA/Key/SSH2.pm (unchanged)
Skip blib/lib/Crypt/DSA.pm (unchanged)
Skip blib/lib/Crypt/DSA/Util.pm (unchanged)
Skip blib/lib/Crypt/DSA/KeyChain.pm (unchanged)
Skip blib/lib/Crypt/DSA/Key/PEM.pm (unchanged)
Skip blib/lib/Crypt/DSA/Key.pm (unchanged)
Manifying blib/man3/Crypt::DSA.3pm
Manifying blib/man3/Crypt::DSA::Key.3pm
Manifying blib/man3/Crypt::DSA::Key::PEM.3pm
Manifying blib/man3/Crypt::DSA::Key::SSH2.3pm
Manifying blib/man3/Crypt::DSA::KeyChain.3pm
Manifying blib/man3/Crypt::DSA::Signature.3pm
Manifying blib/man3/Crypt::DSA::Util.3pm
[root#jenkins_slave Crypt-DSA-1.17]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/00-compile.t .. 1/1 # Testing Crypt::DSA 1.17
t/00-compile.t .. ok
t/01-util.t ..... ok
t/02-sign.t ..... ok
t/03-keygen.t ... ok
t/04-pem.t ...... 1/26 Use of uninitialized value $_[3] in abs at /usr/share/perl5/vendor_perl/Convert/ASN1/_encode.pm line 83.
Use of uninitialized value $_[3] in int at /usr/share/perl5/vendor_perl/Convert/ASN1/_encode.pm line 92.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Convert/PEM.pm line 102.
# Failed test 'Load key using Crypt::DSA::key'
# at t/04-pem.t line 46.
Can't call method "p" on an undefined value at t/04-pem.t line 47.
# Looks like you planned 26 tests but ran 7.
# Looks like you failed 1 test of 7 run.
# Looks like your test exited with 255 just after 7.
t/04-pem.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 20/26 subtests
t/06-fips.t ..... 1/9 # This takes a couple of minutes on slower machines.
t/06-fips.t ..... ok
t/07-openid.t ... 1/11
# Failed test 'Parsed key'
# at t/07-openid.t line 39.
Can't call method "p" on an undefined value at t/07-openid.t line 40.
# Looks like you planned 11 tests but ran 2.
# Looks like you failed 1 test of 2 run.
# Looks like your test exited with 255 just after 2.
t/07-openid.t ... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 10/11 subtests
Test Summary Report
-------------------
t/04-pem.t (Wstat: 65280 Tests: 7 Failed: 1)
Failed test: 7
Non-zero exit status: 255
Parse errors: Bad plan. You planned 26 tests but ran 7.
t/07-openid.t (Wstat: 65280 Tests: 2 Failed: 1)
Failed test: 2
Non-zero exit status: 255
Parse errors: Bad plan. You planned 11 tests but ran 2.
Files=7, Tests=54, 464 wallclock secs ( 0.05 usr 0.05 sys + 21.05 cusr 0.19 csys = 21.34 CPU)
Result: FAIL
Failed 2/7 test programs. 2/54 subtests failed.
make: *** [test_dynamic] Error 255
I'm working on a Linux box. Any help will really be appreciated.
Solved in the comments:
Installing the module shows two dependencies for the following tests.
t/04-pem.t depends on Crypt::DES_EDE3
t/07-openid.t depends on Convert::PEM
Make sure they are up to date
I run:
perl -MCPAN -e 'install Bundle::DBD::Pg'
it asks:
Path to pg_config?
I say:
/Library/PostgreSQL/9.3/bin/pg_config
it runs... and the last lines are:
Test Summary Report
-------------------
t/02attribs.t (Wstat: 256 Tests: 249 Failed: 1)
Failed test: 23
Non-zero exit status: 1
Files=15, Tests=1691, 29 wallclock secs ( 0.23 usr 0.05 sys + 5.29 cusr 1.65 csys = 7.22 CPU)
Result: FAIL
Failed 1/15 test programs. 1/1691 subtests failed.
make: *** [test_dynamic] Error 255
TURNSTEP/DBD-Pg-2.19.3.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports TURNSTEP/DBD-Pg-2.19.3.tar.gz
Running make install
make test had returned bad status, won't install without force
I saw a DBI_USER config turn to jgp (my login) which i also created in the DB.
Any hint on where I should start?
As requested, here is the full test result:
Running make test
PGINITDB="/Library/PostgreSQL/9.3/bin/initdb" PERL_DL_NONLAZY=1 /usr/bin/perl "- MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_signature.t .... skipped: Set the environment variable TEST_SIGNATURE to enable this test
t/00basic.t ......... ok
t/01connect.t ....... Please wait, creating new database for testing
t/01connect.t ....... 1/15 #
# DBI Version 1.631
# DBD::Pg Version 2.19.3
# Perl Version 5.16.2
# OS darwin
# PostgreSQL (compiled) 90302
# PostgreSQL (target) 90302
# PostgreSQL (reported) PostgreSQL 9.3.2 on x86_64-apple-darwin, compiled by i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00), 64-bit
# Default port 5432
# DBI_DSN dbi:Pg:db="postgres";port=5440;host=<pwd>/dbdpg_test_database/data/socket
# DBI_USER jgp
# Test schema dbd_pg_testschema
# LANG C
# array_nulls on
# backslash_quote safe_encoding
# client_encoding UTF8
# server_encoding UTF8
# standard_conforming_strings on
# Adjusted: initdb
t/01connect.t ....... ok
t/01constants.t ..... ok
t/02attribs.t ....... 1/249
# Failed test 'DB handle attribute "PrintWarn" shows warnings when on'
# at t/02attribs.t line 263.
# ''
# doesn't match '(?^:dbd_pg_test_temp)'
(in cleanup) DBD::Pg::st DESTROY failed: no connection to the server at t/02attribs.t line 1558.
# Looks like you failed 1 test of 249.
t/02attribs.t ....... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/249 subtests
t/03dbmethod.t ...... ok
t/03smethod.t ....... ok
t/04misc.t .......... 1/70 # Checking pg_st_split_statement. This may take a while...
t/04misc.t .......... ok
t/06bytea.t ......... ok
t/07copy.t .......... ok
t/08async.t ......... ok
t/09arrays.t ........ ok
t/12placeholders.t .. ok
t/20savepoints.t .... ok
t/99cleanup.t ....... 1/1 Removing test database directory
t/99cleanup.t ....... ok
I must admit I am new to perl and PostgreSQL.
It looks like this has been fixed but not yet included in a new release. Apparently, "Postgres got less chatty in 9.3."
There's a developer release available on CPAN (v2.20.1_6). To install:
cpan TURNSTEP/DBD-Pg-2.20.1_6.tar.gz
or you could pull the latest source with git.
this worked for me, I only had to answer the pg_config question, to which my answer was:
/Applications/Postgres.app/Contents/Versions/9.5/bin/pg_config