File: extract_name_ver_from_makefile.t

package info (click to toggle)
dh-make-perl 0.70-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 984 kB
  • ctags: 203
  • sloc: perl: 4,318; makefile: 88
file content (19 lines) | stat: -rwxr-xr-x 539 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w
use strict;
use Test::More 'no_plan';
use FindBin qw($Bin);

use DhMakePerl::Command::make;
use DhMakePerl::Config;

my $maker
    = DhMakePerl::Command::make->new( { cfg => DhMakePerl::Config->new } );

eval {
    $maker->extract_name_ver_from_makefile("$Bin/makefiles/module-install-autodie.PL");
};

is($@, "", "Calling extract_name_ver_from_makefile should not die on legit file");

is($maker->perlname, "autodie", "Module name should be autodie");
is($maker->version,  "1.994",   "Module version should be 1.994");