Package: ruby-zoom
Version: 0.4.1-3
Severity: normal
Tags: patch, sid, wheezy

This package requires internet connectivity for its test suite
to pass. Package builds should not rely on external network
connectivity, but should be self-contained.

I have attached a patch that disables all tests except package_test.rb
which is the only one that doesn't rely on internet connectivity.

Build log:
> Loaded suite /usr/lib/ruby/vendor_ruby/rake/rake_test_loader
> Started
> E
> ===============================================================================
> Error: test_search_batch_test(SearchBatchTest)
> RuntimeError: Connect failed (10000) z3950.loc.gov:7090
> /tmp/buildd/ruby-zoom-0.4.1/test/search_batch_test.rb:8:in `open'
>       5:   # Terry Reese 9-17-07
>       6:   # Test for batch results
>       7:   def test_search_batch_test
>   =>  8:     ZOOM::Connection.open('z3950.loc.gov', 7090) do |conn|
>       9:       conn.database_name = 'Voyager'
>      10:       conn.preferred_record_syntax = 'USMARC'
>      11:       result_set = conn.search('@attr 1=4 "Oregon"')
> /tmp/buildd/ruby-zoom-0.4.1/test/search_batch_test.rb:8:in 
> `test_search_batch_test'
> ===============================================================================
> [...]

Example of a full log:
https://buildd.debian.org/status/fetch.php?pkg=ruby-zoom&arch=armel&ver=0.4.1-4&stamp=1340496396
diff -Nru ruby-zoom-0.4.1/debian/ruby-tests.rake ruby-zoom-0.4.1/debian/ruby-tests.rake
--- ruby-zoom-0.4.1/debian/ruby-tests.rake	2012-06-24 00:10:36.000000000 +0200
+++ ruby-zoom-0.4.1/debian/ruby-tests.rake	2012-07-29 10:39:17.000000000 +0200
@@ -3,7 +3,7 @@
 require 'rbconfig'
 
 Rake::TestTask.new do |t|
-  t.test_files = FileList['test/*_test.rb']
+  t.test_files = FileList['test/package_test.rb']
   t.ruby_opts << '-I src' << '-rzoom' << '-rtest/unit'
   t.verbose = true
 end

Reply via email to