File: Fix-signature-tests.patch

package info (click to toggle)
libmodule-signature-perl 0.68-1%2Bdeb7u3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 484 kB
  • sloc: perl: 2,031; makefile: 5
file content (32 lines) | stat: -rw-r--r-- 1,172 bytes parent folder | download
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.