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