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