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',
125 grep { my $dist = $_; !any { $dist =~ /^$_-/ } @skip_prefix }
126 map { $_->{fields}{distribution} }
127 @{ $res->{hits}{hits} };
129 plan tests => scalar @dists;
130 for my $dist (@dists) {
133 $module = $name_fix{$module} if exists $name_fix{$module};
135 my $reason = $todo_reasons{$dist};
136 $reason = '???' unless defined $reason;
137 local $TODO = $reason;
138 eval { test_module($module); 1 }
139 or fail("Died when testing $module: $@");
142 eval { test_module($module); 1 }
143 or fail("Died when testing $module: $@");
148 # indexing issues (test::dm bugs?)
149 Alice # couldn't find on cpan
150 Hopkins # couldn't find on cpan
151 PostScript-Barcode # couldn't find on cpan
153 # doesn't install deps properly (test::dm bugs?)
154 App-Benchmark-Accessors # Mojo::Base isn't installed
155 Bot-BasicBot-Pluggable # Crypt::SaltedHash isn't installed
156 Code-Statistics # MooseX::HasDefaults::RO isn't installed
157 Dist-Zilla-PluginBundle-MITHALDU # List::AllUtils isn't installed
158 Dist-Zilla-Util-FileGenerator # MooseX::HasDefaults::RO isn't installed
159 EBI-FGPT-FuzzyRecogniser # GO::Parser isn't installed
160 Erlang-Parser # Parse::Yapp::Driver isn't installed
161 Foorum # Sphinx::Search isn't installed
162 Grimlock # DBIx::Class::EncodedColumn isn't installed
163 Locale-Handle-Pluggable # MooseX::Types::VariantTable::Declare isn't installed
164 mobirc # HTTP::Session::State::GUID isn't installed
165 Net-Bamboo # XML::Tidy isn't installed
166 Tatsumaki-Template-Markapl # Tatsumaki::Template isn't installed
167 Text-Tradition # Bio::Phylo::IO isn't installed
170 AI-ExpertSystem-Advanced # no tests
171 API-Assembla # no tests
172 App-mkfeyorm # no tests
173 App-passmanager # no tests
174 App-Scrobble # no tests
175 Bot-Applebot # no tests
176 Catalyst-Authentication-Credential-Facebook-OAuth2 # no tests
177 Catalyst-Authentication-Store-Fey-ORM # no tests
178 Catalyst-Controller-MovableType # no tests
179 Catalyst-Model-MenuGrinder # no tests
181 Data-SearchEngine-ElasticSearch # no tests
182 Dist-Zilla-MintingProfile-Author-ARODLAND # no tests
183 Dist-Zilla-PluginBundle-ARODLAND # no tests
184 Dist-Zilla-PluginBundle-Author-OLIVER # no tests
185 Dist-Zilla-PluginBundle-NUFFIN # no tests
186 Dist-Zilla-Plugin-DualLife # no tests
187 Dist-Zilla-Plugin-GitFlow # no tests
188 Dist-Zilla-Plugin-GitFmtChanges # no tests
189 Dist-Zilla-Plugin-MetaResourcesFromGit # no tests
190 Dist-Zilla-Plugin-ModuleBuild-OptionalXS # no tests
191 Dist-Zilla-Plugin-Rsync # no tests
192 Dist-Zilla-Plugin-TemplateFile # no tests
193 Dist-Zilla-Plugin-UploadToDuckPAN # no tests
194 Finance-Bank-SuomenVerkkomaksut # no tests
195 Games-HotPotato # no tests
197 JIRA-Client-REST # no tests
198 Kafka-Client # no tests
199 LWP-UserAgent-OfflineCache # no tests
200 Markdown-Pod # no tests
201 MooseX-Types-DateTimeX # no tests
202 Net-Azure-BlobService # no tests
203 Net-Dropbox # no tests
204 Net-Flowdock # no tests
205 Net-OpenStack-Attack # no tests
206 Net-Ostrich # no tests
207 Net-Recurly # no tests
208 OpenDocument-Template # no tests
209 Pod-Weaver-Section-Consumes # no tests
210 Pod-Weaver-Section-Encoding # no tests
211 Pod-Weaver-Section-Extends # no tests
212 POE-Component-Server-MySQL # no tests
213 Random-Quantum # no tests
214 SchemaEvolution # no tests
216 Test-System # no tests
217 Test-WWW-Mechanize-Dancer # no tests
218 WebService-Buxfer # no tests
219 WebService-CloudFlare-Host # no tests
220 WWW-MenuGrinder # no tests
223 # external dependencies
224 AnyEvent-ZeroMQ # requires zeromq installation
225 AnyMQ-ZeroMQ # requires zeromq installation
226 Apache2-HttpEquiv # requires apache (for mod_perl)
227 App-Mimosa # requires fastacmd
228 App-PgCryobit # requires postgres installation
229 Archive-RPM # requires cpio
230 Catalyst-Engine-Stomp # depends on alien::activemq
231 Catalyst-Plugin-Session-Store-Memcached # requires memcached
232 Cave-Wrapper # requires cave to be installed
233 CHI-Driver-Redis # requires redis server
234 Crypt-Random-Source-Strong-Win32 # windows only
235 Dackup # requires ssh
236 Data-Collector # requires ssh
237 DBIx-PgLink # requires postgres installation
238 Dist-Zilla-Plugin-Subversion # requires svn bindings
239 Dist-Zilla-Plugin-SVK # requires svn bindings
240 Dist-Zilla-Plugin-SvnObtain # requires svn bindings
241 Fedora-App-MaintainerTools # requires rpm to be installed
242 Fedora-App-ReviewTool # requires koji to be installed
243 Games-HotPotato # requires sdl
244 Games-Tetris-Complete # requires threads
246 HTML-Barcode-QRCode # requires libqrencode
247 JavaScript-Sprockets # requires sprocketize
248 JavaScript-V8x-TestMoreish # requires v8
249 Koha-Contrib-Tamil # requires yaz
251 Lighttpd-Control # requires lighttpd
252 Lingua-TreeTagger # requires treetagger to be installed
253 Math-Lsoda # requires f77
254 MongoDBI # requires mongo
255 MongoDB # requires mongo
256 MSWord-ToHTML # requires abiword to be installed
257 Net-Route # requires route
258 Nginx-Control # requires nginx to be installed
259 NLP-Service # requires javac
260 Padre-Plugin-Moose # requires threaded perl
261 Padre-Plugin-PDL # requires threaded perl
262 Padre-Plugin-Snippet # requires threaded perl
263 Paludis-UseCleaner # depends on cave::wrapper
264 Perlanet # HTML::Tidy requires tidyp
265 Perl-Dist-Strawberry-BuildPerl-5123 # windows only
266 Perl-Dist-Strawberry-BuildPerl-5123 # windows only
267 Perl-Dist-WiX-BuildPerl-5123 # windows only
268 Perl-Dist-WiX # windows only
269 Perl-Dist-WiX # windows only
270 POE-Component-OpenSSH # requires ssh
271 RDF-TrineX-RuleEngine-Jena # requires Jena
272 SimpleDB-Class # requires memcached
273 SVN-Simple-Hook # requires svn
274 SVN-Tree # requires svn
275 Template-JavaScript # requires v8
276 ZeroMQ-PubSub # requires zmq
277 ZMQ-Declare # requires zmq
279 # flaky internet tests
280 iTransact-Lite # tests rely on internet site
281 Unicode-Emoji-E4U # tests rely on internet site
282 WWW-eNom # tests rely on internet site
283 WWW-Finances-Bovespa # tests rely on internet site
284 WWW-Vimeo-Download # tests rely on internet site
285 WWW-YouTube-Download-Channel # tests rely on internet site
288 App-CPAN2Pkg # tk tests are graphical
289 App-USBKeyCopyCon # gtk tests are graphical
290 CatalystX-Restarter-GTK # gtk tests are graphical
291 Forest-Tree-Viewer-Gtk2 # gtk tests are graphical
292 Games-Pandemic # tk tests are graphical
293 Games-RailRoad # tk tests are graphical
294 Games-Risk # tk tests are graphical
295 Log-Dispatch-Gtk2-Notify # gtk tests are graphical
296 LPDS # gtk tests are graphical
297 Periscope # gtk tests are graphical
298 Tk-Role-Dialog # tk tests are graphical
299 Weaving-Tablet # tk tests are graphical
301 # failing for a reason
302 Algorithm-KernelKMeans # mx-types-common changes broke it
303 AnyEvent-BitTorrent # broken
304 AnyEvent-Cron # intermittent failures
305 AnyEvent-Inotify-Simple # ??? (maybe issue with test::sweet)
306 AnyEvent-JSONRPC # tests require recommended deps
307 AnyEvent-Retry # mx-types-common changes broke it
308 AnyMongo # doesn't compile
309 App-ArchiveDevelCover # depends on nonexistent testdata::setup
310 App-Dataninja # bad M::I install in inc/
311 App-Fotagger # Imager doesn't compile
312 App-Magpie # deps on URPM which doesn't exist
313 App-MediaWiki2Git # git::repository is broken
314 App-Munchies # depends on XML::DTD
315 App-TemplateServer # broken use of types
316 App-TemplateServer-Provider-HTML-Template # dep on app-templateserver
317 App-TemplateServer-Provider-Mason # dep on app-templateserver
318 App-TemplateServer-Provider-TD # dep on app-templateserver
319 App-Twimap # dep on Web::oEmbed::Common
320 App-Validation-Automation # dep on Switch
322 Beagle # depends on term::readline::perl
323 Bot-Backbone # poe-loop-ev prompts
324 Cache-Ehcache # hangs if server exists on port 8080
325 Cache-Profile # broken
326 Catalyst-Authentication-Store-LDAP-AD-Class # pod coverage fail
327 Catalyst-Controller-Resources # broken
328 Catalyst-Controller-SOAP # broken
329 Catalyst-Model-Sedna # deps on Alien-Sedna which doesn't exist
330 Catalyst-Plugin-Continuation # undeclared dep
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-SimpleLogin # broken
338 CatalystX-Usul # proc::processtable doesn't load
339 Cheater # parse::randgen is broken
340 Class-OWL # uses CMOP::Class without loading cmop
341 CM-Permutation # OpenGL uses graphics in Makefile.PL
342 Cogwheel # uses ancient moose apis
343 Config-Model # broken
344 Config-Model-Backend-Augeas # deps on Config::Model
345 Config-Model-OpenSsh # deps on Config::Model
346 Constructible # GD::SVG is a broken dist
347 Constructible-Maxima # GD::SVG is a broken dist
348 Coro-Amazon-SimpleDB # amazon::simpledb::client doesn't exist
349 CPAN-Digger # requires DBD::SQLite
350 Data-AMF # missing dep on YAML
351 Data-Apache-mod_status # invalid characters in type name
352 Data-Edit # dist is missing some modules
353 Data-Feed # broken (only sometimes?)
354 Data-PackageName # broken
355 Data-Pipeline # uses ancient moose apis
356 Data-SCORM # pod coverage fail
357 Date-Biorhythm # Date::Business prompts in Makefile.PL
358 DayDayUp # MojoX-Fixup-XHTML doesn't exist
359 DBICx-Modeler-Generator # broken (weirdly)
360 DBIx-SchemaChecksum # broken
361 Debian-Apt-PM # configure time failures
362 Devel-Events # broken (role conflict)
363 Dist-Zilla-Deb # pod coverage fail
364 Dist-Zilla-Plugin-ChangelogFromGit-Debian # git::repository is broken
365 Dist-Zilla-Plugin-ProgCriticTests # broken
366 DustyDB # uses old moose apis
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 File-Tail-Dir # intermittent fails (i think)
374 Form-Factory # uses old moose apis
375 FormValidator-Nested # broken
377 Gitalist # deps on mxms
378 GOBO # coerce with no coercion
379 Google-Chart # recreating type constraints
380 Google-Spreadsheet-Agent # pod::coverage fail
381 Hobocamp # configure_requires needs EU::CChecker
382 Horris # App::Horris isn't on cpan
383 HTML-Grabber # pod::coverage fail
384 HTML-TreeBuilderX-ASP_NET # broken
385 HTTP-Engine-Middleware # missing dep on yaml
386 Image-Robohash # Graphics::Magick doesn't exist
387 JavaScript-Framework-jQuery # coerce with no coercion
388 Jifty # Test::WWW::Selenium needs devel::repl
391 Kamaitachi # pod::coverage fail
392 KiokuDB-Backend-Files # broken
393 LaTeX-TikZ # broken (with moose)
394 marc-moose # broken (only sometimes?)
395 Mail-Summary-Tools # DT::Format::DateManip is broken
396 MediaWiki-USERINFO # broken
397 Method-Signatures # doesn't like ANY_MOOSE=Moose
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 Pod-Parser-I18N # missing dep on Data::Localize
433 POE-Component-CPAN-Mirror-Multiplexer # broken
434 POE-Component-DirWatch # intermittent failures
435 POE-Component-DirWatch-Object # intermittent failures
436 POE-Component-ResourcePool # broken
437 POE-Component-Server-PSGI # broken deps
438 POE-Component-Server-SimpleHTTP-PreFork # broken deps
439 POEx-ProxySession # broken deps
440 POEx-PubSub # broken deps
441 POEx-WorkerPool # broken deps
442 PostScript-ScheduleGrid-XMLTV # XMLTV doesn't exist
444 Prophet # depends on term::readline::perl
446 Railsish # dep on nonexistent dist
447 RDF-Server # "no Moose" unimports confess
448 Reaction # signatures is broken
449 Reflexive-Role-DataMover # broken (reflex::role changes?)
450 Reflexive-Role-TCPServer # broken (reflex::role changes?)
451 Reflexive-Stream-Filtering # broken
453 Scene-Graph # has '+attr' in roles
454 Server-Control # proc::processtable doesn't load
455 Shipment # locale::subcountry is broken
456 Silki # image::magick is broken
457 SilkiX-Converter-Kwiki # file::mimeinfo expects (?-xism:
458 Sloth # rest::utils is broken
459 SRS-EPP-Proxy # depends on xml::epp
460 String-Blender # broken
462 Tail-Tool # Getopt::Alt doesn't exist
463 Tapper-CLI # sys::info::driver::linux is broken
464 Tapper-Installer # sys::info::driver::linux is broken
465 Tapper-MCP-MessageReceiver # sys::info::driver::linux is broken
466 Tapper-Reports-API # sys::info::driver::linux is broken
467 Tapper-Testplan # sys::info::driver::linux is broken
468 Telephone-Mnemonic-US # rpm-build-perl is broken
469 Template-Plugin-Heritable # weird dep issues (not test::dm related)
471 Test-Daily # configure errors
472 Test-Pockito # broken
473 Test-SFTP # Term::ReadPassword prompts in tests
474 Test-WWW-Selenium-More # Test::WWW::Selenium needs devel::repl
475 Text-Clevery # broken
476 Thorium # depends on Hobocamp
477 TryCatch-Error # broken
478 Verby # deps on poe::component::resourcepool
479 Weather-TW # missing dep on Mojo::DOM
480 Web-API-Mapper # broken
481 WebNano-Controller-CRUD # broken
482 WebService-Yes24 # broken
484 WWW-Alltop # XML::SimpleObject configure fail
485 WWW-DataWiki # depends on mxms
486 WWW-Fandango # bad dist
488 WWW-Hashdb # test hangs, pegging cpu
489 WWW-Mechanize-Cached # tries to read from wrong build dir?
490 WWW-Metalgate # Cache is broken
491 WWW-Scramble # pod::coverage fail
492 WWW-Sitemapper # broken
493 WWW-StaticBlog # time::sofar is broken
494 WWW-WebKit # missing configure_req on EU::PkgConfig
495 WWW-Yahoo-Lyrics-JP # broken
496 XIRCD # undeclared deps
497 XML-EPP # coerce without coercion
498 XML-SRS # deps on prang
499 Yukki # git::repository is broken
500 Zucchini # File::Rsync prompts in Makefile.PL