Skip distro which requires rpm
[gitmo/Moose.git] / xt / author / test-my-dependents.t
index 480b3d5..662d4e7 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,12 +65,15 @@ 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
     '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
@@ -79,6 +83,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 +125,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 +168,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
@@ -165,6 +185,7 @@ mobirc                                 # HTTP::Session::State::GUID isn't instal
 Net-Bamboo                             # XML::Tidy isn't installed
 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
 AI-ExpertSystem-Advanced               # no tests
@@ -388,7 +409,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 +440,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)
@@ -438,6 +459,7 @@ Net-Parliament                         # broken
 Net-Plurk                              # broken
 Net-SSLeay-OO                          # broken
 Net-StackExchange                      # broken
+Norma                                  # fails when trying to write to a read-only SQLite db file under jenkins, also fails when run manually
 ODG-Record                             # Test::Benchmark broken
 Perlbal-Control                        # proc::processtable doesn't load
 Pg-BulkCopy                            # hardcodes /usr/bin/perl
@@ -451,6 +473,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 +494,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 +522,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