4 use Cwd qw( abs_path );
11 This test will not run unless you set MOOSE_TEST_MD to a true value.
14 all Test every distro which depends on Moose except those that we know
15 cannot be tested. This is a lot of distros (thousands).
17 MooseX Test all Moose extension distros
18 (MooseX modules plus a few others).
20 $true Any other true value runs the default tests. We pick 200 random
21 distros and test them.
25 plan skip_all => $help
26 unless $ENV{MOOSE_TEST_MD};
30 'Archive::Zip' => 0, # or else .zip dists won't be able to be installed
31 'Test::DependentModules' => '0.13',
32 'MetaCPAN::API' => '0.33',
35 use Test::DependentModules qw( test_module );
38 use List::MoreUtils qw(any);
41 diag( 'Test run performed at: '
44 . (Moose->VERSION || 'git repo') );
46 $ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.');
47 delete @ENV{ qw( AUTHOR_TESTING RELEASE_TESTING SMOKE_TESTING ) };
49 $ENV{ANY_MOOSE} = 'Moose';
51 my $mcpan = MetaCPAN::API->new;
52 my $res = $mcpan->post(
53 '/release/_search' => {
54 query => { match_all => {} },
58 { term => { 'release.dependency.module' => 'Moose' } },
59 { term => { 'release.dependency.module' => 'Moose::Role' } },
60 { term => { 'release.dependency.module' => 'Moose::Exporter' } },
61 { term => { 'release.dependency.module' => 'Class::MOP' } },
62 { term => { 'release.dependency.module' => 'MooseX::Role::Parameterized' } },
63 { term => { 'release.dependency.module' => 'Any::Moose' } },
65 { term => { 'release.status' => 'latest' } },
66 { term => { 'release.maturity' => 'released' } },
68 fields => 'distribution'
72 my @skip_prefix = qw(Acme Task Bundle);
77 for my $line (<DATA>) {
79 next unless $line =~ /\S/;
80 if ( $line =~ /^# (\w+)/ ) {
81 die "Invalid action in DATA section ($1)"
82 unless $1 eq 'SKIP' || $1 eq 'TODO';
83 $hash = $1 eq 'SKIP' ? \%skip : \%todo;
86 my ( $dist, $reason ) = $line =~ /^(\S*)\s*(?:#\s*(.*)\s*)?$/;
87 next unless defined $dist && length $dist;
89 $hash->{$dist} = $reason;
93 'App-passmanager' => 'App::PassManager',
94 'App-PipeFilter' => 'App::PipeFilter::Generic',
95 'Constructible' => 'Constructible::Maxima',
96 'DCOLLINS-ANN-Locals' => 'DCOLLINS::ANN::Robot',
97 'Dist-Zilla-Deb' => 'Dist::Zilla::Plugin::Deb::VersionFromChangelog',
98 'Dist-Zilla-Plugins-CJM' => 'Dist::Zilla::Plugin::TemplateCJM',
99 'Dist-Zilla-Plugin-TemplateFile' => 'Dist::Zilla::Plugin::TemplateFiles',
100 'Google-Directions' => 'Google::Directions::Client',
102 'HTML-Untemplate' => 'HTML::Linear',
103 'marc-moose' => 'MARC::Moose',
104 'mobirc' => 'App::Mobirc',
105 'OWL-Simple' => 'OWL::Simple::Class',
106 'Patterns-ChainOfResponsibility' => 'Patterns::ChainOfResponsibility::Application',
107 'Pod-Elemental-Transfomer-VimHTML' => 'Pod::Elemental::Transformer::VimHTML',
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',
119 grep { my $dist = $_; !any { $dist =~ /^$_-/ } @skip_prefix }
120 map { $_->{fields}{distribution} }
121 @{ $res->{hits}{hits} };
123 if ( $ENV{MOOSE_TEST_MD} eq 'MooseX' ) {
124 @dists = grep { /^(?:MooseX-|Fey-ORM)/ } @dists;
126 elsif ( $ENV{MOOSE_TEST_MD} ne 'all' ) {
128 'Picking 200 random dependents to test. Set MOOSE_TEST_MD=all to test all dependents'
132 while ( keys %indexes < 200 ) {
133 $indexes{ int rand( scalar @dists ) } = 1;
136 @dists = @dists[ sort keys %indexes ];
139 plan tests => scalar @dists;
140 for my $dist (@dists) {
143 $module = $name_fix{$module} if exists $name_fix{$module};
145 my $reason = $todo{$dist};
146 $reason = '???' unless defined $reason;
147 local $TODO = $reason;
148 eval { test_module($module); 1 }
149 or fail("Died when testing $module: $@");
152 eval { test_module($module); 1 }
153 or fail("Died when testing $module: $@");
158 # SKIP: indexing issues (test::dm bugs?)
159 Alice # couldn't find on cpan
160 Hopkins # couldn't find on cpan
161 PostScript-Barcode # couldn't find on cpan
162 WWW-Mechanize-Query # couldn't find on cpan
164 # SKIP: doesn't install deps properly (test::dm bugs?)
165 App-Benchmark-Accessors # Mojo::Base isn't installed
166 Bot-BasicBot-Pluggable # Crypt::SaltedHash isn't installed
167 Code-Statistics # MooseX::HasDefaults::RO isn't installed
168 Dist-Zilla-PluginBundle-MITHALDU # List::AllUtils isn't installed
169 Dist-Zilla-Util-FileGenerator # MooseX::HasDefaults::RO isn't installed
170 EBI-FGPT-FuzzyRecogniser # GO::Parser isn't installed
171 Erlang-Parser # Parse::Yapp::Driver isn't installed
172 Foorum # Sphinx::Search isn't installed
173 Grimlock # DBIx::Class::EncodedColumn isn't installed
174 Locale-Handle-Pluggable # MooseX::Types::VariantTable::Declare isn't installed
175 mobirc # HTTP::Session::State::GUID isn't installed
176 Net-Bamboo # XML::Tidy isn't installed
177 Tatsumaki-Template-Markapl # Tatsumaki::Template isn't installed
178 Text-Tradition # Bio::Phylo::IO isn't installed
179 WebService-Strava # Any::URI::Escape isn't installed
182 AI-ExpertSystem-Advanced # no tests
183 API-Assembla # no tests
184 App-mkfeyorm # no tests
185 App-passmanager # no tests
186 App-Scrobble # no tests
187 Bot-Applebot # no tests
188 Catalyst-Authentication-Credential-Facebook-OAuth2 # no tests
189 Catalyst-Authentication-Store-Fey-ORM # no tests
190 Catalyst-Controller-MovableType # no tests
191 Catalyst-Model-MenuGrinder # no tests
193 Data-SearchEngine-ElasticSearch # no tests
194 Dist-Zilla-MintingProfile-Author-ARODLAND # no tests
195 Dist-Zilla-PluginBundle-ARODLAND # no tests
196 Dist-Zilla-PluginBundle-Author-OLIVER # no tests
197 Dist-Zilla-PluginBundle-NUFFIN # no tests
198 Dist-Zilla-Plugin-DualLife # no tests
199 Dist-Zilla-Plugin-GitFlow # no tests
200 Dist-Zilla-Plugin-GitFmtChanges # no tests
201 Dist-Zilla-Plugin-MetaResourcesFromGit # no tests
202 Dist-Zilla-Plugin-ModuleBuild-OptionalXS # no tests
203 Dist-Zilla-Plugin-Rsync # no tests
204 Dist-Zilla-Plugin-TemplateFile # no tests
205 Dist-Zilla-Plugin-UploadToDuckPAN # no tests
206 Finance-Bank-SuomenVerkkomaksut # no tests
207 Games-HotPotato # no tests
209 JIRA-Client-REST # no tests
210 Kafka-Client # no tests
211 LWP-UserAgent-OfflineCache # no tests
212 Markdown-Pod # no tests
213 MooseX-Types-DateTimeX # no tests
214 MooseX-Types-DateTime-MoreCoercions # no tests unless DateTime::Format::DateManip is installed
215 Net-Azure-BlobService # no tests
216 Net-Dropbox # no tests
217 Net-Flowdock # no tests
218 Net-OpenStack-Attack # no tests
219 Net-Ostrich # no tests
220 Net-Recurly # no tests
221 OpenDocument-Template # no tests
222 Pod-Weaver-Section-Consumes # no tests
223 Pod-Weaver-Section-Encoding # no tests
224 Pod-Weaver-Section-Extends # no tests
225 POE-Component-Server-MySQL # no tests
226 Random-Quantum # no tests
227 SchemaEvolution # no tests
229 Test-System # no tests
230 Test-WWW-Mechanize-Dancer # no tests
231 WebService-Buxfer # no tests
232 WebService-CloudFlare-Host # no tests
233 WWW-MenuGrinder # no tests
236 # SKIP: external dependencies
237 AnyEvent-MSN # requires Net::SSLeay (which requires libssl)
238 AnyEvent-Multilog # requires multilog
239 AnyEvent-Net-Curl-Queued # requires libcurl
240 AnyEvent-ZeroMQ # requires zeromq installation
241 AnyMQ-ZeroMQ # requires zeromq installation
242 Apache2-HttpEquiv # requires apache (for mod_perl)
243 App-Mimosa # requires fastacmd
244 App-PgCryobit # requires postgres installation
245 Archive-RPM # requires cpio
246 Bot-Jabbot # requires libidn
247 Catalyst-Engine-Stomp # depends on alien::activemq
248 Catalyst-Plugin-Session-Store-Memcached # requires memcached
249 Cave-Wrapper # requires cave to be installed
250 CHI-Driver-Redis # requires redis server
251 Crypt-Random-Source-Strong-Win32 # windows only
252 Curses-Toolkit # requires Curses which requires ncurses library
253 Dackup # requires ssh
254 Data-Collector # requires ssh
255 DBIx-PgLink # requires postgres installation
256 Dist-Zilla-Plugin-Subversion # requires svn bindings
257 Dist-Zilla-Plugin-SVK # requires svn bindings
258 Dist-Zilla-Plugin-SvnObtain # requires svn bindings
259 Fedora-App-MaintainerTools # requires rpm to be installed
260 Fedora-App-ReviewTool # requires koji to be installed
261 Fuse-Template # requires libfuse
262 Games-HotPotato # requires sdl
263 Games-Tetris-Complete # requires threads
265 HTML-Barcode-QRCode # requires libqrencode
266 IRC-RemoteControl # requires libssh2
267 JavaScript-Sprockets # requires sprocketize
268 JavaScript-V8x-TestMoreish # requires v8
269 Koha-Contrib-Tamil # requires yaz
271 Lighttpd-Control # requires lighttpd
272 Lingua-TreeTagger # requires treetagger to be installed
273 Math-Lsoda # requires f77
274 MongoDBI # requires mongo
275 MongoDB # requires mongo
276 MSWord-ToHTML # requires abiword to be installed
277 Net-DBus-Skype # requires dbus
278 Net-Route # requires route
279 Net-SFTP-Foreign-Exceptional # depends on running ssh
280 Net-UpYun # requires curl
281 Net-ZooTool # requires curl
282 Nginx-Control # requires nginx to be installed
283 NLP-Service # requires javac
284 Padre-Plugin-Moose # requires threaded perl
285 Padre-Plugin-PDL # requires threaded perl
286 Padre-Plugin-Snippet # requires threaded perl
287 Paludis-UseCleaner # depends on cave::wrapper
288 Perlanet # HTML::Tidy requires tidyp
289 Perl-Dist-Strawberry-BuildPerl-5123 # windows only
290 Perl-Dist-Strawberry-BuildPerl-5123 # windows only
291 Perl-Dist-WiX-BuildPerl-5123 # windows only
292 Perl-Dist-WiX # windows only
293 Perl-Dist-WiX # windows only
294 POE-Component-OpenSSH # requires ssh
295 RDF-TrineX-RuleEngine-Jena # requires Jena
296 SimpleDB-Class # requires memcached
297 SVN-Simple-Hook # requires svn
298 SVN-Tree # requires svn
299 Template-JavaScript # requires v8
300 TheSchwartz-Moosified # requires DBI::Pg ?
301 WebService-SendGrid # requires curl
302 WebService-Tesco-API # requires curl
303 WWW-Contact # depends on curl
304 WWW-Curl-Simple # requires curl
305 ZeroMQ-PubSub # requires zmq
306 ZMQ-Declare # requires zmq
308 # SKIP: flaky internet tests
309 iTransact-Lite # tests rely on internet site
310 Unicode-Emoji-E4U # tests rely on internet site
311 WWW-eNom # tests rely on internet site
312 WWW-Finances-Bovespa # tests rely on internet site
313 WWW-Vimeo-Download # tests rely on internet site
314 WWW-YouTube-Download-Channel # tests rely on internet site
317 App-CPAN2Pkg # tk tests are graphical
318 App-USBKeyCopyCon # gtk tests are graphical
319 CatalystX-Restarter-GTK # gtk tests are graphical
320 Forest-Tree-Viewer-Gtk2 # gtk tests are graphical
321 Games-Pandemic # tk tests are graphical
322 Games-RailRoad # tk tests are graphical
323 Games-Risk # tk tests are graphical
324 Log-Dispatch-Gtk2-Notify # gtk tests are graphical
325 LPDS # gtk tests are graphical
326 Periscope # gtk tests are graphical
327 Tk-Role-Dialog # tk tests are graphical
328 Weaving-Tablet # tk tests are graphical
330 # SKIP: prompts (or a dep prompts) or does something else dumb
331 Bot-Backbone # poe-loop-ev prompts
332 Cache-Ehcache # hangs if server exists on port 8080
333 CM-Permutation # OpenGL uses graphics in Makefile.PL
334 Date-Biorhythm # Date::Business prompts in Makefile.PL
335 Gearman-Driver # spews tar errors
336 Net-SSH-Mechanize # the mock-ssh script it runs seems to spin endlessly
337 WWW-Hashdb # test hangs, pegging cpu
338 Zucchini # File::Rsync prompts in Makefile.PL
340 # TODO: failing for a reason
341 Algorithm-KernelKMeans # mx-types-common changes broke it
342 AnyEvent-BitTorrent # broken
343 AnyEvent-Cron # intermittent failures
344 AnyEvent-Inotify-Simple # ??? (maybe issue with test::sweet)
345 AnyEvent-JSONRPC # tests require recommended deps
346 AnyEvent-Retry # mx-types-common changes broke it
347 AnyMongo # doesn't compile
348 App-ArchiveDevelCover # depends on nonexistent testdata::setup
349 App-Dataninja # bad M::I install in inc/
350 App-Fotagger # Imager doesn't compile
351 App-Magpie # deps on URPM which doesn't exist
352 App-MediaWiki2Git # git::repository is broken
353 App-Munchies # depends on XML::DTD
354 App-TemplateServer # broken use of types
355 App-TemplateServer-Provider-HTML-Template # dep on app-templateserver
356 App-TemplateServer-Provider-Mason # dep on app-templateserver
357 App-TemplateServer-Provider-TD # dep on app-templateserver
358 App-Twimap # dep on Web::oEmbed::Common
359 App-Validation-Automation # dep on Switch
361 Beagle # depends on term::readline::perl
362 Cache-Profile # broken
363 Catalyst-Authentication-Store-LDAP-AD-Class # pod coverage fail
364 Catalyst-Controller-Resources # broken
365 Catalyst-Controller-SOAP # broken
366 Catalyst-Model-Sedna # deps on Alien-Sedna which doesn't exist
367 Catalyst-Plugin-Continuation # undeclared dep
368 Catalyst-Plugin-Session-State-Cookie # broken
369 Catalyst-Plugin-Session-Store-TestMemcached # dep with corrupt archive
370 Catalyst-Plugin-SwiffUploaderCookieHack # undeclared dep
371 Catalyst-TraitFor-Request-PerLanguageDomains # dep on ::State::Cookie
372 CatalystX-I18N # dep on ::State::Cookie
373 CatalystX-MooseComponent # broken
374 CatalystX-SimpleLogin # broken
375 CatalystX-Usul # proc::processtable doesn't load
376 Cheater # parse::randgen is broken
377 Class-OWL # uses CMOP::Class without loading cmop
378 Cogwheel # uses ancient moose apis
379 Config-Model # broken
380 Config-Model-Backend-Augeas # deps on Config::Model
381 Config-Model-OpenSsh # deps on Config::Model
382 Constructible # GD::SVG is a broken dist
383 Constructible-Maxima # GD::SVG is a broken dist
384 Coro-Amazon-SimpleDB # amazon::simpledb::client doesn't exist
385 CPAN-Digger # requires DBD::SQLite
386 Data-AMF # missing dep on YAML
387 Data-Apache-mod_status # invalid characters in type name
388 Data-Edit # dist is missing some modules
389 Data-Feed # broken (only sometimes?)
390 Data-PackageName # broken
391 Data-Pipeline # uses ancient moose apis
392 Data-SCORM # pod coverage fail
393 DayDayUp # MojoX-Fixup-XHTML doesn't exist
394 DBICx-Modeler-Generator # broken (weirdly)
395 DBIx-SchemaChecksum # broken
396 Debian-Apt-PM # configure time failures
397 Devel-Events # broken (role conflict)
398 Dist-Zilla-Deb # pod coverage fail
399 Dist-Zilla-Plugin-ChangelogFromGit-Debian # git::repository is broken
400 Dist-Zilla-Plugin-ProgCriticTests # broken
401 DustyDB # uses old moose apis
403 Facebook-Graph # broken
404 Fedora-Bugzilla # deps on nonexistent things
405 FFmpeg-Thumbnail # undeclared dep
406 File-DataClass # XML::DTD is a broken dist
407 File-Stat-Moose # old moose apis
408 File-Tail-Dir # intermittent fails (i think)
409 Form-Factory # uses old moose apis
410 FormValidator-Nested # broken
412 Games-Dice-Loaded # flaky tests
414 GOBO # coerce with no coercion
415 Google-Chart # recreating type constraints
416 Google-Spreadsheet-Agent # pod::coverage fail
417 Hobocamp # configure_requires needs EU::CChecker
418 Horris # App::Horris isn't on cpan
419 HTML-Grabber # pod::coverage fail
420 HTML-TreeBuilderX-ASP_NET # broken
421 HTTP-Engine-Middleware # missing dep on yaml
422 Image-Robohash # Graphics::Magick doesn't exist
423 JavaScript-Framework-jQuery # coerce with no coercion
424 Jifty # Test::WWW::Selenium needs devel::repl
427 Kamaitachi # pod::coverage fail
428 KiokuDB-Backend-Files # broken
429 LaTeX-TikZ # broken (with moose)
430 marc-moose # broken (only sometimes?)
431 Mail-Summary-Tools # DT::Format::DateManip is broken
432 MediaWiki-USERINFO # broken
433 Method-Signatures # doesn't like ANY_MOOSE=Moose
434 mobirc # http::engine broken
435 MooseX-Attribute-Prototype # uses old moose apis
436 MooseX-DBIC-Scaffold # needs unreleased sql-translator
437 MooseX-Documenter # broken
438 MooseX-DOM # "no Moose" unimports confess
439 MooseX-Error-Exception-Class # metaclass compat breakage
440 MooseX-Getopt-Usage # missing dep on Test::Class
441 MooseX-Meta-Attribute-Index # old moose apis
442 MooseX-Meta-Attribute-Lvalue # old moose apis
443 MooseX-Struct # ancient moose apis
444 MooseX-Types-Parameterizable # broken
445 MooseX-WithCache # broken
446 MouseX-Types # broken (with moose)
447 MySQL-Util # pod-coverage fail
448 Nagios-Passive # broken
449 Net-APNS # broken (with moose)
451 Net-Fluidinfo # broken
452 Net-Google-Blogger # broken
453 Net-Google-FederatedLogin # broken
454 NetHack-Item # NH::Monster::Spoiler is broken
455 NetHack-Monster-Spoiler # broken (MX::CA issues)
456 Net-HTTP-Factual # broken
459 Net-Parliament # broken
461 Net-SSLeay-OO # broken
462 Net-StackExchange # broken
463 Norma # fails when trying to write to a read-only SQLite db file under jenkins, also fails when run manually
464 ODG-Record # Test::Benchmark broken
465 Perlbal-Control # proc::processtable doesn't load
466 Pg-BulkCopy # hardcodes /usr/bin/perl
467 Pinto-Common # broken
468 Pinto-Server # deps on pinto::common
469 Plack-Middleware-Image-Scale # Image::Scale is broken
470 Pod-Parser-I18N # missing dep on Data::Localize
471 POE-Component-CPAN-Mirror-Multiplexer # broken
472 POE-Component-DirWatch # intermittent failures
473 POE-Component-DirWatch-Object # intermittent failures
474 POE-Component-ResourcePool # broken
475 POE-Component-Server-PSGI # broken deps
476 POE-Component-Server-SimpleHTTP-PreFork # broken deps
477 Poet # missing dep on Log::Any::Adapter::Log4perl
478 POEx-ProxySession # broken deps
479 POEx-PubSub # broken deps
480 POEx-WorkerPool # broken deps
481 PostScript-ScheduleGrid-XMLTV # XMLTV doesn't exist
483 Prophet # depends on term::readline::perl
485 Railsish # dep on nonexistent dist
486 RDF-Server # "no Moose" unimports confess
487 Reaction # signatures is broken
488 Reflexive-Role-DataMover # broken (reflex::role changes?)
489 Reflexive-Role-TCPServer # broken (reflex::role changes?)
490 Reflexive-Stream-Filtering # broken
492 Scene-Graph # has '+attr' in roles
493 Server-Control # proc::processtable doesn't load
494 Shipment # locale::subcountry is broken
495 Silki # image::magick is broken
496 SilkiX-Converter-Kwiki # file::mimeinfo expects (?-xism:
497 Sloth # rest::utils is broken
498 Sque # couldn't fork server for testing
499 SRS-EPP-Proxy # depends on xml::epp
500 String-Blender # broken
502 Tail-Tool # Getopt::Alt doesn't exist
503 Tapper-CLI # sys::info::driver::linux is broken
504 Tapper-Installer # sys::info::driver::linux is broken
505 Tapper-MCP-MessageReceiver # sys::info::driver::linux is broken
506 Tapper-Reports-API # sys::info::driver::linux is broken
507 Tapper-Testplan # sys::info::driver::linux is broken
508 Telephone-Mnemonic-US # rpm-build-perl is broken
509 Template-Plugin-Heritable # weird dep issues (not test::dm related)
511 Test-Daily # configure errors
512 Test-Pockito # broken
513 Test-SFTP # Term::ReadPassword prompts in tests
514 Test-WWW-Selenium-More # Test::WWW::Selenium needs devel::repl
515 Text-Clevery # broken
516 Thorium # depends on Hobocamp
517 TryCatch-Error # broken
518 Verby # deps on poe::component::resourcepool
519 Weather-TW # missing dep on Mojo::DOM
520 Web-API-Mapper # broken
521 WebNano-Controller-CRUD # broken
522 Webservice-Intermine # broken tests
523 WebService-Yes24 # broken
525 WWW-Alltop # XML::SimpleObject configure fail
526 WWW-DataWiki # broken
527 WWW-Fandango # bad dist
529 WWW-Mechanize-Cached # tries to read from wrong build dir?
530 WWW-Metalgate # Cache is broken
531 WWW-Scramble # pod::coverage fail
532 WWW-Sitemapper # broken
533 WWW-StaticBlog # time::sofar is broken
534 WWW-WebKit # missing configure_req on EU::PkgConfig
535 WWW-Yahoo-Lyrics-JP # broken
536 XIRCD # undeclared deps
537 XML-EPP # coerce without coercion
538 XML-SRS # deps on prang
539 XML-Writer-Compiler # broken tests
540 Yukki # git::repository is broken