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