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