4 use Cwd qw( abs_path );
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};
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',
17 use Test::DependentModules qw( test_module );
20 use List::MoreUtils qw(any);
23 diag( 'Test run performed at: '
28 $ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.');
29 delete @ENV{ qw( AUTHOR_TESTING RELEASE_TESTING SMOKE_TESTING ) };
31 $ENV{ANY_MOOSE} = 'Moose';
33 my $mcpan = MetaCPAN::API->new;
34 my $res = $mcpan->post(
35 '/release/_search' => {
36 query => { match_all => {} },
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' } },
47 { term => { 'release.status' => 'latest' } },
48 { term => { 'release.maturity' => 'released' } },
50 fields => 'distribution'
54 my %skip_reasons = map {
56 /^(\S*)\s*(?:#\s*(.*)\s*)?$/;
57 defined($1) && length($1) ? ($1 => $2) : ()
59 my %skip = map { $_ => 1 } keys %skip_reasons;
60 my @skip_prefix = qw(Acme Task Bundle);
62 'App-PipeFilter' => 'App::PipeFilter::Generic',
63 'Constructible' => 'Constructible::Maxima',
64 'DCOLLINS-ANN-Locals' => 'DCOLLINS::ANN::Robot',
65 'Dist-Zilla-Deb' => 'Dist::Zilla::Plugin::Deb::VersionFromChangelog',
66 'Dist-Zilla-Plugin-TemplateFile' => 'Dist::Zilla::Plugin::TemplateFiles',
67 'Dist-Zilla-Plugins-CJM' => 'Dist::Zilla::Plugin::TemplateCJM',
68 'OWL-Simple' => 'OWL::Simple::Class',
69 'Patterns-ChainOfResponsibility' => 'Patterns::ChainOfResponsibility::Application',
70 'Role-Identifiable' => 'Role::Identifiable::HasIdent',
71 'X11-XCB' => 'X11::XCB::Connection',
72 'XML-Ant-BuildFile' => 'XML::Ant::BuildFile::Project',
74 'marc-moose' => 'MARC::Moose',
75 'mobirc' => 'App::Mobirc',
76 'smokebrew' => 'App::SmokeBrew',
79 my @modules = map { exists $name_fix{$_} ? $name_fix{$_} : $_ }
81 grep { my $dist = $_; !any { $dist =~ /^$_-/ } @skip_prefix }
82 map { $_->{fields}{distribution} }
83 @{ $res->{hits}{hits} };
85 plan tests => scalar @modules;
86 Test::DependentModules::_make_logs();
87 for my $module (@modules) {
89 my $reason = $skip_reasons{$module};
90 $reason = '???' unless defined $reason;
91 local $Test::DependentModules::TODO = $reason;
92 local $TODO = $reason;
93 eval { test_module($module); 1 }
94 or fail("Died when testing $module: $@");
97 eval { test_module($module); 1 }
98 or fail("Died when testing $module: $@");
104 Black-Board # not found on cpan because of mxd
105 Hopkins # not found on cpan (?)
106 PostScript-Barcode # not found on cpan (?)
107 VirtualBox-Manage # not found on cpan because of mxd
110 AI-ExpertSystem-Advanced
114 Catalyst-Authentication-Credential-Facebook-OAuth2
115 Catalyst-Authentication-Store-Fey-ORM
116 Catalyst-Controller-MovableType
117 Catalyst-Model-MenuGrinder
119 Data-SearchEngine-ElasticSearch
120 Dist-Zilla-Plugin-DualLife
121 Dist-Zilla-Plugin-GitFlow
122 Dist-Zilla-Plugin-MetaResourcesFromGit
123 Dist-Zilla-Plugin-Rsync
124 Dist-Zilla-PluginBundle-ARODLAND
125 Dist-Zilla-PluginBundle-Author-OLIVER
126 Dist-Zilla-PluginBundle-NUFFIN
129 LWP-UserAgent-OfflineCache
132 Pod-Weaver-Section-Encoding
133 POE-Component-Server-MySQL
139 WebService-CloudFlare-Host
142 # failing for a reason
143 Algorithm-KernelKMeans # mx-types-common changes broke it
144 Alien-ActiveMQ # can't install activemq
145 AnyEvent-Inotify-Simple # ??? (maybe issue with test::sweet)
146 AnyEvent-JSONRPC # tests require recommended deps
147 AnyEvent-Retry # mx-types-common changes broke it
148 AnyEvent-ZeroMQ # requires zeromq installation
149 App-CPAN2Pkg # Tk doesn't compile
150 App-Dataninja # bad M::I install in inc/
151 App-ForExample # getopt::chain is broken
152 App-Fotagger # Imager doesn't compile
153 App-HistHub # missing dep on JSON.pm
154 App-Magpie # deps on URPM which doesn't exist
155 App-PgCryobit # requires postgres installation
156 App-TemplateServer # broken use of types
157 App-TemplateServer-Provider-HTML-Template # dep on app-templateserver
158 App-TemplateServer-Provider-Mason # dep on app-templateserver
159 App-TemplateServer-Provider-TD # dep on app-templateserver
160 App-TimeTracker # git::repository is broken
161 App-USBKeyCopyCon # gtk tests are graphical
162 Archive-RPM # requires cpio
163 Bio-MAGETAB # datetime-format-datemanip is broken
164 Bot-Backbone # broken deps
165 Business-UPS-Tracking # broken
166 Cache-Profile # broken
167 Catalyst-Authentication-Store-LDAP-AD-Class # pod coverage fail
168 Catalyst-Controller-Resources # broken
169 Catalyst-Engine-Stomp # requires alien::activemq
170 Catalyst-Model-Search-ElasticSearch # requires elasticsearch
171 Catalyst-Model-Sedna # deps on Alien-Sedna which doesn't exist
172 Catalyst-Plugin-Continuation # undeclared dep
173 Catalyst-Plugin-ErrorCatcher-ActiveMQ-Stomp # pod coverage fail
174 Catalyst-Plugin-SwiffUploaderCookieHack # undeclared dep
175 Catalyst-TraitFor-Component-ConfigPerSite # undeclared dep
176 Catalyst-TraitFor-Controller-jQuery-jqGrid # bad test (missing files)
177 CatalystX-MooseComponent # broken
178 CatalystX-Restarter-GTK # gtk tests are graphical
179 CatalystX-RoleApplicator # broken
180 CatalystX-SimpleAPI # depends on ::RoleApplicator
181 CatalystX-SimpleLogin # broken
182 CatalystX-Usul # proc::processtable doesn't load
183 Cave-Wrapper # requires cave to be installed
184 Cheater # parse::randgen is broken
185 CHI-Driver-Redis # requires redis server
186 Class-OWL # uses CMOP::Class without loading cmop
187 CM-Permutation # OpenGL uses graphics in Makefile.PL
188 Cogwheel # uses ancient moose apis
189 Constructible # GD::SVG is a broken dist
190 Coro-Amazon-SimpleDB # amazon::simpledb::client doesn't exist
191 CPAN-Digger # requires DBD::SQLite
192 CPAN-Mini-Webserver # undeclared dep on lingua-stopwords
193 CPAN-Patches-Plugin-Debian # configure time failures
194 Dackup # depends on running ssh
195 Data-Apache-mod_status # invalid characters in type name
196 Data-Collector # depends on running ssh
197 Data-PackageName # broken
198 Data-Pipeline # uses ancient moose apis
199 Date-Biorhythm # Date::Business prompts in Makefile.PL
200 DayDayUp # MojoX-Fixup-XHTML doesn't exist
201 DBICx-Modeler-Generator # broken (weirdly)
202 DBIx-PgLink # requires postgres installation
203 DBIx-SchemaChecksum # broken
204 Debian-Apt-PM # configure time failures
205 Devel-Events # broken (role conflict)
206 Dist-Zilla-Plugin-ProgCriticTests # broken
207 Dist-Zilla-Plugin-SVK # requires svn bindings
208 DustyDB # uses old moose apis
209 ELF-Extract-Sections # uses stash entries with ::
210 ETLp # uses stash entries with ::
211 Fedora-App-MaintainerTools # requires rpm to be installed
212 Fedora-App-ReviewTool # requires koji to be installed
213 FFmpeg-Thumbnail # undeclared dep
214 File-DataClass # XML::DTD is a broken dist
215 Finance-Bank-SentinelBenefits-Csv401kConverter # uses stash entries with ::
216 Forest-Tree-Viewer-Gtk2 # gtk tests are graphical
217 Form-Factory # uses old moose apis
219 Games-Pandemic # tk doesn't build
220 Games-RailRoad # tk doesn't build
221 Games-Risk # tk doesn't build
222 Games-Tetris-Complete # requires threads
223 Getopt-Chain # p::d::builder changed dists
224 GOBO # coerce with no coercion
225 Google-Spreadsheet-Agent # pod::coverage fail
226 helm # depends on running ssh
227 Hobocamp # configure_requires needs EU::CChecker
228 Horris # App::Horris isn't on cpan
229 HTML-TreeBuilderX-ASP_NET # broken
230 IM-Engine-Plugin-Dispatcher # p::d::declarative changed dists
231 JavaScript-Framework-jQuery # coerce with no coercion
233 Kamaitachi # pod::coverage fail
234 KiokuDB-Backend-Files # broken
235 Lingua-TreeTagger # requires treetagger to be installed
236 Locale-MO-File # broken
237 Log-Dispatch-Gtk2-Notify # gtk tests are graphical
238 Mail-Summary-Tools # DT::Format::DateManip is broken
239 MediaWiki-USERINFO # broken
240 Mildew # regexp::grammars needs class::accessor
241 mobirc # http::engine broken
242 MooseX-Attribute-Prototype # uses old moose apis
243 MooseX-DBIC-Scaffold # needs unreleased sql-translator
244 MooseX-Documenter # broken
245 MooseX-DOM # "no Moose" unimports confess
246 MooseX-Error-Exception-Class # metaclass compat breakage
247 MooseX-Meta-Attribute-Index # old moose apis
248 MooseX-Meta-Attribute-Lvalue # old moose apis
249 MooseX-Struct # ancient moose apis
250 MooseX-TrackDirty-Attributes # old moose apis
251 MSWord-ToHTML # requires abiword to be installed
252 namespace-alias # won't compile
255 Net-Fluidinfo # broken
256 NetHack-Item # NH::Monster::Spoiler is broken
257 NetHack-Monster-Spoiler # broken (MX::CA issues)
258 Net-HTTP-Factual # broken
260 Net-Parliament # broken
262 Net-StackExchange # broken
263 Nginx-Control # requires nginx to be installed
264 ODG-Record # Test::Benchmark broken
265 Paludis-UseCleaner # needs cave::wrapper
266 Parse-FixedRecord # broken
267 Perlanet # HTML::Tidy requires tidyp
268 Perlbal-Control # proc::processtable doesn't load
269 Perl-Dist-Strawberry-BuildPerl-5123 # windows only
270 Perl-Dist-WiX-BuildPerl-5123 # windows only
271 Perl-Dist-WiX # windows only
272 Pg-BulkCopy # hardcodes /usr/bin/perl
273 POE-Component-CPAN-Mirror-Multiplexer # broken
274 POE-Component-DirWatch-Object # broken
275 POE-Component-OpenSSH # depends on running ssh
276 POE-Component-ResourcePool # broken
277 POE-Component-Server-PSGI # broken deps
278 POE-Component-Server-SimpleHTTP-PreFork # broken deps
279 POEx-ProxySession # broken deps
280 POEx-PubSub # broken deps
281 POEx-WorkerPool # broken deps
283 RDF-Server # "no Moose" unimports confess
284 Reaction # signatures is broken
285 Reflexive-Role-Collective # broken (reflex::role changes?)
286 Reflexive-Role-DataMover # broken (reflex::role changes?)
287 Reflexive-Role-TCPServer # broken (reflex::role changes?)
289 Scene-Graph # has '+attr' in roles
290 Server-Control # proc::processtable doesn't load
291 SilkiX-Converter-Kwiki # file::mimeinfo expects (?-xism:
292 SimpleDB-Class # requires memcached
293 SRS-EPP-Proxy # depends on xml::epp
294 String-Blender # broken
296 Tail-Tool # Getopt::Alt doesn't exist
297 Tapper-Installer # sys::info::driver::linux is broken
298 Tapper-MCP-MessageReceiver # sys::info::driver::linux is broken
299 Tapper-MCP # sys::info::driver::linux is broken
300 Tapper-Reports-API # sys::info::driver::linux is broken
301 Tapper-Testplan # sys::info::driver::linux is broken
302 Telephone-Mnemonic-US # rpm-build-perl is broken
304 Test-Daily # configure errors
305 Test-SFTP # Term::ReadPassword prompts in tests
306 Thorium # requires Hobocamp
307 Tk-Role-Dialog # tk won't compile
308 TryCatch-Error # broken
309 Verby # requires poe::component::resourcepool
310 Weaving-Tablet # tk doesn't compile
311 WebService-SlimTimer # weird mxms error
312 WebService-Yes24 # broken
314 WWW-Alltop # XML::SimpleObject configure fail
315 WWW-Fandango # bad dist
317 WWW-Hashdb # test hangs, pegging cpu
318 WWW-Metalgate # Cache is broken
319 WWW-Scramble # pod::coverage fail
320 WWW-StaticBlog # time::sofar is broken
321 WWW-Yahoo-Lyrics-JP # broken
322 XIRCD # undeclared deps
323 XML-EPP # coerce without coercion
324 XML-LibXSLT-Easy # missing dep on mx-getopt
325 Yukki # git::repository is broken
326 Zucchini # File::Rsync prompts in Makefile.PL