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