3 # Testing of common META.yml examples
6 if( $ENV{PERL_CORE} ) {
8 @INC = ('../lib', 'lib');
11 unshift @INC, 't/lib/';
21 use File::Spec::Functions ':ALL';
22 use Parse::CPAN::Meta::Test;
23 use Test::More tests(8, 2);
29 #####################################################################
30 # Testing YAML::Tiny's META.yml file
34 abstract: Read/Write YAML files with as little code as possible
35 author: 'Adam Kennedy <cpan@ali.as>'
39 distribution_type: module
40 generated_by: Module::Install version 0.63
52 abstract => 'Read/Write YAML files with as little code as possible',
53 author => 'Adam Kennedy <cpan@ali.as>',
55 'File::Spec' => '0.80',
56 'Test::More' => '0.47',
58 distribution_type => 'module',
59 generated_by => 'Module::Install version 0.63',
63 directory => [ qw{inc t} ],
78 #####################################################################
79 # Testing a META.yml from a commercial project that crashed
83 # http://module-build.sourceforge.net/META-spec.html
84 #XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
85 name: ITS-SIN-FIDS-Content-XML
87 version_from: lib/ITS/SIN/FIDS/Content/XML.pm
93 distribution_type: module
94 generated_by: ExtUtils::MakeMaker version 6.30
97 name => 'ITS-SIN-FIDS-Content-XML',
99 version_from => 'lib/ITS/SIN/FIDS/Content/XML.pm',
100 installdirs => 'site',
102 'Test::More' => 0.45,
105 distribution_type => 'module',
106 generated_by => 'ExtUtils::MakeMaker version 6.30',
116 #####################################################################
117 # Testing various failing META.yml files from CPAN
122 abstract: Mii in Nintendo Wii data parser and builder
123 author: Toru Yamaguchi <zigorou@cpan.org>
124 distribution_type: module
125 generated_by: Module::Install version 0.65
128 url: http://module-build.sourceforge.net/META-spec-v1.3.html
130 name: Games-Nintendo-Wii-Mii
137 Class::Accessor::Fast: 0.3
147 abstract => 'Mii in Nintendo Wii data parser and builder',
148 author => 'Toru Yamaguchi <zigorou@cpan.org>',
149 distribution_type => 'module',
150 generated_by => 'Module::Install version 0.65',
153 url => 'http://module-build.sourceforge.net/META-spec-v1.3.html',
156 name => 'Games-Nintendo-Wii-Mii',
158 directory => [ qw{ inc t } ],
162 'Class::Accessor::Fast' => '0.3',
163 'File::Slurp' => '9999.12',
166 'Tie::IxHash' => '1.21',
168 'XML::LibXML' => '1.62',
172 'Games-Nintendo-Wii-Mii',
177 # http://module-build.sourceforge.net/META-spec.html
178 #XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
181 version_from: Baby.pm
186 distribution_type: module
187 generated_by: ExtUtils::MakeMaker version 6.17
190 name => 'Acme-Time-Baby',
192 version_from => 'Baby.pm',
193 installdirs => 'site',
197 distribution_type => 'module',
198 generated_by => 'ExtUtils::MakeMaker version 6.17',
207 #####################################################################
208 # File with a YAML header
216 distribution_type: module
225 distribution_type => 'module',
229 dynamic_config => '0',
240 distribution_type: module
249 distribution_type => 'module',
253 dynamic_config => '0',
262 #####################################################################
263 # Various files that fail for unknown reasons
266 my $content = load_ok(
267 'Template-Provider-Unicode-Japanese.yml',
268 catfile( test_data_directory(), 'Template-Provider-Unicode-Japanese.yml' ),
274 abstract => 'Decode all templates by Unicode::Japanese',
275 author => 'Hironori Yoshida C<< <yoshida@cpan.org> >>',
276 distribution_type => 'module',
277 generated_by => 'Module::Install version 0.65',
280 url => 'http://module-build.sourceforge.net/META-spec-v1.3.html',
283 name => 'Template-Provider-Unicode-Japanese',
285 directory => [ qw{ inc t } ],
288 'Template::Config' => 0,
289 'Unicode::Japanese' => 0,
295 'Template-Provider-Unicode-Japanese',
300 my $content = load_ok(
302 catfile( test_data_directory(), 'HTML-WebDAO.yml' ),
308 abstract => 'Perl extension for create complex web application',
310 'Zahatski Aliaksandr, E<lt>zagap@users.sourceforge.netE<gt>',
313 name => 'HTML-WebDAO',