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.13',
15 'MetaCPAN::API' => '0.33',
18 use Test::DependentModules qw( test_module );
21 use List::MoreUtils qw(any);
24 diag( 'Test run performed at: '
29 $ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.');
30 delete @ENV{ qw( AUTHOR_TESTING RELEASE_TESTING SMOKE_TESTING ) };
32 $ENV{ANY_MOOSE} = 'Moose';
34 my $mcpan = MetaCPAN::API->new;
35 my $res = $mcpan->post(
36 '/release/_search' => {
37 query => { match_all => {} },
41 { term => { 'release.dependency.module' => 'Moose' } },
42 { term => { 'release.dependency.module' => 'Moose::Role' } },
43 { term => { 'release.dependency.module' => 'Moose::Exporter' } },
44 { term => { 'release.dependency.module' => 'Class::MOP' } },
45 { term => { 'release.dependency.module' => 'MooseX::Role::Parameterized' } },
46 { term => { 'release.dependency.module' => 'Any::Moose' } },
48 { term => { 'release.status' => 'latest' } },
49 { term => { 'release.maturity' => 'released' } },
51 fields => 'distribution'
55 my %todo_reasons = map {
57 /^(\S*)\s*(?:#\s*(.*)\s*)?$/;
58 defined($1) && length($1) ? ($1 => $2) : ()
60 my %todo = map { $_ => 1 } keys %todo_reasons;
62 my @skip_prefix = qw(Acme Task Bundle);
63 my %skip = map { $_ => 1 } (
64 'App-CPAN2Pkg', # tk tests are graphical
65 'App-USBKeyCopyCon', # gtk tests are graphical
66 'Bot-Backbone', # poe-loop-ev prompts
67 'Cache-Ehcache', # hangs if server exists on port 8080
68 'CatalystX-Restarter-GTK', # gtk tests are graphical
69 'CM-Permutation', # OpenGL uses graphics in Makefile.PL
70 'Dackup', # depends on running ssh
71 'Data-Collector', # depends on running ssh
72 'Date-Biorhythm', # Date::Business prompts in Makefile.PL
73 'DBIx-PgLink', # prompts for a postgres password
74 'Forest-Tree-Viewer-Gtk2', # gtk tests are graphical
75 'Games-Pandemic', # tk tests are graphical
76 'Games-RailRoad', # tk tests are graphical
77 'Games-Risk', # tk tests are graphical
78 'Gearman-Driver', # spews tar errors
79 'helm', # depends on running ssh
80 'iTransact-Lite', # tests rely on internet site
81 'Log-Dispatch-Gtk2-Notify', # gtk tests are graphical
82 'LPDS', # gtk tests are graphical
83 'Net-SFTP-Foreign-Exceptional', # depends on running ssh
84 'Periscope', # gtk tests are graphical
85 'POE-Component-OpenSSH', # depends on running ssh
86 'POE-Component-Server-SimpleHTTP-PreFork', # ipc::shareable tests hang
87 'RDF-TrineX-RuleEngine-Jena', # prompts in Makefile.PL
88 'Test-SFTP', # Term::ReadPassword prompts in tests
89 'Tk-Role-Dialog', # tk tests are graphical
90 'Unicode-Emoji-E4U', # tests rely on internet site
91 'Weaving-Tablet', # tk tests are graphical
92 'WWW-eNom', # tests rely on internet site
93 'WWW-Finances-Bovespa', # tests rely on internet site
94 'WWW-Hashdb', # test hangs, pegging cpu
95 'WWW-Vimeo-Download', # tests rely on internet site
96 'WWW-YouTube-Download-Channel', # tests rely on internet site
97 'Zucchini', # File::Rsync prompts in Makefile.PL
101 'App-passmanager' => 'App::PassManager',
102 'App-PipeFilter' => 'App::PipeFilter::Generic',
103 'Constructible' => 'Constructible::Maxima',
104 'DCOLLINS-ANN-Locals' => 'DCOLLINS::ANN::Robot',
105 'Dist-Zilla-Deb' => 'Dist::Zilla::Plugin::Deb::VersionFromChangelog',
106 'Dist-Zilla-Plugins-CJM' => 'Dist::Zilla::Plugin::TemplateCJM',
107 'Dist-Zilla-Plugin-TemplateFile' => 'Dist::Zilla::Plugin::TemplateFiles',
108 'Google-Directions' => 'Google::Directions::Client',
110 'HTML-Untemplate' => 'HTML::Linear',
111 'marc-moose' => 'MARC::Moose',
112 'mobirc' => 'App::Mobirc',
113 'OWL-Simple' => 'OWL::Simple::Class',
114 'Patterns-ChainOfResponsibility' => 'Patterns::ChainOfResponsibility::Application',
115 'Pod-Elemental-Transfomer-VimHTML' => 'Pod::Elemental::Transformer::VimHTML',
116 'Role-Identifiable' => 'Role::Identifiable::HasIdent',
117 'smokebrew' => 'App::SmokeBrew',
118 'Treex-Parser-MSTperl' => 'Treex::Tool::Parser::MSTperl',
120 'WebService-LOC-CongRec' => 'WebService::LOC::CongRec::Crawler',
121 'X11-XCB' => 'X11::XCB::Connection',
122 'XML-Ant-BuildFile' => 'XML::Ant::BuildFile::Project',
127 grep { my $dist = $_; !any { $dist =~ /^$_-/ } @skip_prefix }
128 map { $_->{fields}{distribution} }
129 @{ $res->{hits}{hits} };
131 unless ( $ENV{MOOSE_TEST_MD} eq 'all' ) {
133 'Picking 200 random dependents to test. Set MOOSE_TEST_MD=all to test all dependents'
137 while ( keys %indexes < 200 ) {
138 $indexes{ int rand( scalar @dists ) } = 1;
141 @dists = @dists[ sort keys %indexes ];
144 plan tests => scalar @dists;
145 for my $dist (@dists) {
148 $module = $name_fix{$module} if exists $name_fix{$module};
150 my $reason = $todo_reasons{$dist};
151 $reason = '???' unless defined $reason;
152 local $TODO = $reason;
153 eval { test_module($module); 1 }
154 or fail("Died when testing $module: $@");
157 eval { test_module($module); 1 }
158 or fail("Died when testing $module: $@");
163 # indexing issues (test::dm bugs?)
164 Alice # couldn't find on cpan
165 Hopkins # couldn't find on cpan
166 PostScript-Barcode # couldn't find on cpan
168 # doesn't install deps properly (test::dm bugs?)
169 App-Benchmark-Accessors # Mojo::Base isn't installed
170 Bot-BasicBot-Pluggable # Crypt::SaltedHash isn't installed
171 Code-Statistics # MooseX::HasDefaults::RO isn't installed
172 Dist-Zilla-PluginBundle-MITHALDU # List::AllUtils isn't installed
173 Dist-Zilla-Util-FileGenerator # MooseX::HasDefaults::RO isn't installed
174 EBI-FGPT-FuzzyRecogniser # GO::Parser isn't installed
175 Erlang-Parser # Parse::Yapp::Driver isn't installed
176 Foorum # Sphinx::Search isn't installed
177 Grimlock # DBIx::Class::EncodedColumn isn't installed
178 Locale-Handle-Pluggable # MooseX::Types::VariantTable::Declare isn't installed
179 mobirc # HTTP::Session::State::GUID isn't installed
180 Net-Bamboo # XML::Tidy isn't installed
181 Tatsumaki-Template-Markapl # Tatsumaki::Template isn't installed
182 Text-Tradition # Bio::Phylo::IO isn't installed
185 AI-ExpertSystem-Advanced # no tests
186 API-Assembla # no tests
187 App-mkfeyorm # no tests
188 App-passmanager # no tests
189 App-Scrobble # no tests
190 Bot-Applebot # no tests
191 Catalyst-Authentication-Credential-Facebook-OAuth2 # no tests
192 Catalyst-Authentication-Store-Fey-ORM # no tests
193 Catalyst-Controller-MovableType # no tests
194 Catalyst-Model-MenuGrinder # no tests
196 Data-SearchEngine-ElasticSearch # no tests
197 Dist-Zilla-MintingProfile-Author-ARODLAND # no tests
198 Dist-Zilla-PluginBundle-ARODLAND # no tests
199 Dist-Zilla-PluginBundle-Author-OLIVER # no tests
200 Dist-Zilla-PluginBundle-NUFFIN # no tests
201 Dist-Zilla-Plugin-DualLife # no tests
202 Dist-Zilla-Plugin-GitFlow # no tests
203 Dist-Zilla-Plugin-GitFmtChanges # no tests
204 Dist-Zilla-Plugin-MetaResourcesFromGit # no tests
205 Dist-Zilla-Plugin-ModuleBuild-OptionalXS # no tests
206 Dist-Zilla-Plugin-Rsync # no tests
207 Dist-Zilla-Plugin-TemplateFile # no tests
208 Dist-Zilla-Plugin-UploadToDuckPAN # no tests
209 Finance-Bank-SuomenVerkkomaksut # no tests
210 Games-HotPotato # no tests
212 JIRA-Client-REST # no tests
213 Kafka-Client # no tests
214 LWP-UserAgent-OfflineCache # no tests
215 Markdown-Pod # no tests
216 MooseX-Types-DateTimeX # no tests
217 Net-Azure-BlobService # no tests
218 Net-Dropbox # no tests
219 Net-Flowdock # no tests
220 Net-OpenStack-Attack # no tests
221 Net-Ostrich # no tests
222 Net-Recurly # no tests
223 OpenDocument-Template # no tests
224 Pod-Weaver-Section-Consumes # no tests
225 Pod-Weaver-Section-Encoding # no tests
226 Pod-Weaver-Section-Extends # 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 AnyEvent-Multilog # requires multilog
240 AnyEvent-Net-Curl-Queued # requires libcurl
241 AnyEvent-ZeroMQ # requires zeromq installation
242 AnyMQ-ZeroMQ # requires zeromq installation
243 Apache2-HttpEquiv # requires apache (for mod_perl)
244 App-Mimosa # requires fastacmd
245 App-PgCryobit # requires postgres installation
246 Archive-RPM # requires cpio
247 Bot-Jabbot # requires libidn
248 Catalyst-Engine-Stomp # depends on alien::activemq
249 Catalyst-Plugin-Session-Store-Memcached # requires memcached
250 Cave-Wrapper # requires cave to be installed
251 CHI-Driver-Redis # requires redis server
252 Crypt-Random-Source-Strong-Win32 # windows only
253 Curses-Toolkit # requires Curses which requires ncurses library
254 Dackup # requires ssh
255 Data-Collector # requires ssh
256 DBIx-PgLink # requires postgres installation
257 Dist-Zilla-Plugin-Subversion # requires svn bindings
258 Dist-Zilla-Plugin-SVK # requires svn bindings
259 Dist-Zilla-Plugin-SvnObtain # requires svn bindings
260 Fedora-App-MaintainerTools # requires rpm to be installed
261 Fedora-App-ReviewTool # requires koji to be installed
262 Fuse-Template # requires libfuse
263 Games-HotPotato # requires sdl
264 Games-Tetris-Complete # requires threads
266 HTML-Barcode-QRCode # requires libqrencode
267 IRC-RemoteControl # requires libssh2
268 JavaScript-Sprockets # requires sprocketize
269 JavaScript-V8x-TestMoreish # requires v8
270 Koha-Contrib-Tamil # requires yaz
272 Lighttpd-Control # requires lighttpd
273 Lingua-TreeTagger # requires treetagger to be installed
274 Math-Lsoda # requires f77
275 MongoDBI # requires mongo
276 MongoDB # requires mongo
277 MSWord-ToHTML # requires abiword to be installed
278 Net-DBus-Skype # requires dbus
279 Net-Route # requires route
280 Net-UpYun # requires curl
281 Net-ZooTool # requires curl
282 Nginx-Control # requires nginx to be installed
283 NLP-Service # requires javac
284 Padre-Plugin-Moose # requires threaded perl
285 Padre-Plugin-PDL # requires threaded perl
286 Padre-Plugin-Snippet # requires threaded perl
287 Paludis-UseCleaner # depends on cave::wrapper
288 Perlanet # HTML::Tidy requires tidyp
289 Perl-Dist-Strawberry-BuildPerl-5123 # windows only
290 Perl-Dist-Strawberry-BuildPerl-5123 # windows only
291 Perl-Dist-WiX-BuildPerl-5123 # windows only
292 Perl-Dist-WiX # windows only
293 Perl-Dist-WiX # windows only
294 POE-Component-OpenSSH # requires ssh
295 RDF-TrineX-RuleEngine-Jena # requires Jena
296 SimpleDB-Class # requires memcached
297 SVN-Simple-Hook # requires svn
298 SVN-Tree # requires svn
299 Template-JavaScript # requires v8
300 TheSchwartz-Moosified # requires DBI::Pg ?
301 WebService-SendGrid # requires curl
302 WebService-Tesco-API # requires curl
303 WWW-Contact # depends on curl
304 WWW-Curl-Simple # requires curl
305 ZeroMQ-PubSub # requires zmq
306 ZMQ-Declare # requires zmq
308 # flaky internet tests
309 iTransact-Lite # tests rely on internet site
310 Unicode-Emoji-E4U # tests rely on internet site
311 WWW-eNom # tests rely on internet site
312 WWW-Finances-Bovespa # tests rely on internet site
313 WWW-Vimeo-Download # tests rely on internet site
314 WWW-YouTube-Download-Channel # tests rely on internet site
317 App-CPAN2Pkg # tk tests are graphical
318 App-USBKeyCopyCon # gtk tests are graphical
319 CatalystX-Restarter-GTK # gtk tests are graphical
320 Forest-Tree-Viewer-Gtk2 # gtk tests are graphical
321 Games-Pandemic # tk tests are graphical
322 Games-RailRoad # tk tests are graphical
323 Games-Risk # tk tests are graphical
324 Log-Dispatch-Gtk2-Notify # gtk tests are graphical
325 LPDS # gtk tests are graphical
326 Periscope # gtk tests are graphical
327 Tk-Role-Dialog # tk tests are graphical
328 Weaving-Tablet # tk tests are graphical
330 # failing for a reason
331 Algorithm-KernelKMeans # mx-types-common changes broke it
332 AnyEvent-BitTorrent # broken
333 AnyEvent-Cron # intermittent failures
334 AnyEvent-Inotify-Simple # ??? (maybe issue with test::sweet)
335 AnyEvent-JSONRPC # tests require recommended deps
336 AnyEvent-Retry # mx-types-common changes broke it
337 AnyMongo # doesn't compile
338 App-ArchiveDevelCover # depends on nonexistent testdata::setup
339 App-Dataninja # bad M::I install in inc/
340 App-Fotagger # Imager doesn't compile
341 App-Magpie # deps on URPM which doesn't exist
342 App-MediaWiki2Git # git::repository is broken
343 App-Munchies # depends on XML::DTD
344 App-TemplateServer # broken use of types
345 App-TemplateServer-Provider-HTML-Template # dep on app-templateserver
346 App-TemplateServer-Provider-Mason # dep on app-templateserver
347 App-TemplateServer-Provider-TD # dep on app-templateserver
348 App-Twimap # dep on Web::oEmbed::Common
349 App-Validation-Automation # dep on Switch
351 Beagle # depends on term::readline::perl
352 Bot-Backbone # poe-loop-ev prompts
353 Cache-Ehcache # hangs if server exists on port 8080
354 Cache-Profile # broken
355 Catalyst-Authentication-Store-LDAP-AD-Class # pod coverage fail
356 Catalyst-Controller-Resources # broken
357 Catalyst-Controller-SOAP # broken
358 Catalyst-Model-Sedna # deps on Alien-Sedna which doesn't exist
359 Catalyst-Plugin-Continuation # undeclared dep
360 Catalyst-Plugin-Session-State-Cookie # broken
361 Catalyst-Plugin-Session-Store-TestMemcached # dep with corrupt archive
362 Catalyst-Plugin-SwiffUploaderCookieHack # undeclared dep
363 Catalyst-TraitFor-Request-PerLanguageDomains # dep on ::State::Cookie
364 CatalystX-I18N # dep on ::State::Cookie
365 CatalystX-MooseComponent # broken
366 CatalystX-SimpleLogin # broken
367 CatalystX-Usul # proc::processtable doesn't load
368 Cheater # parse::randgen is broken
369 Class-OWL # uses CMOP::Class without loading cmop
370 CM-Permutation # OpenGL uses graphics in Makefile.PL
371 Cogwheel # uses ancient moose apis
372 Config-Model # broken
373 Config-Model-Backend-Augeas # deps on Config::Model
374 Config-Model-OpenSsh # deps on Config::Model
375 Constructible # GD::SVG is a broken dist
376 Constructible-Maxima # GD::SVG is a broken dist
377 Coro-Amazon-SimpleDB # amazon::simpledb::client doesn't exist
378 CPAN-Digger # requires DBD::SQLite
379 Data-AMF # missing dep on YAML
380 Data-Apache-mod_status # invalid characters in type name
381 Data-Edit # dist is missing some modules
382 Data-Feed # broken (only sometimes?)
383 Data-PackageName # broken
384 Data-Pipeline # uses ancient moose apis
385 Data-SCORM # pod coverage fail
386 Date-Biorhythm # Date::Business prompts in Makefile.PL
387 DayDayUp # MojoX-Fixup-XHTML doesn't exist
388 DBICx-Modeler-Generator # broken (weirdly)
389 DBIx-SchemaChecksum # broken
390 Debian-Apt-PM # configure time failures
391 Devel-Events # broken (role conflict)
392 Dist-Zilla-Deb # pod coverage fail
393 Dist-Zilla-Plugin-ChangelogFromGit-Debian # git::repository is broken
394 Dist-Zilla-Plugin-ProgCriticTests # broken
395 DustyDB # uses old moose apis
397 Facebook-Graph # broken
398 Fedora-Bugzilla # deps on nonexistent things
399 FFmpeg-Thumbnail # undeclared dep
400 File-DataClass # XML::DTD is a broken dist
401 File-Stat-Moose # old moose apis
402 File-Tail-Dir # intermittent fails (i think)
403 Form-Factory # uses old moose apis
404 FormValidator-Nested # broken
406 Gitalist # deps on mxms
407 GOBO # coerce with no coercion
408 Google-Chart # recreating type constraints
409 Google-Spreadsheet-Agent # pod::coverage fail
410 Hobocamp # configure_requires needs EU::CChecker
411 Horris # App::Horris isn't on cpan
412 HTML-Grabber # pod::coverage fail
413 HTML-TreeBuilderX-ASP_NET # broken
414 HTTP-Engine-Middleware # missing dep on yaml
415 Image-Robohash # Graphics::Magick doesn't exist
416 JavaScript-Framework-jQuery # coerce with no coercion
417 Jifty # Test::WWW::Selenium needs devel::repl
420 Kamaitachi # pod::coverage fail
421 KiokuDB-Backend-Files # broken
422 LaTeX-TikZ # broken (with moose)
423 marc-moose # broken (only sometimes?)
424 Mail-Summary-Tools # DT::Format::DateManip is broken
425 MediaWiki-USERINFO # broken
426 Method-Signatures # doesn't like ANY_MOOSE=Moose
427 mobirc # http::engine broken
428 MooseX-Attribute-Prototype # uses old moose apis
429 MooseX-DBIC-Scaffold # needs unreleased sql-translator
430 MooseX-Documenter # broken
431 MooseX-DOM # "no Moose" unimports confess
432 MooseX-Error-Exception-Class # metaclass compat breakage
433 MooseX-Getopt-Usage # missing dep on Test::Class
434 MooseX-Meta-Attribute-Index # old moose apis
435 MooseX-Meta-Attribute-Lvalue # old moose apis
436 MooseX-Method-Signatures # broken
437 MooseX-Struct # ancient moose apis
438 MooseX-Types-Parameterizable # broken
439 MouseX-Types # broken (with moose)
440 MySQL-Util # pod-coverage fail
441 Nagios-Passive # broken
442 Net-APNS # broken (with moose)
444 Net-Fluidinfo # broken
445 Net-Google-Blogger # broken
446 Net-Google-FederatedLogin # broken
447 NetHack-Item # NH::Monster::Spoiler is broken
448 NetHack-Monster-Spoiler # broken (MX::CA issues)
449 Net-HTTP-Factual # broken
452 Net-Parliament # broken
454 Net-SSLeay-OO # broken
455 Net-StackExchange # broken
456 ODG-Record # Test::Benchmark broken
457 Perlbal-Control # proc::processtable doesn't load
458 Pg-BulkCopy # hardcodes /usr/bin/perl
459 Pinto-Common # broken
460 Pinto-Server # deps on pinto::common
461 Plack-Middleware-Image-Scale # Image::Scale is broken
462 Pod-Parser-I18N # missing dep on Data::Localize
463 POE-Component-CPAN-Mirror-Multiplexer # broken
464 POE-Component-DirWatch # intermittent failures
465 POE-Component-DirWatch-Object # intermittent failures
466 POE-Component-ResourcePool # broken
467 POE-Component-Server-PSGI # broken deps
468 POE-Component-Server-SimpleHTTP-PreFork # broken deps
469 POEx-ProxySession # broken deps
470 POEx-PubSub # broken deps
471 POEx-WorkerPool # broken deps
472 PostScript-ScheduleGrid-XMLTV # XMLTV doesn't exist
474 Prophet # depends on term::readline::perl
476 Railsish # dep on nonexistent dist
477 RDF-Server # "no Moose" unimports confess
478 Reaction # signatures is broken
479 Reflexive-Role-DataMover # broken (reflex::role changes?)
480 Reflexive-Role-TCPServer # broken (reflex::role changes?)
481 Reflexive-Stream-Filtering # broken
483 Scene-Graph # has '+attr' in roles
484 Server-Control # proc::processtable doesn't load
485 Shipment # locale::subcountry is broken
486 Silki # image::magick is broken
487 SilkiX-Converter-Kwiki # file::mimeinfo expects (?-xism:
488 Sloth # rest::utils is broken
489 SRS-EPP-Proxy # depends on xml::epp
490 String-Blender # broken
492 Tail-Tool # Getopt::Alt doesn't exist
493 Tapper-CLI # sys::info::driver::linux is broken
494 Tapper-Installer # sys::info::driver::linux is broken
495 Tapper-MCP-MessageReceiver # sys::info::driver::linux is broken
496 Tapper-Reports-API # sys::info::driver::linux is broken
497 Tapper-Testplan # sys::info::driver::linux is broken
498 Telephone-Mnemonic-US # rpm-build-perl is broken
499 Template-Plugin-Heritable # weird dep issues (not test::dm related)
501 Test-Daily # configure errors
502 Test-Pockito # broken
503 Test-SFTP # Term::ReadPassword prompts in tests
504 Test-WWW-Selenium-More # Test::WWW::Selenium needs devel::repl
505 Text-Clevery # broken
506 Thorium # depends on Hobocamp
507 TryCatch-Error # broken
508 Verby # deps on poe::component::resourcepool
509 Weather-TW # missing dep on Mojo::DOM
510 Web-API-Mapper # broken
511 WebNano-Controller-CRUD # broken
512 Webservice-Intermine # broken tests
513 WebService-Yes24 # broken
515 WWW-Alltop # XML::SimpleObject configure fail
516 WWW-DataWiki # depends on mxms
517 WWW-Fandango # bad dist
519 WWW-Hashdb # test hangs, pegging cpu
520 WWW-Mechanize-Cached # tries to read from wrong build dir?
521 WWW-Metalgate # Cache is broken
522 WWW-Scramble # pod::coverage fail
523 WWW-Sitemapper # broken
524 WWW-StaticBlog # time::sofar is broken
525 WWW-WebKit # missing configure_req on EU::PkgConfig
526 WWW-Yahoo-Lyrics-JP # broken
527 XIRCD # undeclared deps
528 XML-EPP # coerce without coercion
529 XML-SRS # deps on prang
530 XML-Writer-Compiler # broken tests
531 Yukki # git::repository is broken
532 Zucchini # File::Rsync prompts in Makefile.PL