forked from miyagawa/cpanminus
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Look for blib/arch as well for FCGI.pm.
WTF is this anyway? PM => {'FCGI.pm' => '$(INST_ARCHLIBDIR)/FCGI.pm'},
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use strict; | ||
use Test::More; | ||
use JSON; | ||
use Config; | ||
use xt::Run; | ||
|
||
my $local_lib = "$ENV{PERL_CPANM_HOME}/perl5"; | ||
run "-L", $local_lib, "FLORA/FCGI-0.74.tar.gz"; | ||
|
||
my $file = "$local_lib/lib/perl5/$Config{archname}/.meta/FCGI-0.74/install.json"; | ||
|
||
open my $in, "<", $file or die $!; | ||
|
||
my $data = JSON::decode_json(join "", <$in>); | ||
is $data->{name}, "FCGI"; | ||
ok exists $data->{provides}{FCGI}; | ||
|
||
done_testing; | ||
|