File: 2-cygwin.t

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 (21 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl -w
use strict;

use Module::Signature;
use Test::More;

if ($^O ne 'cygwin') {
    plan skip_all => "Cygwin only tests";
}
elsif (! $ENV{TEST_CYGWIN_GNUPG} ) {
    plan skip_all => 'Set the environment variable TEST_CYGWIN_GNUPG to enable this test';
}
elsif (! -x '/usr/local/bin/gpg') {
    plan skip_all => '/usr/local/bin/gpg not found';
}

plan tests => 1;

my $version = Module::Signature::_has_gpg();

like($version, qr/^\d+\.\d+\.\d+$/, "gpg version detected");