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_all_dependents test_modules );
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 my $mcpan = MetaCPAN::API->new;
32 my $res = $mcpan->post(
33 '/release/_search' => {
34 query => { match_all => {} },
38 { term => { 'release.dependency.module' => 'Moose' } },
39 { term => { 'release.dependency.module' => 'Moose::Role' } },
40 { term => { 'release.dependency.module' => 'Moose::Exporter' } },
41 { term => { 'release.dependency.module' => 'Class::MOP' } },
42 { term => { 'release.dependency.module' => 'MooseX::Role::Parameterized' } },
44 { term => { 'release.status' => 'latest' } },
45 { term => { 'release.maturity' => 'released' } },
47 fields => 'distribution'
51 my %skip = map { $_ => 1 } grep { /\w/ } map { chomp; s/\s*#.*$//; $_ } <DATA>;
52 my @skip_prefix = qw(Acme Task Bundle);
54 'App-PipeFilter' => 'App::PipeFilter::Generic',
55 'Constructible' => 'Constructible::Maxima',
56 'DCOLLINS-ANN-Locals' => 'DCOLLINS::ANN::Robot',
57 'Dist-Zilla-Deb' => 'Dist::Zilla::Plugin::Deb::VersionFromChangelog',
58 'Dist-Zilla-Plugin-TemplateFile' => 'Dist::Zilla::Plugin::TemplateFiles',
59 'Dist-Zilla-Plugins-CJM' => 'Dist::Zilla::Plugin::TemplateCJM',
60 'OWL-Simple' => 'OWL::Simple::Class',
61 'Patterns-ChainOfResponsibility' => 'Patterns::ChainOfResponsibility::Application',
62 'Role-Identifiable' => 'Role::Identifiable::HasIdent',
63 'X11-XCB' => 'X11::XCB::Connection',
64 'XML-Ant-BuildFile' => 'XML::Ant::BuildFile::Project',
66 'marc-moose' => 'MARC::Moose',
67 'mobirc' => 'App::Mobirc',
68 'smokebrew' => 'App::SmokeBrew',
71 my @modules = map { exists $name_fix{$_} ? $name_fix{$_} : $_ }
74 grep { my $dist = $_; !any { $dist =~ /^$_-/ } @skip_prefix }
75 map { $_->{fields}{distribution} }
76 @{ $res->{hits}{hits} };
78 plan tests => scalar @modules;
79 test_modules(@modules);
81 # Modules that are known to fail
82 # PRANG - failing for quite some time (since before 2.0400)
85 # won't build, for actual reasons:
86 App-CPAN2Pkg # Tk doesn't compile
87 App-Fotagger # Imager doesn't compile
88 Black-Board # not found on cpan because of mxd
89 CM-Permutation # OpenGL uses graphics in Makefile.PL
90 Dackup # depends on running ssh
91 Date-Biorhythm # Date::Business prompts in Makefile.PL
92 Data-Collector # depends on running ssh
93 POE-Component-OpenSSH # depends on running ssh
94 Perl-Dist-Strawberry-BuildPerl-5123 # windows only
95 Perl-Dist-WiX # windows only
96 Perl-Dist-WiX-BuildPerl-5123 # windows only
97 Test-SFTP # Term::ReadPassword prompts in tests
98 VirtualBox-Manage # not found on cpan because of mxd
99 helm # depends on running ssh
101 # won't build, for unknown reasons
105 CPAN-Patches-Plugin-Debian # ???
107 Dist-Zilla-Plugin-BuildSelf # ???
108 Dist-Zilla-Plugin-ModuleBuildTiny # ???
109 Dist-Zilla-Plugin-Test-DistManifest # ???
110 Dist-Zilla-Plugin-Test-Portability # ???
111 Dist-Zilla-Plugin-Test-Synopsis # ???
112 Dist-Zilla-Plugin-Test-UnusedVars # ???
113 Lingua-TreeTagger # ???
114 POE-Component-CPAN-Mirror-Multiplexer # ???
115 POE-Component-Client-CouchDB # ???
116 POE-Component-Github # ???
117 POE-Component-Metabase-Relay-Server # ???
118 POE-Component-Server-SimpleHTTP-PreFork # ???
119 Tapper-Testplan # ??? (hangs)
122 WWW-Hashdb # ??? (hangs, pegging cpu)
123 WebService-Async # ??? (hangs, pegging cpu)
124 WebService-LOC-CongRec # ???
125 Zucchini # ??? (hangs)
127 # not in cpan index for some reason
128 Hopkins # not found on cpan (?)
129 PostScript-Barcode # not found on cpan (?)
131 # failing for a reason
132 AI-ExpertSystem-Advanced # no tests
133 API-Assembla # no tests
134 Algorithm-KernelKMeans # mx-types-common changes broke it
135 Alien-ActiveMQ # can't install activemq
136 AnyEvent-Inotify-Simple # ??? (maybe issue with test::sweet)
137 AnyEvent-JSONRPC # tests require recommended deps
138 AnyEvent-Retry # mx-types-common changes broke it
139 AnyEvent-ZeroMQ # requires zeromq installation
140 App-Dataninja # bad M::I install in inc/
141 App-ForExample # getopt::chain is broken
142 App-Magpie # deps on URPM which doesn't exist
143 App-PgCryobit # requires postgres installation
144 App-TemplateServer # broken use of types
145 App-TemplateServer-Provider-HTML-Template # dep on app-templateserver
146 App-TemplateServer-Provider-Mason # dep on app-templateserver
147 App-TemplateServer-Provider-TD # dep on app-templateserver
148 App-TimeTracker # git::repository is broken
149 App-USBKeyCopyCon # gtk tests are graphical
150 App-mkfeyorm # no tests
151 Archive-RPM # requires cpio
152 Bio-MAGETAB # datetime-format-datemanip is broken
153 Bot-Applebot # no tests
154 Bot-Backbone # broken deps
155 Business-UPS-Tracking # broken
156 CHI-Driver-Redis # requires redis server
157 CPAN-Mini-Webserver # undeclared dep on lingua-stopwords
158 Cache-Profile # broken
159 Catalyst-Authentication-Credential-Facebook-OAuth2 # no tests
160 Catalyst-Authentication-Store-Fey-ORM # no tests
161 Catalyst-Authentication-Store-LDAP-AD-Class # pod coverage fail
162 Catalyst-Controller-MovableType # no tests
163 Catalyst-Controller-Resources # broken
164 Catalyst-Engine-Stomp # requires alien::activemq
165 Catalyst-Model-MenuGrinder # no tests
166 Catalyst-Model-Search-ElasticSearch # requires elasticsearch
167 Catalyst-Model-Sedna # deps on Alien-Sedna which doesn't exist
168 Catalyst-Plugin-Continuation # undeclared dep
169 Catalyst-Plugin-ErrorCatcher-ActiveMQ-Stomp # pod coverage fail
170 Catalyst-Plugin-SwiffUploaderCookieHack # undeclared dep
171 Catalyst-TraitFor-Component-ConfigPerSite # undeclared dep
172 Catalyst-TraitFor-Controller-jQuery-jqGrid # bad test (missing files)
173 CatalystX-MooseComponent # broken
174 CatalystX-Restarter-GTK # gtk tests are graphical
175 CatalystX-RoleApplicator # broken
176 CatalystX-SimpleAPI # depends on ::RoleApplicator
177 CatalystX-SimpleLogin # broken
178 CatalystX-Usul # proc::processtable doesn't load
179 Cave-Wrapper # requires cave to be installed
180 Cheater # parse::randgen is broken
181 Class-OWL # uses CMOP::Class without loading cmop
182 Cogwheel # uses ancient moose apis
183 Constructible # GD::SVG is a broken dist
184 Coro-Amazon-SimpleDB # amazon::simpledb::client doesn't exist
186 # dep resolution failures or something (these pass when run manually)
189 App-Benchmark-Accessors
190 Bot-BasicBot-Pluggable
191 Bot-BasicBot-Pluggable-Module-JIRA
194 Cantella-Worker-Role-Beanstalk
195 Catalyst-Plugin-Session
199 CatalystX-Syntax-Action
201 Chart-Weather-Forecast
207 # failing for some reason or another (need to look into this)
208 DBICx-Modeler-Generator
209 DBIx-Class-DeploymentHandler
212 Data-Apache-mod_status
215 Data-SearchEngine-ElasticSearch
219 Dist-Zilla-Plugin-DualLife
220 Dist-Zilla-Plugin-GitFlow
221 Dist-Zilla-Plugin-MetaResourcesFromGit
222 Dist-Zilla-Plugin-ProgCriticTests
223 Dist-Zilla-Plugin-Rsync
224 Dist-Zilla-Plugin-SVK
225 Dist-Zilla-Plugin-Test-CPAN-Changes
226 Dist-Zilla-Plugin-Test-Kwalitee
227 Dist-Zilla-PluginBundle-ARODLAND
228 Dist-Zilla-PluginBundle-Author-OLIVER
229 Dist-Zilla-PluginBundle-FLORA
230 Dist-Zilla-PluginBundle-NIGELM
231 Dist-Zilla-PluginBundle-NUFFIN
232 Dist-Zilla-PluginBundle-RBUELS
238 Fedora-App-MaintainerTools
239 Fedora-App-ReviewTool
242 Finance-Bank-SentinelBenefits-Csv401kConverter
243 Finance-Bank-SuomenVerkkomaksut
244 Forest-Tree-Viewer-Gtk2
253 Games-Tetris-Complete
258 Google-Spreadsheet-Agent
260 Graphics-Primitive-Driver-Cairo
261 Graphics-Primitive-Driver-CairoPango
263 HTML-FormHandler-Model-DBIC
264 HTML-TreeBuilderX-ASP_NET
267 IM-Engine-Plugin-Dispatcher
269 IO-Multiplex-Intermediary
271 JavaScript-Framework-jQuery
276 KiokuDB-Backend-Files
277 LWP-UserAgent-OfflineCache
278 Locale-Handle-Pluggable
280 Log-Dispatch-Gtk2-Notify
287 MooseX-Attribute-Prototype
293 MooseX-Error-Exception-Class
294 MooseX-Meta-Attribute-Index
295 MooseX-Meta-Attribute-Lvalue
296 MooseX-Method-Signatures
302 MooseX-TrackDirty-Attributes
316 NetHack-Monster-Spoiler
319 POE-Component-Client-MPD
320 POE-Component-DirWatch
321 POE-Component-DirWatch-Object
322 POE-Component-IRC-Plugin-Role
323 POE-Component-MessageQueue
324 POE-Component-ResourcePool
325 POE-Component-Server-MySQL
326 POE-Component-Server-PSGI
327 POE-Component-Server-SimpleHTTP
338 Pod-Weaver-Section-Encoding
346 Reflexive-Role-Collective
347 Reflexive-Role-DataMover
348 Reflexive-Role-TCPServer
349 Reflexive-Stream-Filtering
356 SilkiX-Converter-Kwiki
363 Tapper-MCP-MessageReceiver
365 Telephone-Mnemonic-US
366 Template-Plugin-Heritable
375 VANAMBURG-SEMPROG-SimpleGraph
390 WebNano-Controller-CRUD
392 WebService-CloudFlare-Host