1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Description: Fix signature tests
Fix signature tests by defaulting to verify(skip=>1) when
$ENV{TEST_SIGNATURE} is true.
Origin: upstream, https://github.com/audreyt/module-signature/commit/89d6750522c946e257ec2cea217731e0cec7b78f
Bug: https://github.com/audreyt/module-signature/issues/7
Forwarded: not-needed
Author: Audrey Tang <audreyt@audreyt.org>
Reviewed-by: Salvatore Bonaccorso <carnil@debian.org>
Last-Update: 2015-05-14
Applied-Upstream: 0.76
--- a/lib/Module/Signature.pm
+++ b/lib/Module/Signature.pm
@@ -67,7 +67,7 @@ sub _cipher_map {
}
sub verify {
- my %args = ( @_ );
+ my %args = ( skip => $ENV{TEST_SIGNATURE}, @_ );
my $rv;
(-r $SIGNATURE) or do {
@@ -928,6 +928,9 @@ If you are already using B<Test::More> f
straightforward version of F<t/0-signature.t> can be found in the
B<Module::Signature> distribution.
+Note that C<MANIFEST.SKIP> is considered by default only when
+C<$ENV{TEST_SIGNATURE}> is set to a true value.
+
Also, if you prefer a more full-fledged testing package, and are
willing to inflict the dependency of B<Module::Build> on your users,
Iain Truskett's B<Test::Signature> might be a better choice.
|