-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ sub wanted { | |
|
||
WriteMakefile( | ||
'NAME' => 'generators', | ||
'VERSION' => '1.12', | ||
'VERSION' => '1.13', | ||
'AUTHOR' => 'Jitka Plesnikova <[email protected]>', | ||
'LICENSE' => 'gpl', | ||
'EXE_FILES' => [ "bin/perl.prov$suffix", "bin/perl.req$suffix" ], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
use strict; | ||
use warnings; | ||
use Test::More tests => 2; | ||
use Test::Simple; | ||
|
||
use lib 't/lib'; | ||
use PerlNS qw($PERL_NAMESPACE $PERL_PROV $PERL_REQ); | ||
|
||
my $perl_ns = $PERL_NAMESPACE; | ||
|
||
my $files = "t/data space/file with space"; | ||
my @requires = qx($PERL_REQ '$files'); | ||
my @provides = qx($PERL_PROV '$files'); | ||
|
||
# | ||
# Provides | ||
is(scalar(@provides), 0, 'No package is provided'); | ||
|
||
# | ||
# Requires | ||
my @expectedrequires = ( | ||
"$perl_ns(:VERSION) >= 5.10.0\n", | ||
"$perl_ns(Alpha) >= 0.12\n", | ||
"$perl_ns(Alpha::One)\n", | ||
"$perl_ns(Alpha::Two)\n", | ||
"$perl_ns(Beta)\n", | ||
"$perl_ns(Epsilon)\n", | ||
"$perl_ns(Eta)\n", | ||
"$perl_ns(ExtUtils::MM_Unix)\n", | ||
"$perl_ns(Gamma)\n", | ||
"$perl_ns(Iota)\n", | ||
"$perl_ns(Kappa)\n", | ||
"$perl_ns(Lambda)\n", | ||
"$perl_ns(Theta)\n", | ||
); | ||
|
||
is_deeply([ sort @requires ], [ sort @expectedrequires ], "Only expected requires were found."); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Inversioned Alpha should not be listed | ||
use Alpha; | ||
use Alpha 0.12; | ||
|
||
use Alpha::One; | ||
use qw(Alpha::Two); | ||
use Beta (); | ||
require Gamma; | ||
use ExtUtils::MM_Unix; | ||
|
||
eval { require Delta }; | ||
|
||
# TODO: Don't recognize more than one 'use' or 'require' at one line | ||
use Epsilon; use Zeta; | ||
|
||
require v5.6.1; | ||
require 5.006_001; | ||
use 5.010; | ||
|
||
# 'use' does not accept module name with .pm | ||
use 'Ignore.pm'; | ||
|
||
require Eta; | ||
require 'Theta.pm'; | ||
require "Iota.pm"; | ||
require q !Kappa.pm!; | ||
require qq{Lambda.pm}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters