[med-svn] [htsjdk] 03/08: remove network tests to fix bug #808593

Olivier Sallou osallou at debian.org
Tue Jan 5 15:44:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

osallou pushed a commit to branch master
in repository htsjdk.

commit 3cd01be31597c960c2cf3e09ca789ae39e564c40
Author: Olivier Sallou <olivier.sallou at debian.org>
Date:   Tue Jan 5 13:45:16 2016 +0100

    remove network tests to fix bug #808593
---
 debian/changelog                     |  1 +
 debian/patches/13-skip_network_tests | 55 ++++++++++++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 57 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index cb96efd..3bf0bd7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 htsjdk (2.0.1+dfsg.1-1) UNRELEASED; urgency=medium
 
   * New upstream version
+  * remove network tests (Closes: #808593)
 
  -- Andreas Tille <tille at debian.org>  Sat, 19 Dec 2015 21:26:39 +0100
 
diff --git a/debian/patches/13-skip_network_tests b/debian/patches/13-skip_network_tests
new file mode 100644
index 0000000..0fa4151
--- /dev/null
+++ b/debian/patches/13-skip_network_tests
@@ -0,0 +1,55 @@
+Author: Olivier Sallou <osallou at debian.org>
+Subject: disable network tests
+Description: remove network related tests
+ fixing bug 808593
+Last-Updated: 2015-01-06
+--- a/src/tests/java/htsjdk/tribble/util/ParsingUtilsTest.java
++++ b/src/tests/java/htsjdk/tribble/util/ParsingUtilsTest.java
+@@ -117,47 +117,12 @@
+         testSplitJoinRoundtrip("\ta\tb", '\t', Arrays.asList("", "a", "b"));
+     }
+ 
+-    @Test
+-    public void testFTPDoesExist() throws IOException{
+-        tstExists(AVAILABLE_FTP_URL, true);
+-    }
+-
+-    @Test
+-    public void testFTPNotExist() throws IOException{
+-        tstExists(UNAVAILABLE_FTP_URL, false);
+-    }
+-
+-    @Test
+-    public void testHTTPDoesExist() throws IOException{
+-        tstExists(AVAILABLE_HTTP_URL, true);
+-    }
+-
+-    @Test
+-    public void testHTTPNotExist() throws IOException{
+-        tstExists(UNAVAILABLE_HTTP_URL, false);
+-    }
+-
+     private void tstExists(String path, boolean expectExists) throws IOException{
+         boolean exists = ParsingUtils.resourceExists(path);
+         Assert.assertEquals(exists, expectExists);
+     }
+ 
+-    @Test
+-    public void testFTPOpenInputStream() throws IOException{
+-        tstStream(AVAILABLE_FTP_URL);
+-    }
+-
+-    @Test
+-    public void testHTTPOpenInputStream() throws IOException{
+-        tstStream(AVAILABLE_HTTP_URL);
+-    }
+ 
+-    private void tstStream(String path) throws IOException{
+-        InputStream is = ParsingUtils.openInputStream(path);
+-        Assert.assertNotNull(is, "InputStream is null for " + path);
+-        int b = is.read();
+-        Assert.assertNotSame(b, -1);
+-    }
+ 
+ 
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 3b37e27..41d8b1c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 10-build.xml
 11-snappy-java-compatibility.patch
 12-use_libjbzip2-java
+13-skip_network_tests

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/htsjdk.git



More information about the debian-med-commit mailing list