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