Skip Net-SSH-Mechanize
[gitmo/Moose.git] / xt / author / test-my-dependents.t
index 480b3d5..b9afb88 100644 (file)
@@ -10,10 +10,11 @@ BEGIN {
 }
 
 use Test::Requires {
-    'Archive::Zip' => 0, # or else .zip dists won't be able to be installed
-    'Test::DependentModules' => '0.09', # skip all if not installed
-    'MetaCPAN::API' => '0.33',
+    'Archive::Zip' => 0,    # or else .zip dists won't be able to be installed
+    'Test::DependentModules' => '0.13',
+    'MetaCPAN::API'          => '0.33',
 };
+
 use Test::DependentModules qw( test_module );
 
 use DateTime;
@@ -64,8 +65,10 @@ my %skip = map { $_ => 1 } (
     '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
@@ -79,6 +82,7 @@ my %skip = map { $_ => 1 } (
     '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
@@ -120,12 +124,26 @@ my %name_fix = (
     'X11-XCB'                        => 'X11::XCB::Connection',
     'XML-Ant-BuildFile'              => 'XML::Ant::BuildFile::Project',
 );
+
 my @dists = sort
             grep { !$skip{$_} }
             grep { my $dist = $_; !any { $dist =~ /^$_-/ } @skip_prefix }
             map  { $_->{fields}{distribution} }
             @{ $res->{hits}{hits} };
 
+unless ( $ENV{MOOSE_TEST_MD} eq 'all' ) {
+    diag(
+        'Picking 200 random dependents to test. Set MOOSE_TEST_MD=all to test all dependents'
+    );
+
+    my %indexes;
+    while ( keys %indexes < 200 ) {
+        $indexes{ int rand( scalar @dists ) } = 1;
+    }
+
+    @dists = @dists[ sort keys %indexes ];
+}
+
 plan tests => scalar @dists;
 for my $dist (@dists) {
     note($dist);
@@ -149,6 +167,7 @@ __DATA__
 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?)
 App-Benchmark-Accessors                # Mojo::Base isn't installed
@@ -388,7 +407,8 @@ File-Tail-Dir                          # intermittent fails (i think)
 Form-Factory                           # uses old moose apis
 FormValidator-Nested                   # broken
 Frost                                  # broken
-Gitalist                               # deps on mxms
+Games-Dice-Loaded                      # flaky tests
+Gitalist                               # broken
 GOBO                                   # coerce with no coercion
 Google-Chart                           # recreating type constraints
 Google-Spreadsheet-Agent               # pod::coverage fail
@@ -418,7 +438,6 @@ MooseX-Error-Exception-Class           # metaclass compat breakage
 MooseX-Getopt-Usage                    # missing dep on Test::Class
 MooseX-Meta-Attribute-Index            # old moose apis
 MooseX-Meta-Attribute-Lvalue           # old moose apis
-MooseX-Method-Signatures               # broken
 MooseX-Struct                          # ancient moose apis
 MooseX-Types-Parameterizable           # broken
 MouseX-Types                           # broken (with moose)
@@ -451,6 +470,7 @@ POE-Component-DirWatch-Object          # intermittent failures
 POE-Component-ResourcePool             # broken
 POE-Component-Server-PSGI              # broken deps
 POE-Component-Server-SimpleHTTP-PreFork  # broken deps
+Poet                                   # missing dep on Log::Any::Adapter::Log4perl
 POEx-ProxySession                      # broken deps
 POEx-PubSub                            # broken deps
 POEx-WorkerPool                        # broken deps
@@ -471,6 +491,7 @@ Shipment                               # locale::subcountry is broken
 Silki                                  # image::magick is broken
 SilkiX-Converter-Kwiki                 # file::mimeinfo expects (?-xism:
 Sloth                                  # rest::utils is broken
+Sque                                   # couldn't fork server for testing
 SRS-EPP-Proxy                          # depends on xml::epp
 String-Blender                         # broken
 TAEB                                   # broken
@@ -498,7 +519,7 @@ Webservice-Intermine                   # broken tests
 WebService-Yes24                       # broken
 WiX3                                   # broken
 WWW-Alltop                             # XML::SimpleObject configure fail
-WWW-DataWiki                           # depends on mxms
+WWW-DataWiki                           # broken
 WWW-Fandango                           # bad dist
 WWW-FMyLife                            # broken
 WWW-Hashdb                             # test hangs, pegging cpu