This is an automated email from the git hooks/post-receive script. ppm-guest pushed a commit to annotated tag v0.32 in repository libmath-prime-util-perl.
commit fa70bdde62cd761cd47a440f5a6d2da524f67c20 Author: Dana Jacobsen <d...@acm.org> Date: Tue Oct 8 13:27:29 2013 -0700 Make Test::Warn a suggested dependency -- no longer required --- Makefile.PL | 24 ++++++++++++++++++------ t/23-primality-proofs.t | 14 ++++++++++---- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 2e24249..f6573e4 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -19,9 +19,8 @@ WriteMakefile1( EXE_FILES => ['bin/primes.pl', 'bin/factor.pl'], - BUILD_REQUIRES=>{ + TEST_REQUIRES=> { 'Test::More' => '0.45', - 'Test::Warn' => 0, 'bignum' => '0.22', # 'use bigint' in tests }, PREREQ_PM => { @@ -36,14 +35,27 @@ WriteMakefile1( 'Bytes::Random::Secure' => '0.23', }, META_MERGE => { + 'meta-spec' => { + version => '2', + url => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec', + }, resources => { homepage => 'https://github.com/danaj/Math-Prime-Util', repository => 'https://github.com/danaj/Math-Prime-Util', }, - recommends => { - 'Math::Prime::Util::GMP' => 0.14, - 'Math::BigInt::GMP' => 0, - 'Math::MPFR' => 2.03, + prereqs => { + runtime => { + recommends => { + 'Math::Prime::Util::GMP' => 0.14, + 'Math::BigInt::GMP' => 0, + 'Math::MPFR' => 2.03, + }, + }, + test => { + suggests => { + 'Test::Warn' => 0, + }, + }, }, }, diff --git a/t/23-primality-proofs.t b/t/23-primality-proofs.t index 70e4a62..c4b2a54 100644 --- a/t/23-primality-proofs.t +++ b/t/23-primality-proofs.t @@ -3,13 +3,18 @@ use strict; use warnings; use Test::More; -use Test::Warn; use Math::Prime::Util qw/is_prime is_provable_prime is_provable_prime_with_cert prime_certificate verify_prime prime_get_config prime_set_config /; use Math::BigInt try => 'GMP'; +my $use_test_warn; +BEGIN { + eval "use Test::Warn"; + $use_test_warn = $@ ? 0 : 1; +} + my $extra = defined $ENV{EXTENDED_TESTING} && $ENV{EXTENDED_TESTING}; my $use64 = ~0 > 4294967295; my $broken64 = (18446744073709550592 == ~0); @@ -34,9 +39,9 @@ my @plist = qw/20907001 809120722675364249 677826928624294778921 plan tests => 0 + 2 # is_provable_prime - + 6 * scalar(@plist) + + 5 * scalar(@plist) + 6 # hand-done proofs - + 24 # borked up certificates generating warnings + + 28 # borked up certificates generate warnings + 6 # verification failures (tiny/BPSW) + 8 # verification failures (Lucas/Pratt) + 11 # verification failures (n-1) @@ -132,7 +137,8 @@ SKIP: { # Failures for verify_prime # First, let's get the borked up formats, which is should warn about. -{ +SKIP: { + skip "No Test::Warn", 28 unless $use_test_warn; my $result; warning_like { $result = verify_prime([1490266103, 'INVALID', 1, 2, 3]) } { carped => qr/^verify_prime: / }, -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmath-prime-util-perl.git _______________________________________________ Pkg-perl-cvs-commits mailing list Pkg-perl-cvs-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits