1bf336c831156540c3c2953636713dc0999878fe
[gitmo/Moose.git] / xt / author / test-my-dependents.t
1 use strict;
2 use warnings;
3
4 use Cwd qw( abs_path );
5 use Test::More;
6
7 BEGIN {
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 }
11
12 use Test::Requires {
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',
16 };
17 use Test::DependentModules qw( test_all_dependents test_modules );
18
19 use DateTime;
20 use List::MoreUtils qw(any);
21 use Moose ();
22
23 diag(     'Test run performed at: '
24         . DateTime->now
25         . ' with Moose '
26         . Moose->VERSION );
27
28 $ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.');
29 delete @ENV{ qw( AUTHOR_TESTING RELEASE_TESTING SMOKE_TESTING ) };
30
31 $ENV{ANY_MOOSE} = 'Moose';
32
33 my $mcpan = MetaCPAN::API->new;
34 my $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' } },
45                 { term => { 'release.dependency.module' => 'Any::Moose' } },
46             ] },
47             { term => { 'release.status'   => 'latest' } },
48             { term => { 'release.maturity' => 'released' } },
49         ] },
50         fields => 'distribution'
51     }
52 );
53
54 my %skip = map { $_ => 1 } grep { /\w/ } map { chomp; s/\s*#.*$//; $_ } <DATA>;
55 my @skip_prefix = qw(Acme Task Bundle);
56 my %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 );
74 my @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
81 plan tests => scalar @modules;
82 test_modules(@modules);
83
84 # Modules that are known to fail
85 # PRANG - failing for quite some time (since before 2.0400)
86
87 __DATA__
88 # not in cpan index
89 Black-Board                            # not found on cpan because of mxd
90 Hopkins                                # not found on cpan (?)
91 PostScript-Barcode                     # not found on cpan (?)
92 VirtualBox-Manage                      # not found on cpan because of mxd
93
94 # no tests
95 AI-ExpertSystem-Advanced
96 API-Assembla
97 App-mkfeyorm
98 Bot-Applebot
99 Catalyst-Authentication-Credential-Facebook-OAuth2
100 Catalyst-Authentication-Store-Fey-ORM
101 Catalyst-Controller-MovableType
102 Catalyst-Model-MenuGrinder
103 Chef
104 Data-SearchEngine-ElasticSearch
105 Dist-Zilla-Plugin-DualLife
106 Dist-Zilla-Plugin-GitFlow
107 Dist-Zilla-Plugin-MetaResourcesFromGit
108 Dist-Zilla-Plugin-Rsync
109 Dist-Zilla-PluginBundle-ARODLAND
110 Dist-Zilla-PluginBundle-Author-OLIVER
111 Dist-Zilla-PluginBundle-NUFFIN
112 Games-HotPotato
113 Kafka-Client
114 LWP-UserAgent-OfflineCache
115 Net-Dropbox
116 Net-Recurly
117 Pod-Weaver-Section-Encoding
118 POE-Component-Server-MySQL
119 Random-Quantum
120 SchemaEvolution
121 STD
122 Test-System
123 WebService-Buxfer
124 WebService-CloudFlare-Host
125 WWW-MenuGrinder
126
127 # failing for a reason
128 Algorithm-KernelKMeans                 # mx-types-common changes broke it
129 Alien-ActiveMQ                         # can't install activemq
130 AnyEvent-Inotify-Simple                # ??? (maybe issue with test::sweet)
131 AnyEvent-JSONRPC                       # tests require recommended deps
132 AnyEvent-Retry                         # mx-types-common changes broke it
133 AnyEvent-ZeroMQ                        # requires zeromq installation
134 App-CPAN2Pkg                           # Tk doesn't compile
135 App-Dataninja                          # bad M::I install in inc/
136 App-ForExample                         # getopt::chain is broken
137 App-Fotagger                           # Imager doesn't compile
138 App-HistHub                            # missing dep on JSON.pm
139 App-Magpie                             # deps on URPM which doesn't exist
140 App-PgCryobit                          # requires postgres installation
141 App-TemplateServer                     # broken use of types
142 App-TemplateServer-Provider-HTML-Template  # dep on app-templateserver
143 App-TemplateServer-Provider-Mason      # dep on app-templateserver
144 App-TemplateServer-Provider-TD         # dep on app-templateserver
145 App-TimeTracker                        # git::repository is broken
146 App-USBKeyCopyCon                      # gtk tests are graphical
147 Archive-RPM                            # requires cpio
148 Bio-MAGETAB                            # datetime-format-datemanip is broken
149 Bot-Backbone                           # broken deps
150 Business-UPS-Tracking                  # broken
151 Cache-Profile                          # broken
152 Catalyst-Authentication-Store-LDAP-AD-Class  # pod coverage fail
153 Catalyst-Controller-Resources          # broken
154 Catalyst-Engine-Stomp                  # requires alien::activemq
155 Catalyst-Model-Search-ElasticSearch    # requires elasticsearch
156 Catalyst-Model-Sedna                   # deps on Alien-Sedna which doesn't exist
157 Catalyst-Plugin-Continuation           # undeclared dep
158 Catalyst-Plugin-ErrorCatcher-ActiveMQ-Stomp  # pod coverage fail
159 Catalyst-Plugin-SwiffUploaderCookieHack  # undeclared dep
160 Catalyst-TraitFor-Component-ConfigPerSite  # undeclared dep
161 Catalyst-TraitFor-Controller-jQuery-jqGrid  # bad test (missing files)
162 CatalystX-MooseComponent               # broken
163 CatalystX-Restarter-GTK                # gtk tests are graphical
164 CatalystX-RoleApplicator               # broken
165 CatalystX-SimpleAPI                    # depends on ::RoleApplicator
166 CatalystX-SimpleLogin                  # broken
167 CatalystX-Usul                         # proc::processtable doesn't load
168 Cave-Wrapper                           # requires cave to be installed
169 Cheater                                # parse::randgen is broken
170 CHI-Driver-Redis                       # requires redis server
171 Class-OWL                              # uses CMOP::Class without loading cmop
172 CM-Permutation                         # OpenGL uses graphics in Makefile.PL
173 Cogwheel                               # uses ancient moose apis
174 Constructible                          # GD::SVG is a broken dist
175 Coro-Amazon-SimpleDB                   # amazon::simpledb::client doesn't exist
176 CPAN-Digger                            # requires DBD::SQLite
177 CPAN-Mini-Webserver                    # undeclared dep on lingua-stopwords
178 CPAN-Patches-Plugin-Debian             # configure time failures
179 Dackup                                 # depends on running ssh
180 Data-Apache-mod_status                 # invalid characters in type name
181 Data-Collector                         # depends on running ssh
182 Data-PackageName                       # broken
183 Data-Pipeline                          # uses ancient moose apis
184 Date-Biorhythm                         # Date::Business prompts in Makefile.PL
185 DayDayUp                               # MojoX-Fixup-XHTML doesn't exist
186 DBICx-Modeler-Generator                # broken (weirdly)
187 DBIx-PgLink                            # requires postgres installation
188 DBIx-SchemaChecksum                    # broken
189 Debian-Apt-PM                          # configure time failures
190 Devel-Events                           # broken (role conflict)
191 Dist-Zilla-Plugin-ProgCriticTests      # broken
192 Dist-Zilla-Plugin-SVK                  # requires svn bindings
193 DustyDB                                # uses old moose apis
194 ELF-Extract-Sections                   # uses stash entries with ::
195 ETLp                                   # uses stash entries with ::
196 Fedora-App-MaintainerTools             # requires rpm to be installed
197 Fedora-App-ReviewTool                  # requires koji to be installed
198 FFmpeg-Thumbnail                       # undeclared dep
199 File-DataClass                         # XML::DTD is a broken dist
200 Finance-Bank-SentinelBenefits-Csv401kConverter  # uses stash entries with ::
201 Forest-Tree-Viewer-Gtk2                # gtk tests are graphical
202 Form-Factory                           # uses old moose apis
203 Frost                                  # broken
204 Games-Pandemic                         # tk doesn't build
205 Games-RailRoad                         # tk doesn't build
206 Games-Risk                             # tk doesn't build
207 Games-Tetris-Complete                  # requires threads
208 Getopt-Chain                           # p::d::builder changed dists
209 GOBO                                   # coerce with no coercion
210 Google-Spreadsheet-Agent               # pod::coverage fail
211 helm                                   # depends on running ssh
212 Hobocamp                               # configure_requires needs EU::CChecker
213 Horris                                 # App::Horris isn't on cpan
214 HTML-TreeBuilderX-ASP_NET              # broken
215 IM-Engine-Plugin-Dispatcher            # p::d::declarative changed dists
216 JavaScript-Framework-jQuery            # coerce with no coercion
217 Jungle                                 # broken
218 Kamaitachi                             # pod::coverage fail
219 KiokuDB-Backend-Files                  # broken
220 Lingua-TreeTagger                      # requires treetagger to be installed
221 Locale-MO-File                         # broken
222 Log-Dispatch-Gtk2-Notify               # gtk tests are graphical
223 Mail-Summary-Tools                     # DT::Format::DateManip is broken
224 MediaWiki-USERINFO                     # broken
225 Mildew                                 # regexp::grammars needs class::accessor
226 mobirc                                 # http::engine broken
227 MooseX-Attribute-Prototype             # uses old moose apis
228 MooseX-DBIC-Scaffold                   # needs unreleased sql-translator
229 MooseX-Documenter                      # broken
230 MooseX-DOM                             # "no Moose" unimports confess
231 MooseX-Error-Exception-Class           # metaclass compat breakage
232 MooseX-Meta-Attribute-Index            # old moose apis
233 MooseX-Meta-Attribute-Lvalue           # old moose apis
234 MooseX-Struct                          # ancient moose apis
235 MooseX-TrackDirty-Attributes           # old moose apis
236 MSWord-ToHTML                          # requires abiword to be installed
237 namespace-alias                        # won't compile
238 Net-Douban                             # broken
239 Net-FluidDB                            # broken
240 Net-Fluidinfo                          # broken
241 NetHack-Item                           # NH::Monster::Spoiler is broken
242 NetHack-Monster-Spoiler                # broken (MX::CA issues)
243 Net-HTTP-Factual                       # broken
244 Net-Journyx                            # broken
245 Net-Parliament                         # broken
246 Net-Plurk                              # broken
247 Net-StackExchange                      # broken
248 Nginx-Control                          # requires nginx to be installed
249 ODG-Record                             # Test::Benchmark broken
250 Paludis-UseCleaner                     # needs cave::wrapper
251 Parse-FixedRecord                      # broken
252 Perlanet                               # HTML::Tidy requires tidyp
253 Perlbal-Control                        # proc::processtable doesn't load
254 Perl-Dist-Strawberry-BuildPerl-5123    # windows only
255 Perl-Dist-WiX-BuildPerl-5123           # windows only
256 Perl-Dist-WiX                          # windows only
257 Pg-BulkCopy                            # hardcodes /usr/bin/perl
258 POE-Component-CPAN-Mirror-Multiplexer  # broken
259 POE-Component-DirWatch-Object          # broken
260 POE-Component-OpenSSH                  # depends on running ssh
261 POE-Component-ResourcePool             # broken
262 POE-Component-Server-PSGI              # broken deps
263 POE-Component-Server-SimpleHTTP-PreFork  # broken deps
264 POEx-ProxySession                      # broken deps
265 POEx-PubSub                            # broken deps
266 POEx-WorkerPool                        # broken deps
267 Queue-Leaky                            # broken
268 RDF-Server                             # "no Moose" unimports confess
269 Reaction                               # signatures is broken
270 Reflexive-Role-Collective              # broken (reflex::role changes?)
271 Reflexive-Role-DataMover               # broken (reflex::role changes?)
272 Reflexive-Role-TCPServer               # broken (reflex::role changes?)
273 RPC-Any                                # broken
274 Scene-Graph                            # has '+attr' in roles
275 Server-Control                         # proc::processtable doesn't load
276 SilkiX-Converter-Kwiki                 # file::mimeinfo expects (?-xism:
277 SimpleDB-Class                         # requires memcached
278 SRS-EPP-Proxy                          # depends on xml::epp
279 String-Blender                         # broken
280 TAEB                                   # broken
281 Tail-Tool                              # Getopt::Alt doesn't exist
282 Tapper-Installer                       # sys::info::driver::linux is broken
283 Tapper-MCP-MessageReceiver             # sys::info::driver::linux is broken
284 Tapper-MCP                             # sys::info::driver::linux is broken
285 Tapper-Reports-API                     # sys::info::driver::linux is broken
286 Tapper-Testplan                        # sys::info::driver::linux is broken
287 Telephone-Mnemonic-US                  # rpm-build-perl is broken
288 Test-A8N                               # broken
289 Test-Daily                             # configure errors
290 Test-SFTP                              # Term::ReadPassword prompts in tests
291 Thorium                                # requires Hobocamp
292 Tk-Role-Dialog                         # tk won't compile
293 TryCatch-Error                         # broken
294 Verby                                  # requires poe::component::resourcepool
295 Weaving-Tablet                         # tk doesn't compile
296 WebService-SlimTimer                   # weird mxms error
297 WebService-Yes24                       # broken
298 WiX3                                   # broken
299 WWW-Alltop                             # XML::SimpleObject configure fail
300 WWW-Fandango                           # bad dist
301 WWW-FMyLife                            # broken
302 WWW-Hashdb                             # test hangs, pegging cpu
303 WWW-Metalgate                          # Cache is broken
304 WWW-Scramble                           # pod::coverage fail
305 WWW-StaticBlog                         # time::sofar is broken
306 WWW-Yahoo-Lyrics-JP                    # broken
307 XIRCD                                  # undeclared deps
308 XML-EPP                                # coerce without coercion
309 XML-LibXSLT-Easy                       # missing dep on mx-getopt
310 Yukki                                  # git::repository is broken
311 Zucchini                               # File::Rsync prompts in Makefile.PL