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