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, 3);
29 #####################################################################
30 # Testing YAML::Tiny's own 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',
208 #####################################################################
209 # File with a YAML header
217 distribution_type: module
226 distribution_type => 'module',
230 dynamic_config => '0',
240 #####################################################################
241 # Various files that fail for unknown reasons
244 my $content = load_ok(
245 'Template-Provider-Unicode-Japanese.yml',
246 catfile( test_data_directory(), 'Template-Provider-Unicode-Japanese.yml' ),
252 abstract => 'Decode all templates by Unicode::Japanese',
253 author => 'Hironori Yoshida C<< <yoshida@cpan.org> >>',
254 distribution_type => 'module',
255 generated_by => 'Module::Install version 0.65',
258 url => 'http://module-build.sourceforge.net/META-spec-v1.3.html',
261 name => 'Template-Provider-Unicode-Japanese',
263 directory => [ qw{ inc t } ],
266 'Template::Config' => 0,
267 'Unicode::Japanese' => 0,
273 'Template-Provider-Unicode-Japanese',
279 my $content = load_ok(
281 catfile( test_data_directory(), 'HTML-WebDAO.yml' ),
287 abstract => 'Perl extension for create complex web application',
289 'Zahatski Aliaksandr, E<lt>zagap@users.sourceforge.netE<gt>',
292 name => 'HTML-WebDAO',
301 my $content = load_ok(
302 'Spreadsheet-Read.yml',
303 catfile( test_data_directory(), 'Spreadsheet-Read.yml' ),
310 'license' => 'http://dev.perl.org/licenses/'
314 'url' => 'http://module-build.sourceforge.net/META-spec-v1.4.html'
316 'distribution_type' => 'module',
317 'generated_by' => 'Author',
318 'version' => 'VERSION',
321 'H.Merijn Brand <h.m.brand@xs4all.nl>'
324 'build_requires' => {
326 'Test::Harness' => '0',
330 'Spreadsheet::Read' => {
331 'version' => 'VERSION',
335 'optional_features' => [
339 'Text::CSV_XS' => '0.23'
342 'Text::CSV_PP' => '1.10',
343 'Text::CSV_XS' => '0.58',
344 'Text::CSV' => '1.10'
346 'description' => 'Provides parsing of CSV streams'
352 'Spreadsheet::ParseExcel' => '0.26',
353 'Spreadsheet::ParseExcel::FmtDefault' => '0'
356 'Spreadsheet::ParseExcel' => '0.42'
358 'description' => 'Provides parsing of Microsoft Excel files'
364 'Spreadsheet::XLSX' => '0.07'
366 'description' => 'Provides parsing of Microsoft Excel 2007 files'
372 'Spreadsheet::ReadSXC' => '0.2'
374 'description' => 'Provides parsing of OpenOffice spreadsheets'
380 'Tk::TableMatrix::Spreadsheet' => '0',
381 'Tk::NoteBook' => '0',
384 'description' => 'Spreadsheet tools'
390 'Data::Dumper' => '0',
395 'perl' => '5.008005',
397 'File::Temp' => '0.14'
399 'abstract' => 'Meta-Wrapper for reading spreadsheet data'