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