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