couple more dists tested
[gitmo/Moose.git] / xt / author / test-my-dependents.t
CommitLineData
f81522ba 1use strict;
2use warnings;
3
4use Cwd qw( abs_path );
5use Test::More;
6
52c21688 7BEGIN {
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};
10}
f81522ba 11
4d438a84 12use Test::Requires {
f578f218 13 'Archive::Zip' => 0, # or else .zip dists won't be able to be installed
03fd72d0 14 'Test::DependentModules' => '0.09', # skip all if not installed
479647ca 15 'MetaCPAN::API' => '0.33',
4d438a84 16};
dd36d4e9 17use Test::DependentModules qw( test_all_dependents test_modules );
f81522ba 18
7028866a 19use DateTime;
479647ca 20use List::MoreUtils qw(any);
7028866a 21use Moose ();
7028866a 22
41a0b2a9 23diag( 'Test run performed at: '
24 . DateTime->now
479647ca 25 . ' with Moose '
41a0b2a9 26 . Moose->VERSION );
7028866a 27
f81522ba 28$ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.');
e2f01bb9 29delete @ENV{ qw( AUTHOR_TESTING RELEASE_TESTING SMOKE_TESTING ) };
f81522ba 30
28885fe7 31$ENV{ANY_MOOSE} = 'Moose';
32
479647ca 33my $mcpan = MetaCPAN::API->new;
34my $res = $mcpan->post(
35 '/release/_search' => {
36 query => { match_all => {} },
37 size => 5000,
38 filter => { and => [
39 { or => [
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' } },
28885fe7 45 { term => { 'release.dependency.module' => 'Any::Moose' } },
479647ca 46 ] },
47 { term => { 'release.status' => 'latest' } },
48 { term => { 'release.maturity' => 'released' } },
49 ] },
50 fields => 'distribution'
51 }
52);
f81522ba 53
479647ca 54my %skip = map { $_ => 1 } grep { /\w/ } map { chomp; s/\s*#.*$//; $_ } <DATA>;
55my @skip_prefix = qw(Acme Task Bundle);
56my %name_fix = (
57 'App-PipeFilter' => 'App::PipeFilter::Generic',
58 'Constructible' => 'Constructible::Maxima',
59 'DCOLLINS-ANN-Locals' => 'DCOLLINS::ANN::Robot',
60 'Dist-Zilla-Deb' => 'Dist::Zilla::Plugin::Deb::VersionFromChangelog',
61 'Dist-Zilla-Plugin-TemplateFile' => 'Dist::Zilla::Plugin::TemplateFiles',
62 'Dist-Zilla-Plugins-CJM' => 'Dist::Zilla::Plugin::TemplateCJM',
63 'OWL-Simple' => 'OWL::Simple::Class',
64 'Patterns-ChainOfResponsibility' => 'Patterns::ChainOfResponsibility::Application',
65 'Role-Identifiable' => 'Role::Identifiable::HasIdent',
66 'X11-XCB' => 'X11::XCB::Connection',
67 'XML-Ant-BuildFile' => 'XML::Ant::BuildFile::Project',
68 'helm' => 'Helm',
69 'marc-moose' => 'MARC::Moose',
70 'mobirc' => 'App::Mobirc',
71 'smokebrew' => 'App::SmokeBrew',
72 'v6-alpha' => 'v6',
73);
74my @modules = map { exists $name_fix{$_} ? $name_fix{$_} : $_ }
75 sort
76 grep { !$skip{$_} }
77 grep { my $dist = $_; !any { $dist =~ /^$_-/ } @skip_prefix }
78 map { $_->{fields}{distribution} }
79 @{ $res->{hits}{hits} };
80
81plan tests => scalar @modules;
82test_modules(@modules);
c5e3151e 83
734e40ed 84# Modules that are known to fail
85# PRANG - failing for quite some time (since before 2.0400)
86
c5e3151e 87__DATA__
479647ca 88# won't build, for actual reasons:
6e017ae3 89App-CPAN2Pkg # Tk doesn't compile
90App-Fotagger # Imager doesn't compile
91Black-Board # not found on cpan because of mxd
92CM-Permutation # OpenGL uses graphics in Makefile.PL
93Dackup # depends on running ssh
94Date-Biorhythm # Date::Business prompts in Makefile.PL
95Data-Collector # depends on running ssh
96POE-Component-OpenSSH # depends on running ssh
97Perl-Dist-Strawberry-BuildPerl-5123 # windows only
98Perl-Dist-WiX # windows only
99Perl-Dist-WiX-BuildPerl-5123 # windows only
100Test-SFTP # Term::ReadPassword prompts in tests
101VirtualBox-Manage # not found on cpan because of mxd
102helm # depends on running ssh
479647ca 103
104# won't build, for unknown reasons
6e017ae3 105App-HistHub # ???
106App-Twitch # ???
107CPAN-Patches # ???
108CPAN-Patches-Plugin-Debian # ???
109Debian-Apt-PM # ???
110Dist-Zilla-Plugin-BuildSelf # ???
111Dist-Zilla-Plugin-ModuleBuildTiny # ???
112Dist-Zilla-Plugin-Test-DistManifest # ???
113Dist-Zilla-Plugin-Test-Portability # ???
114Dist-Zilla-Plugin-Test-Synopsis # ???
115Dist-Zilla-Plugin-Test-UnusedVars # ???
116Lingua-TreeTagger # ???
117POE-Component-CPAN-Mirror-Multiplexer # ???
118POE-Component-Client-CouchDB # ???
119POE-Component-Github # ???
120POE-Component-Metabase-Relay-Server # ???
121POE-Component-Server-SimpleHTTP-PreFork # ???
122Tapper-Testplan # ??? (hangs)
123Test-Daily # ???
124WWW-Alltop # ???
125WWW-Hashdb # ??? (hangs, pegging cpu)
126WebService-Async # ??? (hangs, pegging cpu)
127WebService-LOC-CongRec # ???
128Zucchini # ??? (hangs)
479647ca 129
130# not in cpan index for some reason
6e017ae3 131Hopkins # not found on cpan (?)
132PostScript-Barcode # not found on cpan (?)
479647ca 133
8f655ca2 134# failing for a reason
135AI-ExpertSystem-Advanced # no tests
136API-Assembla # no tests
137Algorithm-KernelKMeans # mx-types-common changes broke it
e8ba9394 138Alien-ActiveMQ # can't install activemq
8f655ca2 139AnyEvent-Inotify-Simple # ??? (maybe issue with test::sweet)
140AnyEvent-JSONRPC # tests require recommended deps
141AnyEvent-Retry # mx-types-common changes broke it
142AnyEvent-ZeroMQ # requires zeromq installation
143App-Dataninja # bad M::I install in inc/
144App-ForExample # getopt::chain is broken
145App-Magpie # deps on URPM which doesn't exist
146App-PgCryobit # requires postgres installation
147App-TemplateServer # broken use of types
148App-TemplateServer-Provider-HTML-Template # dep on app-templateserver
149App-TemplateServer-Provider-Mason # dep on app-templateserver
150App-TemplateServer-Provider-TD # dep on app-templateserver
151App-TimeTracker # git::repository is broken
152App-USBKeyCopyCon # gtk tests are graphical
153App-mkfeyorm # no tests
154Archive-RPM # requires cpio
155Bio-MAGETAB # datetime-format-datemanip is broken
156Bot-Applebot # no tests
157Bot-Backbone # broken deps
158Business-UPS-Tracking # broken
159CHI-Driver-Redis # requires redis server
160CPAN-Mini-Webserver # undeclared dep on lingua-stopwords
161Cache-Profile # broken
162Catalyst-Authentication-Credential-Facebook-OAuth2 # no tests
163Catalyst-Authentication-Store-Fey-ORM # no tests
164Catalyst-Authentication-Store-LDAP-AD-Class # pod coverage fail
165Catalyst-Controller-MovableType # no tests
166Catalyst-Controller-Resources # broken
e8ba9394 167Catalyst-Engine-Stomp # requires alien::activemq
168Catalyst-Model-MenuGrinder # no tests
169Catalyst-Model-Search-ElasticSearch # requires elasticsearch
170Catalyst-Model-Sedna # deps on Alien-Sedna which doesn't exist
171Catalyst-Plugin-Continuation # undeclared dep
172Catalyst-Plugin-ErrorCatcher-ActiveMQ-Stomp # pod coverage fail
173Catalyst-Plugin-SwiffUploaderCookieHack # undeclared dep
174Catalyst-TraitFor-Component-ConfigPerSite # undeclared dep
175Catalyst-TraitFor-Controller-jQuery-jqGrid # bad test (missing files)
176CatalystX-MooseComponent # broken
177CatalystX-Restarter-GTK # gtk tests are graphical
178CatalystX-RoleApplicator # broken
179CatalystX-SimpleAPI # depends on ::RoleApplicator
180CatalystX-SimpleLogin # broken
181CatalystX-Usul # proc::processtable doesn't load
182Cave-Wrapper # requires cave to be installed
183Cheater # parse::randgen is broken
184Class-OWL # uses CMOP::Class without loading cmop
185Cogwheel # uses ancient moose apis
186Constructible # GD::SVG is a broken dist
187Coro-Amazon-SimpleDB # amazon::simpledb::client doesn't exist
cf9832d2 188DBICx-Modeler-Generator # broken (weirdly)
189DBIx-PgLink # requires postgres installation
190DBIx-SchemaChecksum # broken
191Data-Apache-mod_status # invalid characters in type name
192Data-PackageName # broken
193Data-Pipeline # uses ancient moose apis
194DayDayUp # MojoX-Fixup-XHTML doesn't exist
195Devel-Events # broken (role conflict)
8f655ca2 196
197# dep resolution failures or something (these pass when run manually)
479647ca 198AXL-Client-Simple
479647ca 199Alien-Ditaa
479647ca 200App-Benchmark-Accessors
479647ca 201Bot-BasicBot-Pluggable
202Bot-BasicBot-Pluggable-Module-JIRA
479647ca 203CPAN-Digger
479647ca 204Cantella-Worker
205Cantella-Worker-Role-Beanstalk
479647ca 206Catalyst-Plugin-Session
479647ca 207Catalyst-View-ByCode
208Catalyst-View-RDF
209CatalystX-Declare
479647ca 210CatalystX-Syntax-Action
479647ca 211Chart-Clicker
212Chart-Weather-Forecast
479647ca 213Chef
479647ca 214Code-Statistics
479647ca 215Crypt-PBKDF2
216Curses-Toolkit
479647ca 217DBIx-Class-DeploymentHandler
479647ca 218Data-SearchEngine-ElasticSearch
479647ca 219Devel-IntelliPerl
cf9832d2 220
221# failing for some reason or another (need to look into this)
479647ca 222Dist-Zilla-Plugin-DualLife
223Dist-Zilla-Plugin-GitFlow
224Dist-Zilla-Plugin-MetaResourcesFromGit
225Dist-Zilla-Plugin-ProgCriticTests
226Dist-Zilla-Plugin-Rsync
227Dist-Zilla-Plugin-SVK
228Dist-Zilla-Plugin-Test-CPAN-Changes
229Dist-Zilla-Plugin-Test-Kwalitee
230Dist-Zilla-PluginBundle-ARODLAND
231Dist-Zilla-PluginBundle-Author-OLIVER
232Dist-Zilla-PluginBundle-FLORA
233Dist-Zilla-PluginBundle-NIGELM
234Dist-Zilla-PluginBundle-NUFFIN
235Dist-Zilla-PluginBundle-RBUELS
236DustyDB
237ELF-Extract-Sections
238ETLp
239FCGI-Engine
240FFmpeg-Thumbnail
241Fedora-App-MaintainerTools
242Fedora-App-ReviewTool
243Fey-SQL-Pg
244File-DataClass
245Finance-Bank-SentinelBenefits-Csv401kConverter
246Finance-Bank-SuomenVerkkomaksut
247Forest-Tree-Viewer-Gtk2
248Form-Factory
249Frost
250GOBO
251Games-AssaultCube
252Games-HotPotato
253Games-Pandemic
254Games-RailRoad
255Games-Risk
256Games-Tetris-Complete
257Gearman-Driver
258Geo-Calc
259Getopt-Chain
260Gitalist
261Google-Spreadsheet-Agent
262Grades
263Graphics-Primitive-Driver-Cairo
264Graphics-Primitive-Driver-CairoPango
265HTML-FormHandler
266HTML-FormHandler-Model-DBIC
267HTML-TreeBuilderX-ASP_NET
268Hobocamp
269Horris
270IM-Engine-Plugin-Dispatcher
271IMS-CP-Manifest
272IO-Multiplex-Intermediary
273Image-Placeholder
274JavaScript-Framework-jQuery
275Jungle
276Kafka-Client
277Kamaitachi
278KiokuDB-Backend-BDB
279KiokuDB-Backend-Files
280LWP-UserAgent-OfflineCache
281Locale-Handle-Pluggable
282Locale-MO-File
283Log-Dispatch-Gtk2-Notify
284MSWord-ToHTML
285Mail-Summary-Tools
286Mason
287MediaWiki-USERINFO
288Mildew
289MooseX-APIRole
290MooseX-Attribute-Prototype
291MooseX-AutoImmute
292MooseX-DBIC-Scaffold
293MooseX-DOM
294MooseX-Declare
295MooseX-Documenter
296MooseX-Error-Exception-Class
297MooseX-Meta-Attribute-Index
298MooseX-Meta-Attribute-Lvalue
299MooseX-Method-Signatures
300MooseX-MultiMethods
301MooseX-MultiObject
302MooseX-POE
303MooseX-Params
304MooseX-Struct
305MooseX-TrackDirty-Attributes
306MooseX-Workers
307Net-Douban
308Net-Dropbox
309Net-FluidDB
310Net-Fluidinfo
311Net-HTTP-Factual
312Net-Journyx
313Net-Parliament
314Net-Plurk
315Net-Recurly
316Net-StackExchange
317Net-Topsy
318NetHack-Item
319NetHack-Monster-Spoiler
320Nginx-Control
321ODG-Record
322POE-Component-Client-MPD
323POE-Component-DirWatch
324POE-Component-DirWatch-Object
325POE-Component-IRC-Plugin-Role
326POE-Component-MessageQueue
327POE-Component-ResourcePool
328POE-Component-Server-MySQL
329POE-Component-Server-PSGI
330POE-Component-Server-SimpleHTTP
331POE-Test-Helpers
332POEx-ProxySession
333POEx-PubSub
334POEx-WorkerPool
335Paludis-UseCleaner
336Parse-CPAN-Ratings
337Parse-FixedRecord
338Perlanet
339Perlbal-Control
340Pg-BulkCopy
341Pod-Weaver-Section-Encoding
342Proc-Safetynet
343Queue-Leaky
344RDF-Server
345RPC-Any
346Random-Quantum
536a71ad 347Reaction
9423490e 348Reflex
479647ca 349Reflexive-Role-Collective
350Reflexive-Role-DataMover
351Reflexive-Role-TCPServer
352Reflexive-Stream-Filtering
353SRS-EPP-Proxy
354STD
355Scene-Graph
356Schedule-Pluggable
357SchemaEvolution
358Server-Control
359SilkiX-Converter-Kwiki
360SimpleDB-Class
361String-Blender
362TAEB
363Tail-Tool
364Tapper-Installer
365Tapper-MCP
366Tapper-MCP-MessageReceiver
367Tapper-Reports-API
368Telephone-Mnemonic-US
369Template-Plugin-Heritable
370Test-A8N
371Test-BDD-Cucumber
372Test-Sweet
373Test-System
374Thorium
375Tk-Role-Dialog
9423490e 376TryCatch
479647ca 377TryCatch-Error
378VANAMBURG-SEMPROG-SimpleGraph
379VCI
380Verby
381W3C-XMLSchema
382WWW-FMyLife
383WWW-Fandango
384WWW-Getsy
385WWW-Getsy
386WWW-Mechanize-Cached
387WWW-MenuGrinder
388WWW-Metalgate
389WWW-Scramble
390WWW-StaticBlog
391WWW-Yahoo-Lyrics-JP
392Weaving-Tablet
393WebNano-Controller-CRUD
394WebService-Buxfer
395WebService-CloudFlare-Host
396WebService-SlimTimer
397WebService-Yes24
398WiX3
399XIRCD
400XML-Ant-BuildFile
401XML-EPP
402XML-LibXSLT-Easy
403XML-Rabbit
404XML-Schematron
405YUM-RepoQuery
406Yukki
407mobirc
408namespace-alias