X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fauthor%2Ftest-my-dependents.t;h=77dd9a00b80eb3c016707dc37a79f33aeb7dbd7f;hb=479647ca9e99cd294b9c7a4cdfa09ad19fb02b81;hp=3ffcecc7eda331824fe630b973116143c5773902;hpb=c510b00ed332a2bb4d0d4a3ceb14fa404a342a37;p=gitmo%2FMoose.git diff --git a/xt/author/test-my-dependents.t b/xt/author/test-my-dependents.t index 3ffcecc..77dd9a0 100644 --- a/xt/author/test-my-dependents.t +++ b/xt/author/test-my-dependents.t @@ -10,256 +10,395 @@ BEGIN { } use Test::Requires { - 'Test::DependentModules' => '0.01', # skip all if not installed + 'Test::DependentModules' => '0.09', # skip all if not installed + 'MetaCPAN::API' => '0.33', }; -use Test::DependentModules qw( test_all_dependents test_module ); +use Test::DependentModules qw( test_all_dependents test_modules ); use DateTime; -use Class::MOP (); +use List::MoreUtils qw(any); use Moose (); diag( 'Test run performed at: ' . DateTime->now - . ' with Class::MOP ' - . Class::MOP->VERSION - . ' and Moose ' + . ' with Moose ' . Moose->VERSION ); $ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.'); -delete $ENV{AUTHOR_TESTING}; +delete @ENV{ qw( AUTHOR_TESTING RELEASE_TESTING SMOKE_TESTING ) }; -my $exclude = qr/^Acme-/x; +my $mcpan = MetaCPAN::API->new; +my $res = $mcpan->post( + '/release/_search' => { + query => { match_all => {} }, + size => 5000, + filter => { and => [ + { or => [ + { term => { 'release.dependency.module' => 'Moose' } }, + { term => { 'release.dependency.module' => 'Moose::Role' } }, + { term => { 'release.dependency.module' => 'Moose::Exporter' } }, + { term => { 'release.dependency.module' => 'Class::MOP' } }, + { term => { 'release.dependency.module' => 'MooseX::Role::Parameterized' } }, + ] }, + { term => { 'release.status' => 'latest' } }, + { term => { 'release.maturity' => 'released' } }, + ] }, + fields => 'distribution' + } +); -if ( $ENV{MOOSE_TEST_MD_ALL} ) { - test_all_dependents( 'Moose', { exclude => $exclude } ); - done_testing; -} -else { - my @modules = map { chomp; $_ } ; - plan tests => scalar @modules; - test_module($_) for @modules; -} +my %skip = map { $_ => 1 } grep { /\w/ } map { chomp; s/\s*#.*$//; $_ } ; +my @skip_prefix = qw(Acme Task Bundle); +my %name_fix = ( + 'App-PipeFilter' => 'App::PipeFilter::Generic', + 'Constructible' => 'Constructible::Maxima', + 'DCOLLINS-ANN-Locals' => 'DCOLLINS::ANN::Robot', + 'Dist-Zilla-Deb' => 'Dist::Zilla::Plugin::Deb::VersionFromChangelog', + 'Dist-Zilla-Plugin-TemplateFile' => 'Dist::Zilla::Plugin::TemplateFiles', + 'Dist-Zilla-Plugins-CJM' => 'Dist::Zilla::Plugin::TemplateCJM', + 'OWL-Simple' => 'OWL::Simple::Class', + 'Patterns-ChainOfResponsibility' => 'Patterns::ChainOfResponsibility::Application', + 'Role-Identifiable' => 'Role::Identifiable::HasIdent', + 'X11-XCB' => 'X11::XCB::Connection', + 'XML-Ant-BuildFile' => 'XML::Ant::BuildFile::Project', + 'helm' => 'Helm', + 'marc-moose' => 'MARC::Moose', + 'mobirc' => 'App::Mobirc', + 'smokebrew' => 'App::SmokeBrew', + 'v6-alpha' => 'v6', +); +my @modules = map { exists $name_fix{$_} ? $name_fix{$_} : $_ } + sort + grep { !$skip{$_} } + grep { my $dist = $_; !any { $dist =~ /^$_-/ } @skip_prefix } + map { $_->{fields}{distribution} } + @{ $res->{hits}{hits} }; + +plan tests => scalar @modules; +test_modules(@modules); + +# Modules that are known to fail +# PRANG - failing for quite some time (since before 2.0400) __DATA__ -Moose::Autobox -MooseX::ABC -MooseX::APIRole -MooseX::AbstractFactory -MooseX::Accessors::ReadWritePrivate -MooseX::Aliases -MooseX::AlwaysCoerce -MooseX::App::Cmd -MooseX::Async -MooseX::Attribute::ENV -MooseX::Atom -MooseX::Attribute::Deflator -MooseX::Attribute::Dependent -MooseX::AttributeCloner -MooseX::AttributeDefaults -MooseX::AttributeHelpers -MooseX::AttributeIndexes -MooseX::AttributeInflate -MooseX::AttributeTree -MooseX::Attributes::Curried -MooseX::AuthorizedMethods -MooseX::AutoDestruct -MooseX::AutoImmute -MooseX::BatmanBeforeRobin -MooseX::Blessed::Reconstruct -MooseX::CascadeClearing -MooseX::ChainedAccessors::Accessor -MooseX::ClassAttribute -MooseX::Clone -MooseX::CompileTime::Traits -MooseX::ComposedBehavior -MooseX::ConfigFromFile -MooseX::Configuration -MooseX::Constructor::AllErrors -MooseX::Contract -MooseX::Control -MooseX::CurriedHandles -MooseX::Daemonize -MooseX::Declare -MooseX::DeepAccessors -MooseX::Emulate::Class::Accessor::Fast -MooseX::Error::Trap -MooseX::FileAttribute -MooseX::File_or_DB::Storage -MooseX::FollowPBP -MooseX::Getopt -MooseX::Getopt::Defanged -MooseX::HasDefaults -MooseX::GlobRef -MooseX::Has::Sugar -MooseX::HasDefaults -MooseX::InsideOut -MooseX::Iterator -MooseX::KeyedMutex -MooseX::LazyLogDispatch -MooseX::LazyRequire -MooseX::Lexical::Types -MooseX::LexicalRoleApplication -MooseX::Lists -MooseX::LogDispatch -MooseX::Log::Log4perl -MooseX::MakeImmutable -MooseX::Mangle -MooseX::MarkAsMethods -MooseX::Meta::Attribute::Index -MooseX::Meta::Attribute::Lvalue -MooseX::Meta::TypeConstraint::ForceCoercion -MooseX::Meta::TypeConstraint::Intersection -MooseX::MetaDescription -MooseX::Method -MooseX::MethodAttributes -MooseX::Method::Signatures -MooseX::MultiInitArg -MooseX::MultiMethods -MooseX::MultiObject -MooseX::MutatorAttributes -MooseX::Net::API -MooseX::NonMoose -MooseX::Object::Pluggable -MooseX::OneArgNew -MooseX::Param -MooseX::Params::Validate -MooseX::Plaggerize -MooseX::POE -MooseX::Privacy -MooseX::PrivateSetters -MooseX::RelatedClassRoles -MooseX::Role::BuildInstanceOf -MooseX::Role::Cmd -MooseX::Role::DBIx::Connector -MooseX::Role::Matcher -MooseX::Role::Parameterized -MooseX::Role::Pluggable -MooseX::Role::Restricted -MooseX::Role::Strict -MooseX::Role::Timer -MooseX::Role::TraitConstructor -MooseX::Role::WithOverloading -MooseX::Runnable -MooseX::Scaffold -MooseX::SemiAffordanceAccessor -MooseX::SetOnce -MooseX::SimpleConfig -MooseX::Singleton -MooseX::SingletonMethod -MooseX::SlurpyConstructor -MooseX::Storage -MooseX::Storage::Format::XML::Simple -MooseX::StrictConstructor -MooseX::SymmetricAttribute -MooseX::Templated -MooseX::Timestamp -MooseX::Traits -MooseX::Traits::Attribute::CascadeClear -MooseX::Traits::Attribute::MergeHashRef -MooseX::Traits::Pluggable -MooseX::TransactionalMethods -MooseX::TypeMap -MooseX::Types -MooseX::Types::Authen::Passphrase -MooseX::Types::Buf -MooseX::Types::Common -MooseX::Types::Data::GUID -MooseX::Types::DateTime -MooseX::Types::DateTime::ButMaintained -MooseX::Types::DateTime::W3C -MooseX::Types::Digest -MooseX::Types::Email -MooseX::Types::IO -MooseX::Types::ISO8601 -MooseX::Types::Implements -MooseX::Types::JSON -MooseX::Types::LWP::UserAgent -MooseX::Types::LoadableClass -MooseX::Types::Locale::Country -MooseX::Types::Locale::Language -MooseX::Types::Log::Dispatch -MooseX::Types::Meta -MooseX::Types::Moose::MutualCoercion -MooseX::Types::NetAddr::IP -MooseX::Types::Parameterizable -MooseX::Types::Path::Class -MooseX::Types::Set::Object -MooseX::Types::Signal -MooseX::Types::Structured -MooseX::Types::URI -MooseX::Types::UUID -MooseX::Types::UniStr -MooseX::Types::Varchar -MooseX::UndefTolerant -MooseX::WithCache -MooseX::Workers -MooseX::YAML -App::Nopaste -App::Termcast -Bread::Board -Bread::Board::Declare -Cache::Ref -Cantella::Worker -Carp::REPL -Catalyst -Catalyst::Devel -CatalystX::Declare -Chart::Clicker -CHI -Config::MVP -Crypt::Util -Data::Stream::Bulk -Data::Visitor -DBIx::Class -Devel::REPL -Dist::Zilla -Email::MIME::Kit -Email::Sender -FCGI::Engine -Fey -Fey::ORM -File::ChangeNotify -Forest -Git::PurePerl +# notes: +# need Archive::Zip, or .zip dists won't be able to be installed + +# won't build, for actual reasons: +App-CPAN2Pkg # Tk doesn't compile +App-Fotagger # Imager doesn't compile +Black-Board # not found on cpan because of mxd +CM-Permutation # OpenGL uses graphics in Makefile.PL +Dackup # depends on running ssh +Date-Biorhythm # Date::Business prompts in Makefile.PL +Data-Collector # depends on running ssh +POE-Component-OpenSSH # depends on running ssh +Perl-Dist-Strawberry-BuildPerl-5123 # windows only +Perl-Dist-WiX # windows only +Perl-Dist-WiX-BuildPerl-5123 # windows only +Test-SFTP # Term::ReadPassword prompts in tests +VirtualBox-Manage # not found on cpan because of mxd +helm # depends on running ssh + +# won't build, for unknown reasons +App-HistHub # ??? +App-Twitch # ??? +CPAN-Patches # ??? +CPAN-Patches-Plugin-Debian # ??? +Debian-Apt-PM # ??? +Dist-Zilla-Plugin-BuildSelf # ??? +Dist-Zilla-Plugin-ModuleBuildTiny # ??? +Lingua-TreeTagger # ??? +POE-Component-CPAN-Mirror-Multiplexer # ??? +POE-Component-Client-CouchDB # ??? +POE-Component-Github # ??? +POE-Component-Metabase-Relay-Server # ??? +POE-Component-Server-SimpleHTTP-PreFork # ??? +Tapper-Testplan # ??? (hangs) +Test-Daily # ??? +WWW-Alltop # ??? +WWW-Hashdb # ??? (hangs, pegging cpu) +WebService-Async # ??? (hangs, pegging cpu) +WebService-LOC-CongRec # ??? +Zucchini # ??? (hangs) + +# not in cpan index for some reason +Dist-Zilla-Plugin-Test-DistManifest # not found on cpan (?) +Dist-Zilla-Plugin-Test-MinimumVersion # not found on cpan (?) +Dist-Zilla-Plugin-Test-Portability # not found on cpan (?) +Dist-Zilla-Plugin-Test-Synopsis # not found on cpan (?) +Dist-Zilla-Plugin-Test-UnusedVars # not found on cpan (?) +Hopkins # not found on cpan (?) +PostScript-Barcode # not found on cpan (?) + +# failing for some reason or another (need to look into this) +AI-ExpertSystem-Advanced +API-Assembla +AXL-Client-Simple +Algorithm-KernelKMeans +Alien-ActiveMQ +Alien-Ditaa +AnyEvent-Inotify-Simple +AnyEvent-JSONRPC +AnyEvent-Retry +AnyEvent-ZeroMQ +App-Benchmark-Accessors +App-Dataninja +App-ForExample +App-Magpie +App-PgCryobit +App-TemplateServer +App-TemplateServer-Provider-HTML-Template +App-TemplateServer-Provider-Mason +App-TemplateServer-Provider-TD +App-TimeTracker +App-USBKeyCopyCon +App-mkfeyorm +Archive-RPM +Bio-MAGETAB +Bot-Applebot +Bot-Backbone +Bot-BasicBot-Pluggable +Bot-BasicBot-Pluggable-Module-JIRA +Business-UPS-Tracking +CHI-Driver-Redis +CPAN-Digger +CPAN-Mini-Webserver +Cache-Profile +Cantella-Worker +Cantella-Worker-Role-Beanstalk +Catalyst-Authentication-Credential-Facebook-OAuth2 +Catalyst-Authentication-Store-Fey-ORM +Catalyst-Authentication-Store-LDAP-AD-Class +Catalyst-Controller-MovableType +Catalyst-Controller-Resources +Catalyst-Engine-Stomp +Catalyst-Model-MenuGrinder +Catalyst-Model-Search-ElasticSearch +Catalyst-Model-Sedna +Catalyst-Plugin-Continuation +Catalyst-Plugin-ErrorCatcher-ActiveMQ-Stomp +Catalyst-Plugin-Session +Catalyst-Plugin-SwiffUploaderCookieHack +Catalyst-TraitFor-Component-ConfigPerSite +Catalyst-TraitFor-Controller-jQuery-jqGrid +Catalyst-View-ByCode +Catalyst-View-RDF +CatalystX-Declare +CatalystX-MooseComponent +CatalystX-Restarter-GTK +CatalystX-RoleApplicator +CatalystX-SimpleAPI +CatalystX-SimpleLogin +CatalystX-Syntax-Action +CatalystX-Usul +Cave-Wrapper +Chart-Clicker +Chart-Weather-Forecast +Cheater +Chef +Class-OWL +Code-Statistics +Cogwheel +Constructible +Coro-Amazon-SimpleDB +Crypt-PBKDF2 +Curses-Toolkit +DBICx-Modeler-Generator +DBIx-Class-DeploymentHandler +DBIx-PgLink +DBIx-SchemaChecksum +Data-Apache-mod_status +Data-PackageName +Data-Pipeline +Data-SearchEngine-ElasticSearch +DayDayUp +Devel-Events +Devel-IntelliPerl +Dist-Zilla-Plugin-DualLife +Dist-Zilla-Plugin-GitFlow +Dist-Zilla-Plugin-MetaResourcesFromGit +Dist-Zilla-Plugin-ProgCriticTests +Dist-Zilla-Plugin-Rsync +Dist-Zilla-Plugin-SVK +Dist-Zilla-Plugin-Test-CPAN-Changes +Dist-Zilla-Plugin-Test-Kwalitee +Dist-Zilla-PluginBundle-ARODLAND +Dist-Zilla-PluginBundle-Author-OLIVER +Dist-Zilla-PluginBundle-FLORA +Dist-Zilla-PluginBundle-NIGELM +Dist-Zilla-PluginBundle-NUFFIN +Dist-Zilla-PluginBundle-RBUELS +DustyDB +ELF-Extract-Sections +ETLp +FCGI-Engine +FFmpeg-Thumbnail +Fedora-App-MaintainerTools +Fedora-App-ReviewTool +Fey-SQL-Pg +File-DataClass +Finance-Bank-SentinelBenefits-Csv401kConverter +Finance-Bank-SuomenVerkkomaksut +Forest-Tree-Viewer-Gtk2 +Form-Factory +Frost +GOBO +Games-AssaultCube +Games-HotPotato +Games-Pandemic +Games-RailRoad +Games-Risk +Games-Tetris-Complete +Gearman-Driver +Geo-Calc +Getopt-Chain Gitalist -Hailo -HTML::FormHandler -IM::Engine -JSON::RPC::Common -JSORB -KiokuDB -KiokuDB::Backend::DBI -KiokuX::Model::Role::Annotations -KiokuX::User -Lighttpd::Control -Locale::POFileManager -Markdent -Metabase -MojoMojo -Mongoose -namespace::autoclean -Net::HTTP::API -Net::Twitter -Path::Class::Versioned -Path::Router -Perl::PrereqScanner -Pod::Elemental -Pod::Weaver -PRANG +Google-Spreadsheet-Agent +Grades +Graphics-Primitive-Driver-Cairo +Graphics-Primitive-Driver-CairoPango +HTML-FormHandler +HTML-FormHandler-Model-DBIC +HTML-TreeBuilderX-ASP_NET +Hobocamp +Horris +IM-Engine-Plugin-Dispatcher +IMS-CP-Manifest +IO-Multiplex-Intermediary +Image-Placeholder +JavaScript-Framework-jQuery +Jungle +Kafka-Client +Kamaitachi +KiokuDB-Backend-BDB +KiokuDB-Backend-Files +LWP-UserAgent-OfflineCache +Locale-Handle-Pluggable +Locale-MO-File +Log-Dispatch-Gtk2-Notify +MSWord-ToHTML +Mail-Summary-Tools +Mason +MediaWiki-USERINFO +Mildew +MooseX-APIRole +MooseX-Attribute-Prototype +MooseX-AutoImmute +MooseX-DBIC-Scaffold +MooseX-DOM +MooseX-Declare +MooseX-Documenter +MooseX-Error-Exception-Class +MooseX-Meta-Attribute-Index +MooseX-Meta-Attribute-Lvalue +MooseX-Method-Signatures +MooseX-MultiMethods +MooseX-MultiObject +MooseX-POE +MooseX-Params +MooseX-Struct +MooseX-TrackDirty-Attributes +MooseX-Workers +Net-Douban +Net-Dropbox +Net-FluidDB +Net-Fluidinfo +Net-HTTP-Factual +Net-Journyx +Net-Parliament +Net-Plurk +Net-Recurly +Net-StackExchange +Net-Topsy +NetHack-Item +NetHack-Monster-Spoiler +Nginx-Control +ODG-Record +POE-Component-Client-MPD +POE-Component-DirWatch +POE-Component-DirWatch-Object +POE-Component-IRC-Plugin-Role +POE-Component-MessageQueue +POE-Component-ResourcePool +POE-Component-Server-MySQL +POE-Component-Server-PSGI +POE-Component-Server-SimpleHTTP +POE-Test-Helpers +POEx-ProxySession +POEx-PubSub +POEx-WorkerPool +Paludis-UseCleaner +Parse-CPAN-Ratings +Parse-FixedRecord +Perlanet +Perlbal-Control +Pg-BulkCopy +Pod-Weaver-Section-Encoding +Proc-Safetynet +Queue-Leaky +RDF-Server +RPC-Any +Random-Quantum Reaction Reflex -Resource::Pack -Role::Subsystem -Search::GIN -Silki -Test::Able -Test::Routine -Test::Sweet -Throwable -Throwable::X +Reflexive-Role-Collective +Reflexive-Role-DataMover +Reflexive-Role-TCPServer +Reflexive-Stream-Filtering +SRS-EPP-Proxy +STD +Scene-Graph +Schedule-Pluggable +SchemaEvolution +Server-Control +SilkiX-Converter-Kwiki +SimpleDB-Class +String-Blender +TAEB +Tail-Tool +Tapper-Installer +Tapper-MCP +Tapper-MCP-MessageReceiver +Tapper-Reports-API +Telephone-Mnemonic-US +Template-Plugin-Heritable +Test-A8N +Test-BDD-Cucumber +Test-Sweet +Test-System +Thorium +Tk-Role-Dialog TryCatch -WWW::AdventCalendar -Web::Hippie -XML::Rabbit -XML::Schematron -XML::Toolkit +TryCatch-Error +VANAMBURG-SEMPROG-SimpleGraph +VCI +Verby +W3C-XMLSchema +WWW-FMyLife +WWW-Fandango +WWW-Getsy +WWW-Getsy +WWW-Mechanize-Cached +WWW-MenuGrinder +WWW-Metalgate +WWW-Scramble +WWW-StaticBlog +WWW-Yahoo-Lyrics-JP +Weaving-Tablet +WebNano-Controller-CRUD +WebService-Buxfer +WebService-CloudFlare-Host +WebService-SlimTimer +WebService-Yes24 +WiX3 +XIRCD +XML-Ant-BuildFile +XML-EPP +XML-LibXSLT-Easy +XML-Rabbit +XML-Schematron +YUM-RepoQuery +Yukki +mobirc +namespace-alias