4 use Cwd qw( abs_path );
8 plan skip_all => 'This test will not run unless you set MOOSE_TEST_MD to a true value'
9 unless $ENV{MOOSE_TEST_MD};
13 'Archive::Zip' => 0, # or else .zip dists won't be able to be installed
14 'Test::DependentModules' => '0.09', # skip all if not installed
15 'MetaCPAN::API' => '0.33',
17 use Test::DependentModules qw( test_module );
20 use List::MoreUtils qw(any);
23 diag( 'Test run performed at: '
28 $ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.');
29 delete @ENV{ qw( AUTHOR_TESTING RELEASE_TESTING SMOKE_TESTING ) };
31 $ENV{ANY_MOOSE} = 'Moose';
33 my $mcpan = MetaCPAN::API->new;
34 my $res = $mcpan->post(
35 '/release/_search' => {
36 query => { match_all => {} },
40 { term => { 'release.dependency.module' => 'Moose' } },
41 { term => { 'release.dependency.module' => 'Moose::Role' } },
42 { term => { 'release.dependency.module' => 'Moose::Exporter' } },
43 { term => { 'release.dependency.module' => 'Class::MOP' } },
44 { term => { 'release.dependency.module' => 'MooseX::Role::Parameterized' } },
45 { term => { 'release.dependency.module' => 'Any::Moose' } },
47 { term => { 'release.status' => 'latest' } },
48 { term => { 'release.maturity' => 'released' } },
50 fields => 'distribution'
54 my %todo_reasons = map {
56 /^(\S*)\s*(?:#\s*(.*)\s*)?$/;
57 defined($1) && length($1) ? ($1 => $2) : ()
59 my %todo = map { $_ => 1 } keys %todo_reasons;
61 my @skip_prefix = qw(Acme Task Bundle);
62 my %skip = map { $_ => 1 } (
63 'App-CPAN2Pkg', # tk tests are graphical
64 'App-USBKeyCopyCon', # gtk tests are graphical
65 'CatalystX-Restarter-GTK', # gtk tests are graphical
66 'CM-Permutation', # OpenGL uses graphics in Makefile.PL
67 'Dackup', # depends on running ssh
68 'Data-Collector', # depends on running ssh
69 'Date-Biorhythm', # Date::Business prompts in Makefile.PL
70 'Forest-Tree-Viewer-Gtk2', # gtk tests are graphical
71 'Games-Pandemic', # tk tests are graphical
72 'Games-RailRoad', # tk tests are graphical
73 'Games-Risk', # tk tests are graphical
74 'helm', # depends on running ssh
75 'Log-Dispatch-Gtk2-Notify', # gtk tests are graphical
76 'LPDS', # gtk tests are graphical
77 'Net-SFTP-Foreign-Exceptional', # depends on running ssh
78 'Periscope', # gtk tests are graphical
79 'POE-Component-OpenSSH', # depends on running ssh
80 'RDF-TrineX-RuleEngine-Jena', # prompts in Makefile.PL
81 'Test-SFTP', # Term::ReadPassword prompts in tests
82 'Tk-Role-Dialog', # tk tests are graphical
83 'Weaving-Tablet', # tk tests are graphical
84 'WWW-Hashdb', # test hangs, pegging cpu
85 'Zucchini', # File::Rsync prompts in Makefile.PL
89 'App-PipeFilter' => 'App::PipeFilter::Generic',
90 'Constructible' => 'Constructible::Maxima',
91 'DCOLLINS-ANN-Locals' => 'DCOLLINS::ANN::Robot',
92 'Dist-Zilla-Deb' => 'Dist::Zilla::Plugin::Deb::VersionFromChangelog',
93 'Dist-Zilla-Plugins-CJM' => 'Dist::Zilla::Plugin::TemplateCJM',
94 'Dist-Zilla-Plugin-TemplateFile' => 'Dist::Zilla::Plugin::TemplateFiles',
96 'marc-moose' => 'MARC::Moose',
97 'mobirc' => 'App::Mobirc',
98 'OWL-Simple' => 'OWL::Simple::Class',
99 'Patterns-ChainOfResponsibility' => 'Patterns::ChainOfResponsibility::Application',
100 'Role-Identifiable' => 'Role::Identifiable::HasIdent',
101 'smokebrew' => 'App::SmokeBrew',
103 'X11-XCB' => 'X11::XCB::Connection',
104 'XML-Ant-BuildFile' => 'XML::Ant::BuildFile::Project',
106 my @modules = map { exists $name_fix{$_} ? $name_fix{$_} : $_ }
109 grep { my $dist = $_; !any { $dist =~ /^$_-/ } @skip_prefix }
110 map { $_->{fields}{distribution} }
111 @{ $res->{hits}{hits} };
113 plan tests => scalar @modules;
114 for my $module (@modules) {
116 if ($todo{$module}) {
117 my $reason = $todo_reasons{$module};
118 $reason = '???' unless defined $reason;
119 local $TODO = $reason;
120 eval { test_module($module); 1 }
121 or fail("Died when testing $module: $@");
124 eval { test_module($module); 1 }
125 or fail("Died when testing $module: $@");
131 Alice # can't resolve distribution
132 Config-Model-Backend-Augeas # deps on Config::Model
133 Config-Model # can't run tests
134 Config-Model-OpenSsh # deps on Config::Model
135 CPAN-Patches # can't run tests
136 CPAN-Patches-Plugin-Debian # can't run tests
137 KiokuDB-Backend-BDB # can't run tests
138 Net-Azure-BlobService # ???
139 Pod-Weaver-Section-Consumes # ???
140 Pod-Weaver-Section-Extends # ???
141 TryCatch # can't run tests
142 XML-Rabbit # can't run tests
144 # Test::DM doesn't install deps properly (???)
145 App-Benchmark-Accessors # deps aren't installed correctly (???)
146 Bot-BasicBot-Pluggable # deps aren't installed correctly (???)
147 Code-Statistics # deps aren't installed correctly (???)
148 Dist-Zilla-PluginBundle-Author-MELO # deps aren't installed correctly (???)
149 Dist-Zilla-PluginBundle-MITHALDU # deps aren't installed correctly (???)
150 Dist-Zilla-Util-FileGenerator # deps aren't installed correctly (???)
151 EBI-FGPT-FuzzyRecogniser # deps aren't installed correctly (???)
152 Erlang-Parser # deps aren't installed correctly (???)
153 Foorum # deps aren't installed correctly (???)
154 Graphics-Primitive-Driver-CairoPango # deps aren't installed correctly (???)
155 Grimlock # deps aren't installed correctly (???)
156 IMS-CP-Manifest # deps aren't installed correctly (???)
157 Locale-Handle-Pluggable # deps aren't installed correctly (???)
158 marc-moose # deps aren't installed correctly (???)
159 Method-Signatures # deps aren't installed correctly (???)
160 mobirc # deps aren't installed correctly (???)
161 MooseX-APIRole # deps aren't installed correctly (???)
162 MooseX-MultiObject # deps aren't installed correctly (???)
163 Net-Bamboo # deps aren't installed correctly (???)
164 Net-Stripe # deps aren't installed correctly (???)
165 Number-Phone-NANP-Vanity # deps aren't installed correctly (???)
166 Perl-Achievements # deps aren't installed correctly (???)
167 Tatsumaki-Template-Markapl # deps aren't installed correctly (???)
168 Text-TEI-Collate # deps aren't installed correctly (???)
169 Text-Tradition # deps aren't installed correctly (???)
170 WebService-SOS # deps aren't installed correctly (???)
171 WWW-Mechanize-Cached # deps aren't installed correctly (???)
172 XML-Ant-BuildFile # deps aren't installed correctly (???)
175 AI-ExpertSystem-Advanced # no tests
176 API-Assembla # no tests
177 App-mkfeyorm # no tests
178 Bot-Applebot # no tests
179 Catalyst-Authentication-Credential-Facebook-OAuth2 # no tests
180 Catalyst-Authentication-Store-Fey-ORM # no tests
181 Catalyst-Controller-MovableType # no tests
182 Catalyst-Model-MenuGrinder # no tests
184 Data-SearchEngine-ElasticSearch # no tests
185 Dist-Zilla-MintingProfile-Author-ARODLAND # no tests
186 Dist-Zilla-PluginBundle-ARODLAND # no tests
187 Dist-Zilla-PluginBundle-Author-OLIVER # no tests
188 Dist-Zilla-PluginBundle-NUFFIN # no tests
189 Dist-Zilla-Plugin-DualLife # no tests
190 Dist-Zilla-Plugin-GitFlow # no tests
191 Dist-Zilla-Plugin-GitFmtChanges # no tests
192 Dist-Zilla-Plugin-MetaResourcesFromGit # no tests
193 Dist-Zilla-Plugin-ModuleBuild-OptionalXS # no tests
194 Dist-Zilla-Plugin-Rsync # no tests
195 Dist-Zilla-Plugin-TemplateFile # no tests
196 Dist-Zilla-Plugin-UploadToDuckPAN # no tests
197 Finance-Bank-SuomenVerkkomaksut # no tests
198 Games-HotPotato # no tests
200 JIRA-Client-REST # no tests
201 Kafka-Client # no tests
202 LWP-UserAgent-OfflineCache # no tests
203 Markdown-Pod # no tests
204 MooseX-Types-DateTimeX # no tests
205 Net-Dropbox # no tests
206 Net-Flowdock # no tests
207 Net-OpenStack-Attack # no tests
208 Net-Ostrich # no tests
209 Net-Recurly # no tests
210 OpenDocument-Template # no tests
211 Pod-Weaver-Section-Encoding # no tests
212 POE-Component-Server-MySQL # no tests
213 Random-Quantum # no tests
214 SchemaEvolution # no tests
216 Test-System # no tests
217 Test-WWW-Mechanize-Dancer # no tests
218 WebService-Buxfer # no tests
219 WebService-CloudFlare-Host # no tests
220 WWW-MenuGrinder # no tests
223 # external dependencies
224 Alien-ActiveMQ # requires activemq
225 AnyEvent-ZeroMQ # requires zeromq installation
226 AnyMQ-ZeroMQ # requires zeromq installation
227 Apache2-HttpEquiv # requires apache (for mod_perl)
228 App-Mimosa # requires fastacmd
229 App-PgCryobit # requires postgres installation
230 Archive-RPM # requires cpio
231 Catalyst-Engine-Stomp # depends on alien::activemq
232 Cave-Wrapper # requires cave to be installed
233 CHI-Driver-Redis # requires redis server
234 Crypt-Random-Source-Strong-Win32 # windows only
235 Dackup # requires ssh
236 Data-Collector # requires ssh
237 DBIx-PgLink # requires postgres installation
238 Dist-Zilla-Plugin-Subversion # requires svn bindings
239 Dist-Zilla-Plugin-SVK # requires svn bindings
240 Dist-Zilla-Plugin-SvnObtain # requires svn bindings
241 Fedora-App-MaintainerTools # requires rpm to be installed
242 Fedora-App-ReviewTool # requires koji to be installed
243 Games-HotPotato # requires sdl
244 Games-Tetris-Complete # requires threads
246 HTML-Barcode-QRCode # requires libqrencode
247 JavaScript-Sprockets # requires sprocketize
248 JavaScript-V8x-TestMoreish # requires v8
249 Koha-Contrib-Tamil # requires yaz
251 Lighttpd-Control # requires lighttpd
252 Lingua-TreeTagger # requires treetagger to be installed
253 Math-Lsoda # requires f77
254 MongoDBI # requires mongo
255 MongoDB # requires mongo
256 MSWord-ToHTML # requires abiword to be installed
257 Net-Route # requires route
258 Nginx-Control # requires nginx to be installed
259 NLP-Service # requires javac
260 Padre-Plugin-Moose # requires threaded perl
261 Padre-Plugin-PDL # requires threaded perl
262 Padre-Plugin-Snippet # requires threaded perl
263 Paludis-UseCleaner # depends on cave::wrapper
264 Perlanet # HTML::Tidy requires tidyp
265 Perl-Dist-Strawberry-BuildPerl-5123 # windows only
266 Perl-Dist-Strawberry-BuildPerl-5123 # windows only
267 Perl-Dist-WiX-BuildPerl-5123 # windows only
268 Perl-Dist-WiX # windows only
269 Perl-Dist-WiX # windows only
270 POE-Component-OpenSSH # requires ssh
271 RDF-TrineX-RuleEngine-Jena # requires Jena
272 SimpleDB-Class # requires memcached
273 SVN-Simple-Hook # requires svn
274 SVN-Tree # requires svn
275 Template-JavaScript # requires v8
276 ZeroMQ-PubSub # requires zmq
277 ZMQ-Declare # requires zmq
280 App-CPAN2Pkg # tk tests are graphical
281 App-USBKeyCopyCon # gtk tests are graphical
282 CatalystX-Restarter-GTK # gtk tests are graphical
283 Forest-Tree-Viewer-Gtk2 # gtk tests are graphical
284 Games-Pandemic # tk tests are graphical
285 Games-RailRoad # tk tests are graphical
286 Games-Risk # tk tests are graphical
287 Log-Dispatch-Gtk2-Notify # gtk tests are graphical
288 LPDS # gtk tests are graphical
289 Periscope # gtk tests are graphical
290 Tk-Role-Dialog # tk tests are graphical
291 Weaving-Tablet # tk tests are graphical
293 # failing for a reason
294 Algorithm-KernelKMeans # mx-types-common changes broke it
295 AnyEvent-BitTorrent # broken
296 AnyEvent-Cron # intermittent failures
297 AnyEvent-Inotify-Simple # ??? (maybe issue with test::sweet)
298 AnyEvent-JSONRPC # tests require recommended deps
299 AnyEvent-Retry # mx-types-common changes broke it
300 AnyMongo # doesn't compile
301 App-ArchiveDevelCover # depends on nonexistent testdata::setup
302 App-Dataninja # bad M::I install in inc/
303 App-Fotagger # Imager doesn't compile
304 App-HistHub # missing dep on JSON.pm
305 App-Magpie # deps on URPM which doesn't exist
306 App-MediaWiki2Git # git::repository is broken
307 App-Munchies # depends on XML::DTD
308 App-TemplateServer # broken use of types
309 App-TemplateServer-Provider-HTML-Template # dep on app-templateserver
310 App-TemplateServer-Provider-Mason # dep on app-templateserver
311 App-TemplateServer-Provider-TD # dep on app-templateserver
312 App-TimeTracker # git::repository is broken
313 App-Twimap # dep on Web::oEmbed::Common
314 App-Validation-Automation # dep on Switch
316 Beagle # depends on term::readline::perl
317 Bio-MAGETAB # datetime-format-datemanip is broken
318 Bot-Backbone # poe-loop-ev prompts
319 Cache-Profile # broken
320 Catalyst-Authentication-Store-LDAP-AD-Class # pod coverage fail
321 Catalyst-Controller-Resources # broken
322 Catalyst-Controller-SOAP # broken
323 Catalyst-Model-Sedna # deps on Alien-Sedna which doesn't exist
324 Catalyst-Plugin-Continuation # undeclared dep
325 Catalyst-Plugin-ErrorCatcher-ActiveMQ-Stomp # pod coverage fail
326 Catalyst-Plugin-Session-State-Cookie # broken
327 Catalyst-Plugin-Session-Store-TestMemcached # dep with corrupt archive
328 Catalyst-Plugin-SwiffUploaderCookieHack # undeclared dep
329 Catalyst-TraitFor-Request-PerLanguageDomains # dep on ::State::Cookie
330 CatalystX-I18N # dep on ::State::Cookie
331 CatalystX-MooseComponent # broken
332 CatalystX-SimpleAPI # depends on mxms
333 CatalystX-SimpleLogin # broken
334 CatalystX-Usul # proc::processtable doesn't load
335 Cheater # parse::randgen is broken
336 Class-OWL # uses CMOP::Class without loading cmop
337 CM-Permutation # OpenGL uses graphics in Makefile.PL
338 Cogwheel # uses ancient moose apis
339 Constructible # GD::SVG is a broken dist
340 Constructible-Maxima # GD::SVG is a broken dist
341 Coro-Amazon-SimpleDB # amazon::simpledb::client doesn't exist
342 CPAN-Digger # requires DBD::SQLite
343 Data-AMF # missing dep on YAML
344 Data-Apache-mod_status # invalid characters in type name
345 Data-Edit # dist is missing some modules
346 Data-PackageName # broken
347 Data-Pipeline # uses ancient moose apis
348 Data-SCORM # pod coverage fail
349 Date-Biorhythm # Date::Business prompts in Makefile.PL
350 DayDayUp # MojoX-Fixup-XHTML doesn't exist
351 DBICx-Modeler-Generator # broken (weirdly)
352 DBIx-Class-Migration # missing dep on Log::Contextual
353 DBIx-SchemaChecksum # broken
354 Debian-Apt-PM # configure time failures
355 Devel-Events # broken (role conflict)
356 Dist-Zilla-Deb # pod coverage fail
357 Dist-Zilla-Plugin-ChangelogFromGit-Debian # git::repository is broken
358 Dist-Zilla-Plugin-ProgCriticTests # broken
359 DustyDB # uses old moose apis
361 ELF-Extract-Sections # depends on mxms
362 ETLp # depends on mxms
363 Facebook-Graph # broken
364 Fedora-Bugzilla # deps on nonexistent things
365 FFmpeg-Thumbnail # undeclared dep
366 File-DataClass # XML::DTD is a broken dist
367 File-Stat-Moose # old moose apis
368 Finance-Bank-SentinelBenefits-Csv401kConverter # depends on mxms
369 Form-Factory # uses old moose apis
370 FormValidator-Nested # broken
372 Gitalist # deps on mxms
373 Git-CPAN-Patch # system::command is broken
374 GOBO # coerce with no coercion
375 Google-Chart # recreating type constraints
376 Google-Spreadsheet-Agent # pod::coverage fail
377 Hobocamp # configure_requires needs EU::CChecker
378 Horris # App::Horris isn't on cpan
379 HTML-Grabber # pod::coverage fail
380 HTML-TreeBuilderX-ASP_NET # broken
381 HTTP-Engine-Middleware # missing dep on yaml
382 Image-Robohash # Graphics::Magick doesn't exist
383 IM-Engine-Plugin-Dispatcher # p::d::declarative changed dists
384 JavaScript-Framework-jQuery # coerce with no coercion
385 Jifty # Test::WWW::Selenium needs devel::repl
388 Kamaitachi # pod::coverage fail
389 KiokuDB-Backend-Files # broken
390 Mail-Summary-Tools # DT::Format::DateManip is broken
391 MediaWiki-USERINFO # broken
392 Mildew # depends on mxms
393 mobirc # http::engine broken
394 MooseX-Attribute-Prototype # uses old moose apis
395 MooseX-DBIC-Scaffold # needs unreleased sql-translator
396 MooseX-Documenter # broken
397 MooseX-DOM # "no Moose" unimports confess
398 MooseX-Error-Exception-Class # metaclass compat breakage
399 MooseX-Getopt-Usage # missing dep on Test::Class
400 MooseX-Meta-Attribute-Index # old moose apis
401 MooseX-Meta-Attribute-Lvalue # old moose apis
402 MooseX-Method-Signatures # broken
403 MooseX-Struct # ancient moose apis
404 MooseX-Types-Parameterizable # broken
405 MySQL-Util # pod-coverage fail
406 Nagios-Passive # broken
408 Net-Fluidinfo # broken
409 Net-Google-Blogger # broken
410 Net-Google-FederatedLogin # broken
411 NetHack-Item # NH::Monster::Spoiler is broken
412 NetHack-Monster-Spoiler # broken (MX::CA issues)
413 Net-HTTP-Factual # broken
416 Net-Parliament # broken
418 Net-StackExchange # broken
419 ODG-Record # Test::Benchmark broken
420 Perlbal-Control # proc::processtable doesn't load
421 Pg-BulkCopy # hardcodes /usr/bin/perl
422 Pinto-Common # broken
423 Pinto-Server # deps on pinto::common
424 Plack-Middleware-Image-Scale # Image::Scale is broken
425 POE-Component-CPAN-Mirror-Multiplexer # broken
426 POE-Component-ResourcePool # broken
427 POE-Component-Server-PSGI # broken deps
428 POE-Component-Server-SimpleHTTP-PreFork # broken deps
429 POEx-ProxySession # broken deps
430 POEx-PubSub # broken deps
431 POEx-WorkerPool # broken deps
432 PostScript-ScheduleGrid-XMLTV # XMLTV doesn't exist
434 Prophet # depends on term::readline::perl
436 Railsish # dep on nonexistent dist
437 RDF-Server # "no Moose" unimports confess
438 Reaction # signatures is broken
439 Reflexive-Role-DataMover # broken (reflex::role changes?)
440 Reflexive-Role-TCPServer # broken (reflex::role changes?)
441 Reflexive-Stream-Filtering # broken
443 Scene-Graph # has '+attr' in roles
444 Server-Control # proc::processtable doesn't load
445 Silki # image::magick is broken
446 SilkiX-Converter-Kwiki # file::mimeinfo expects (?-xism:
447 Sloth # rest::utils is broken
448 SRS-EPP-Proxy # depends on xml::epp
449 String-Blender # broken
451 Tail-Tool # Getopt::Alt doesn't exist
452 Tapper-CLI # sys::info::driver::linux is broken
453 Tapper-Installer # sys::info::driver::linux is broken
454 Tapper-MCP-MessageReceiver # sys::info::driver::linux is broken
455 Tapper-MCP # sys::info::driver::linux is broken
456 Tapper-Reports-API # sys::info::driver::linux is broken
457 Tapper-Testplan # sys::info::driver::linux is broken
458 Telephone-Mnemonic-US # rpm-build-perl is broken
460 Test-BDD-Cucumber # clone::fast is broken
461 Test-Daily # configure errors
462 Test-Pockito # broken
463 Test-SFTP # Term::ReadPassword prompts in tests
464 Test-WWW-Selenium-More # Test::WWW::Selenium needs devel::repl
465 Text-Clevery # broken
466 Thorium # depends on Hobocamp
467 TryCatch-Error # broken
468 Verby # deps on poe::component::resourcepool
469 Weather-TW # missing dep on Mojo::DOM
470 Web-API-Mapper # broken
471 WebNano-Controller-CRUD # broken
472 WebService-SlimTimer # depends on mxms
473 WebService-Yes24 # broken
475 WWW-Alltop # XML::SimpleObject configure fail
476 WWW-DataWiki # depends on mxms
477 WWW-Fandango # bad dist
479 WWW-Hashdb # test hangs, pegging cpu
480 WWW-Metalgate # Cache is broken
481 WWW-Scramble # pod::coverage fail
482 WWW-Sitemapper # broken
483 WWW-StaticBlog # time::sofar is broken
484 WWW-WebKit # missing configure_req on EU::PkgConfig
485 WWW-Yahoo-Lyrics-JP # broken
486 XIRCD # undeclared deps
487 XML-EPP # coerce without coercion
488 XML-LibXSLT-Easy # missing dep on mx-getopt, deps on mxms
489 XML-SRS # deps on prang
490 Yukki # git::repository is broken
491 Zucchini # File::Rsync prompts in Makefile.PL