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