Subject: | System perl used in tests |
Test suite fails on some systems:
unable to load certificate
139894087108240:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE
Can't locate Crypt/OpenSSL/X509.pm in @INC (you may need to install the Crypt::OpenSSL::X509 module) (@INC contains: lib /home/cpansand/.cpan/build/2015080715/HTTP-PublicKeyPins-0.08-HU5kAh/blib/lib /home/cpansand/.cpan/build/2015080715/HTTP-PublicKeyPins-0.08-HU5kAh/blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at lib/HTTP/PublicKeyPins.pm line 6.
BEGIN failed--compilation aborted at lib/HTTP/PublicKeyPins.pm line 6.
Compilation failed in require at bin/hpkp_pin_sha256 line 6.
BEGIN failed--compilation aborted at bin/hpkp_pin_sha256 line 6.
Use of uninitialized value $pin in scalar chomp at t/01-pin.t line 32.
# Looks like you planned 28 tests but ran 27.
# Looks like your test exited with 255 just after 27.
t/01-pin.t ........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/28 subtests
(less 4 skipped subtests: 23 okay)
Looking at @INC it seems that Debian's system perl is used here. Probably you have to make sure that the perl used for building the distribution is also used throughout the tests (e.g. by using $^X if appropriate).