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