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