I had a report that this module wouldn't build from CPAN so
I tried it on a bare system that had only just had Perl itself
installed. Once everything else to do with CPAN was
updated, I ran:
perl -MCPAN -e 'install GnuPG::Interface'
after a while I got:
t/list_secret_keys.t 4 1 25.00% 2
Failed 1/20 test scripts, 95.00% okay. 1/51 subtests failed,
98.04% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without
force
On inspection, I found a bug in the tests:
cd ~/.cpan/build/GnuPG-Interface-0.33
# vi t/list_secret_keys.t
Comment out the line that uses a file called 1.0.test
# my @files_to_test = ( 'test/secret-keys/1.0.test' );
Replace it with this line that uses the file actually written out
by the previous test.
my @files_to_test = ( 'test/secret-keys/1.out' );
It's checking for a file that it does not create and then
complaining that it doesn't exist!!
All tests were then successful and make install ran
properly.
Thank you, very useful