Skip some distros with known test issues
[gitmo/Moose.git] / xt / author / test-my-dependents.t
index c786ccb..c1fa501 100644 (file)
@@ -41,7 +41,7 @@ use Moose ();
 diag(     'Test run performed at: '
         . DateTime->now
         . ' with Moose '
-        . Moose->VERSION );
+        . (Moose->VERSION || 'git repo') );
 
 $ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.');
 delete @ENV{ qw( AUTHOR_TESTING RELEASE_TESTING SMOKE_TESTING ) };
@@ -69,54 +69,25 @@ my $res = $mcpan->post(
     }
 );
 
-my %todo_reasons = map {
-    chomp;
-    /^(\S*)\s*(?:#\s*(.*)\s*)?$/;
-    defined($1) && length($1) ? ($1 => $2) : ()
-} <DATA>;
-my %todo = map { $_ => 1 } keys %todo_reasons;
-
 my @skip_prefix = qw(Acme Task Bundle);
-my %skip = map { $_ => 1 } (
-    'App-CPAN2Pkg',                 # tk tests are graphical
-    'App-USBKeyCopyCon',            # gtk tests are graphical
-    'Bot-Backbone',                 # poe-loop-ev prompts
-    'Cache-Ehcache',                # hangs if server exists on port 8080
-    'CatalystX-Imports',            # assumes it can write to /tmp/testapp
-    'CatalystX-Restarter-GTK',      # gtk tests are graphical
-    'CM-Permutation',               # OpenGL uses graphics in Makefile.PL
-    'CPAN-Source',                  # assumes it can write to /tmp/.cache
-    'Dackup',                       # depends on running ssh
-    'Data-Collector',               # depends on running ssh
-    'Date-Biorhythm',               # Date::Business prompts in Makefile.PL
-    'DBIx-PgLink',                  # prompts for a postgres password
-    'Fedora-App-MaintainerTools',   # requires rpm
-    'Forest-Tree-Viewer-Gtk2',      # gtk tests are graphical
-    'Games-Pandemic',               # tk tests are graphical
-    'Games-RailRoad',               # tk tests are graphical
-    'Games-Risk',                   # tk tests are graphical
-    'Gearman-Driver',               # spews tar errors
-    'helm',                         # depends on running ssh
-    'iTransact-Lite',               # tests rely on internet site
-    'Log-Dispatch-Gtk2-Notify',     # gtk tests are graphical
-    'LPDS',                         # gtk tests are graphical
-    'Net-SSH-Mechanize',            # the mock-ssh script it runs seems to spin endlessly
-    'Net-SFTP-Foreign-Exceptional', # depends on running ssh
-    'Periscope',                    # gtk tests are graphical
-    'POE-Component-OpenSSH',        # depends on running ssh
-    'POE-Component-Server-SimpleHTTP-PreFork',  # ipc::shareable tests hang
-    'RDF-TrineX-RuleEngine-Jena',   # prompts in Makefile.PL
-    'Test-SFTP',                    # Term::ReadPassword prompts in tests
-    'Tk-Role-Dialog',               # tk tests are graphical
-    'Unicode-Emoji-E4U',            # tests rely on internet site
-    'Weaving-Tablet',               # tk tests are graphical
-    'WWW-eNom',                     # tests rely on internet site
-    'WWW-Finances-Bovespa',         # tests rely on internet site
-    'WWW-Hashdb',                   # test hangs, pegging cpu
-    'WWW-Vimeo-Download',           # tests rely on internet site
-    'WWW-YouTube-Download-Channel', # tests rely on internet site
-    'Zucchini',                     # File::Rsync prompts in Makefile.PL
-);
+my %skip;
+my %todo;
+
+my $hash;
+for my $line (<DATA>) {
+    chomp $line;
+    next unless $line =~ /\S/;
+    if ( $line =~ /^# (\w+)/ ) {
+        die "Invalid action in DATA section ($1)"
+            unless $1 eq 'SKIP' || $1 eq 'TODO';
+        $hash = $1 eq 'SKIP' ? \%skip : \%todo;
+    }
+
+    my ( $dist, $reason ) = $line =~ /^(\S*)\s*(?:#\s*(.*)\s*)?$/;
+    next unless defined $dist && length $dist;
+
+    $hash->{$dist} = $reason;
+}
 
 my %name_fix = (
     'App-passmanager'                => 'App::PassManager',
@@ -154,7 +125,10 @@ if ( $ENV{MOOSE_TEST_MD} eq 'MooseX' ) {
 }
 elsif ( $ENV{MOOSE_TEST_MD} ne 'all' ) {
     diag(
-        'Picking 200 random dependents to test. Set MOOSE_TEST_MD=all to test all dependents'
+        <<'EOF'
+  Picking 200 random dependents to test. Set MOOSE_TEST_MD=all to test all
+  dependents or MOOSE_TEST_MD=MooseX to test extension modules only.
+EOF
     );
 
     my %indexes;
@@ -171,7 +145,7 @@ for my $dist (@dists) {
     my $module = $dist;
     $module = $name_fix{$module} if exists $name_fix{$module};
     if ($todo{$dist}) {
-        my $reason = $todo_reasons{$dist};
+        my $reason = $todo{$dist};
         $reason = '???' unless defined $reason;
         local $TODO = $reason;
         eval { test_module($module); 1 }
@@ -184,13 +158,13 @@ for my $dist (@dists) {
 }
 
 __DATA__
-# indexing issues (test::dm bugs?)
+# SKIP: indexing issues (test::dm bugs?)
 Alice                                  # couldn't find on cpan
 Hopkins                                # couldn't find on cpan
 PostScript-Barcode                     # couldn't find on cpan
 WWW-Mechanize-Query                    # couldn't find on cpan
 
-# doesn't install deps properly (test::dm bugs?)
+# SKIP: doesn't install deps properly (test::dm bugs?)
 App-Benchmark-Accessors                # Mojo::Base isn't installed
 Bot-BasicBot-Pluggable                 # Crypt::SaltedHash isn't installed
 Code-Statistics                        # MooseX::HasDefaults::RO isn't installed
@@ -207,7 +181,7 @@ Tatsumaki-Template-Markapl             # Tatsumaki::Template isn't installed
 Text-Tradition                         # Bio::Phylo::IO isn't installed
 WebService-Strava                      # Any::URI::Escape isn't installed
 
-# no tests
+# SKIP: no tests
 AI-ExpertSystem-Advanced               # no tests
 API-Assembla                           # no tests
 App-mkfeyorm                           # no tests
@@ -225,6 +199,7 @@ Dist-Zilla-PluginBundle-ARODLAND       # no tests
 Dist-Zilla-PluginBundle-Author-OLIVER  # no tests
 Dist-Zilla-PluginBundle-NUFFIN         # no tests
 Dist-Zilla-Plugin-DualLife             # no tests
+Dist-Zilla-Plugin-Git-Describe         # no tests
 Dist-Zilla-Plugin-GitFlow              # no tests
 Dist-Zilla-Plugin-GitFmtChanges        # no tests
 Dist-Zilla-Plugin-MetaResourcesFromGit # no tests
@@ -262,7 +237,8 @@ WebService-CloudFlare-Host             # no tests
 WWW-MenuGrinder                        # no tests
 WWW-WuFoo                              # no tests
 
-# external dependencies
+# SKIP: external dependencies
+Alien-Ditaa                            # runs java code
 AnyEvent-MSN                           # requires Net::SSLeay (which requires libssl)
 AnyEvent-Multilog                      # requires multilog
 AnyEvent-Net-Curl-Queued               # requires libcurl
@@ -271,6 +247,7 @@ AnyMQ-ZeroMQ                           # requires zeromq installation
 Apache2-HttpEquiv                      # requires apache (for mod_perl)
 App-Mimosa                             # requires fastacmd
 App-PgCryobit                          # requires postgres installation
+App-SimplenoteSync                     # requires File::ExtAttr which requires libattr
 Archive-RPM                            # requires cpio
 Bot-Jabbot                             # requires libidn
 Catalyst-Engine-Stomp                  # depends on alien::activemq
@@ -281,6 +258,7 @@ Crypt-Random-Source-Strong-Win32       # windows only
 Curses-Toolkit                         # requires Curses which requires ncurses library
 Dackup                                 # requires ssh
 Data-Collector                         # requires ssh
+Data-Riak                              # requires riak
 DBIx-PgLink                            # requires postgres installation
 Dist-Zilla-Plugin-Subversion           # requires svn bindings
 Dist-Zilla-Plugin-SVK                  # requires svn bindings
@@ -300,15 +278,18 @@ K                                      # requires kx
 Lighttpd-Control                       # requires lighttpd
 Lingua-TreeTagger                      # requires treetagger to be installed
 Math-Lsoda                             # requires f77
+Message-Passing-ZeroMQ                 # requires zeromq installation
 MongoDBI                               # requires mongo
 MongoDB                                # requires mongo
 MSWord-ToHTML                          # requires abiword to be installed
 Net-DBus-Skype                         # requires dbus
 Net-Route                              # requires route
+Net-SFTP-Foreign-Exceptional           # depends on running ssh
 Net-UpYun                              # requires curl
 Net-ZooTool                            # requires curl
 Nginx-Control                          # requires nginx to be installed
 NLP-Service                            # requires javac
+Padre-Plugin-Cookbook                  # requires Wx
 Padre-Plugin-Moose                     # requires threaded perl
 Padre-Plugin-PDL                       # requires threaded perl
 Padre-Plugin-Snippet                   # requires threaded perl
@@ -324,6 +305,7 @@ RDF-TrineX-RuleEngine-Jena             # requires Jena
 SimpleDB-Class                         # requires memcached
 SVN-Simple-Hook                        # requires svn
 SVN-Tree                               # requires svn
+Tapper-MCP                             # depends on everything under the sun - some of which is broken
 Template-JavaScript                    # requires v8
 TheSchwartz-Moosified                  # requires DBI::Pg ?
 WebService-SendGrid                    # requires curl
@@ -333,7 +315,7 @@ WWW-Curl-Simple                        # requires curl
 ZeroMQ-PubSub                          # requires zmq
 ZMQ-Declare                            # requires zmq
 
-# flaky internet tests
+# SKIP: flaky internet tests
 iTransact-Lite                         # tests rely on internet site
 Unicode-Emoji-E4U                      # tests rely on internet site
 WWW-eNom                               # tests rely on internet site
@@ -341,7 +323,7 @@ WWW-Finances-Bovespa                   # tests rely on internet site
 WWW-Vimeo-Download                     # tests rely on internet site
 WWW-YouTube-Download-Channel           # tests rely on internet site
 
-# graphical
+# SKIP: graphical
 App-CPAN2Pkg                           # tk tests are graphical
 App-USBKeyCopyCon                      # gtk tests are graphical
 CatalystX-Restarter-GTK                # gtk tests are graphical
@@ -355,7 +337,22 @@ Periscope                              # gtk tests are graphical
 Tk-Role-Dialog                         # tk tests are graphical
 Weaving-Tablet                         # tk tests are graphical
 
-# failing for a reason
+# SKIP: prompts (or a dep prompts) or does something else dumb
+Bot-Backbone                           # poe-loop-ev prompts
+Cache-Ehcache                          # hangs if server exists on port 8080
+CM-Permutation                         # OpenGL uses graphics in Makefile.PL
+Date-Biorhythm                         # Date::Business prompts in Makefile.PL
+DBIx-VersionedDDL                      # runs a script with /usr/bin/perl in the shbang line
+File-Tail-Scribe                       # tests hang
+Gearman-Driver                         # spews tar errors
+IPC-AnyEvent-Gearman                   # tests hang
+Lingua-YALI                            # runs scripts with /usr/bin/env perl in the shbang line
+Net-SSH-Mechanize                      # the mock-ssh script it runs seems to spin endlessly
+POE-Component-Server-SimpleHTTP-PreFork # tests hang
+WWW-Hashdb                             # test hangs, pegging cpu
+Zucchini                               # File::Rsync prompts in Makefile.PL
+
+# TODO: failing for a reason
 Algorithm-KernelKMeans                 # mx-types-common changes broke it
 AnyEvent-BitTorrent                    # broken
 AnyEvent-Cron                          # intermittent failures
@@ -377,8 +374,6 @@ App-Twimap                             # dep on Web::oEmbed::Common
 App-Validation-Automation              # dep on Switch
 App-Wubot                              # broken
 Beagle                                 # depends on term::readline::perl
-Bot-Backbone                           # poe-loop-ev prompts
-Cache-Ehcache                          # hangs if server exists on port 8080
 Cache-Profile                          # broken
 Catalyst-Authentication-Store-LDAP-AD-Class  # pod coverage fail
 Catalyst-Controller-Resources          # broken
@@ -389,13 +384,13 @@ Catalyst-Plugin-Session-State-Cookie   # broken
 Catalyst-Plugin-Session-Store-TestMemcached # dep with corrupt archive
 Catalyst-Plugin-SwiffUploaderCookieHack  # undeclared dep
 Catalyst-TraitFor-Request-PerLanguageDomains # dep on ::State::Cookie
+CatalystX-ExtJS-Direct                 # broken
 CatalystX-I18N                         # dep on ::State::Cookie
 CatalystX-MooseComponent               # broken
 CatalystX-SimpleLogin                  # broken
 CatalystX-Usul                         # proc::processtable doesn't load
 Cheater                                # parse::randgen is broken
 Class-OWL                              # uses CMOP::Class without loading cmop
-CM-Permutation                         # OpenGL uses graphics in Makefile.PL
 Cogwheel                               # uses ancient moose apis
 Config-Model                           # broken
 Config-Model-Backend-Augeas            # deps on Config::Model
@@ -411,7 +406,6 @@ Data-Feed                              # broken (only sometimes?)
 Data-PackageName                       # broken
 Data-Pipeline                          # uses ancient moose apis
 Data-SCORM                             # pod coverage fail
-Date-Biorhythm                         # Date::Business prompts in Makefile.PL
 DayDayUp                               # MojoX-Fixup-XHTML doesn't exist
 DBICx-Modeler-Generator                # broken (weirdly)
 DBIx-SchemaChecksum                    # broken
@@ -419,16 +413,23 @@ Debian-Apt-PM                          # configure time failures
 Devel-Events                           # broken (role conflict)
 Dist-Zilla-Deb                         # pod coverage fail
 Dist-Zilla-Plugin-ChangelogFromGit-Debian # git::repository is broken
+Dist-Zilla-Plugin-CheckChangesHasContent  # broken
+Dist-Zilla-Plugin-Git                  # tests fail when run in a temp dir
+Dist-Zilla-Plugin-PerlTidy             # expects to find dzil in the path
+Dist-Zilla-Plugin-Pinto-Add            # deps on Pinto::Common
 Dist-Zilla-Plugin-ProgCriticTests      # broken
+Dist-Zilla-Plugin-Test-ReportPrereqs   # broken
 DustyDB                                # uses old moose apis
 Dwimmer                                # broken
 Facebook-Graph                         # broken
+FCGI-Engine                            # runs scripts without using $^X
 Fedora-Bugzilla                        # deps on nonexistent things
 FFmpeg-Thumbnail                       # undeclared dep
 File-DataClass                         # XML::DTD is a broken dist
 File-Stat-Moose                        # old moose apis
 File-Tail-Dir                          # intermittent fails (i think)
 Form-Factory                           # uses old moose apis
+Form-Sensible                          # broken
 FormValidator-Nested                   # broken
 Frost                                  # broken
 Games-Dice-Loaded                      # flaky tests
@@ -443,6 +444,7 @@ HTML-TreeBuilderX-ASP_NET              # broken
 HTTP-Engine-Middleware                 # missing dep on yaml
 Image-Robohash                         # Graphics::Magick doesn't exist
 JavaScript-Framework-jQuery            # coerce with no coercion
+Jenkins-NotificationListener           # missing dep on File::Read
 Jifty                                  # Test::WWW::Selenium needs devel::repl
 JSORB                                  # broken
 Jungle                                 # broken
@@ -452,6 +454,8 @@ LaTeX-TikZ                             # broken (with moose)
 marc-moose                             # broken (only sometimes?)
 Mail-Summary-Tools                     # DT::Format::DateManip is broken
 MediaWiki-USERINFO                     # broken
+Metabase-Backend-MongoDB               # broken
+Metabase-Backend-SQL                   # broken (I think)
 Method-Signatures                      # doesn't like ANY_MOOSE=Moose
 mobirc                                 # http::engine broken
 MooseX-Attribute-Prototype             # uses old moose apis
@@ -460,10 +464,14 @@ MooseX-Documenter                      # broken
 MooseX-DOM                             # "no Moose" unimports confess
 MooseX-Error-Exception-Class           # metaclass compat breakage
 MooseX-Getopt-Usage                    # missing dep on Test::Class
+MooseX-GTIN                            # broken (under jenkins, at least)
 MooseX-Meta-Attribute-Index            # old moose apis
 MooseX-Meta-Attribute-Lvalue           # old moose apis
+MooseX-Role-XMLRPC-Client              # requires LWP::Protocol::http which requires libssl
+MooseX-Scaffold                        # broken
 MooseX-Struct                          # ancient moose apis
 MooseX-Types-Parameterizable           # broken
+MooseX-WithCache                       # broken
 MouseX-Types                           # broken (with moose)
 MySQL-Util                             # pod-coverage fail
 Nagios-Passive                         # broken
@@ -475,6 +483,7 @@ Net-Google-FederatedLogin              # broken
 NetHack-Item                           # NH::Monster::Spoiler is broken
 NetHack-Monster-Spoiler                # broken (MX::CA issues)
 Net-HTTP-Factual                       # broken
+Net-Jabber-Bot                         # broken
 Net-Journyx                            # broken
 Net-Mollom                             # broken
 Net-Parliament                         # broken
@@ -486,7 +495,8 @@ ODG-Record                             # Test::Benchmark broken
 Perlbal-Control                        # proc::processtable doesn't load
 Pg-BulkCopy                            # hardcodes /usr/bin/perl
 Pinto-Common                           # broken
-Pinto-Server                           # deps on pinto::common
+Pinto-Remove                           # deps on Pinto::Common
+Pinto-Server                           # deps on Pinto::Common
 Plack-Middleware-Image-Scale           # Image::Scale is broken
 Pod-Parser-I18N                        # missing dep on Data::Localize
 POE-Component-CPAN-Mirror-Multiplexer  # broken
@@ -534,6 +544,7 @@ Test-Pockito                           # broken
 Test-SFTP                              # Term::ReadPassword prompts in tests
 Test-WWW-Selenium-More                 # Test::WWW::Selenium needs devel::repl
 Text-Clevery                           # broken
+Text-Zilla                             # broken
 Thorium                                # depends on Hobocamp
 TryCatch-Error                         # broken
 Verby                                  # deps on poe::component::resourcepool
@@ -544,10 +555,10 @@ Webservice-Intermine                   # broken tests
 WebService-Yes24                       # broken
 WiX3                                   # broken
 WWW-Alltop                             # XML::SimpleObject configure fail
+WWW-Comix                              # uses ancient Moose::Policy stuff
 WWW-DataWiki                           # broken
 WWW-Fandango                           # bad dist
 WWW-FMyLife                            # broken
-WWW-Hashdb                             # test hangs, pegging cpu
 WWW-Mechanize-Cached                   # tries to read from wrong build dir?
 WWW-Metalgate                          # Cache is broken
 WWW-Scramble                           # pod::coverage fail
@@ -560,4 +571,3 @@ XML-EPP                                # coerce without coercion
 XML-SRS                                # deps on prang
 XML-Writer-Compiler                    # broken tests
 Yukki                                  # git::repository is broken
-Zucchini                               # File::Rsync prompts in Makefile.PL