[DRE-commits] [ruby-eventmachine] 02/03: Skip tests requiring network connection
Balint Reczey
rbalint at moszumanska.debian.org
Wed Jun 29 22:10:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
rbalint pushed a commit to branch wheezy-security
in repository ruby-eventmachine.
commit d2202fc23b9430ce046375dcbf533e4fbedfad4e
Author: Balint Reczey <balint at balintreczey.hu>
Date: Wed Jun 29 21:25:02 2016 +0200
Skip tests requiring network connection
---
debian/patches/series | 1 +
debian/patches/skip_tests_using_network.patch | 106 ++++++++++++++++++++++++++
debian/ruby-tests.rb | 3 +-
3 files changed, 109 insertions(+), 1 deletion(-)
diff --git a/debian/patches/series b/debian/patches/series
index 487433c..0c81343 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@
0010-use-rb_thread_fd_select-whenever-possible.patch
0011-fix-build-on-ruby-1.9.1.patch
0012-allocate-one-SelectData_t-per-reactor-to-avoid-heap-.patch
+skip_tests_using_network.patch
diff --git a/debian/patches/skip_tests_using_network.patch b/debian/patches/skip_tests_using_network.patch
new file mode 100644
index 0000000..d920941
--- /dev/null
+++ b/debian/patches/skip_tests_using_network.patch
@@ -0,0 +1,106 @@
+Description: disable tests requiring network connection
+ These tests should pass if network access is available
+Bug-Debian: http://bugs.debian.org/710941
+Origin: vendor
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: not-needed
+Last-Update: 2013-06-16
+
+--- a/tests/test_basic.rb
++++ b/tests/test_basic.rb
+@@ -187,7 +187,7 @@
+ assert_equal($sent, $received)
+ end
+
+- def test_bind_connect
++ def est_bind_connect
+ local_ip = UDPSocket.open {|s| s.connect('google.com', 80); s.addr.last }
+
+ bind_port = rand(33333)+1025
+--- a/tests/test_httpclient.rb
++++ b/tests/test_httpclient.rb
+@@ -41,7 +41,7 @@
+
+ #-------------------------------------
+
+- def test_http_client
++ def est_http_client
+ ok = false
+ EventMachine.run {
+ c = EventMachine::Protocols::HttpClient.send :request, :host => "www.google.com", :port => 80
+@@ -56,7 +56,7 @@
+
+ #-------------------------------------
+
+- def test_http_client_1
++ def est_http_client_1
+ ok = false
+ EventMachine.run {
+ c = EventMachine::Protocols::HttpClient.send :request, :host => "www.google.com", :port => 80
+@@ -68,7 +68,7 @@
+
+ #-------------------------------------
+
+- def test_http_client_2
++ def est_http_client_2
+ ok = false
+ EventMachine.run {
+ c = EventMachine::Protocols::HttpClient.send :request, :host => "www.google.com", :port => 80
+@@ -192,7 +192,7 @@
+
+ # TODO, need a more intelligent cookie tester.
+ # In fact, this whole test-harness needs a beefier server implementation.
+- def test_cookie
++ def est_cookie
+ ok = false
+ EM.run {
+ c = EM::Protocols::HttpClient.send :request, :host => "www.google.com", :port => 80, :cookie=>"aaa=bbb"
+@@ -207,7 +207,7 @@
+
+ # We can tell the client to send an HTTP/1.0 request (default is 1.1).
+ # This is useful for suppressing chunked responses until those are working.
+- def test_version_1_0
++ def est_version_1_0
+ ok = false
+ EM.run {
+ c = EM::P::HttpClient.request(
+--- a/tests/test_httpclient2.rb
++++ b/tests/test_httpclient2.rb
+@@ -77,7 +77,7 @@
+ assert(err)
+ end
+
+- def test_get
++ def est_get
+ content = nil
+ EM.run {
+ http = EM::P::HttpClient2.connect "google.com", 80
+@@ -109,7 +109,7 @@
+ assert(content)
+ end
+
+- def test_get_pipeline
++ def est_get_pipeline
+ headers, headers2 = nil, nil
+ EM.run {
+ http = EM::P::HttpClient2.connect "google.com", 80
+@@ -139,7 +139,7 @@
+ }
+ end
+
+- def test_https_get
++ def est_https_get
+ d = nil
+ EM.run {
+ http = EM::P::HttpClient2.connect :host => 'www.amazon.com', :port => 443, :ssl => true
+--- a/tests/test_pending_connect_timeout.rb
++++ b/tests/test_pending_connect_timeout.rb
+@@ -33,7 +33,7 @@
+ end
+ end
+
+- def test_for_real
++ def est_for_real
+ $timeout = nil
+ EM.run {
+ EM.heartbeat_interval = 0.1
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 6e644c1..ec7dd95 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,4 +1,5 @@
-EXCLUDED_TESTS=["tests/test_process_watch.rb",
+EXCLUDED_TESTS=["tests/test_get_sock_opt.rb",
+ "tests/test_process_watch.rb",
"tests/test_processes.rb",
"tests/test_ssl_args.rb",
"tests/test_ssl_methods.rb",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-eventmachine.git
More information about the Pkg-ruby-extras-commits
mailing list