[pkg-java] r8607 - branches/solr/1.2.0+ds2/debian/patches

Jan-Pascal van Best janpascal-guest at alioth.debian.org
Wed Jun 24 11:36:26 UTC 2009


Author: janpascal-guest
Date: 2009-06-24 11:36:25 +0000 (Wed, 24 Jun 2009)
New Revision: 8607

Added:
   branches/solr/1.2.0+ds2/debian/patches/08_disable-tests-that-need-network-access.dpatch
Modified:
   branches/solr/1.2.0+ds2/debian/patches/00list
Log:
Disable two tests that need network access

Modified: branches/solr/1.2.0+ds2/debian/patches/00list
===================================================================
--- branches/solr/1.2.0+ds2/debian/patches/00list	2009-06-23 22:32:03 UTC (rev 8606)
+++ branches/solr/1.2.0+ds2/debian/patches/00list	2009-06-24 11:36:25 UTC (rev 8607)
@@ -4,3 +4,4 @@
 04_fix-lucene-lock-directory.dpatch
 05_use-debian-java-libraries.dpatch
 07_fix-for-lucene-2.4.dpatch
+08_disable-tests-that-need-network-access.dpatch

Added: branches/solr/1.2.0+ds2/debian/patches/08_disable-tests-that-need-network-access.dpatch
===================================================================
--- branches/solr/1.2.0+ds2/debian/patches/08_disable-tests-that-need-network-access.dpatch	                        (rev 0)
+++ branches/solr/1.2.0+ds2/debian/patches/08_disable-tests-that-need-network-access.dpatch	2009-06-24 11:36:25 UTC (rev 8607)
@@ -0,0 +1,46 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 08_disable-tests-that-need-network-access.dpatch by Jan-Pascal van Best <janpascal at vanbest.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Disable tests that need network access, because they fail for (some of)
+## DP: the autobuilders
+
+ at DPATCH@
+diff -urNad 1.2.0+ds2~/src/test/org/apache/solr/servlet/SolrRequestParserTest.java 1.2.0+ds2/src/test/org/apache/solr/servlet/SolrRequestParserTest.java
+--- 1.2.0+ds2~/src/test/org/apache/solr/servlet/SolrRequestParserTest.java	2007-05-30 17:51:02.000000000 +0200
++++ 1.2.0+ds2/src/test/org/apache/solr/servlet/SolrRequestParserTest.java	2009-06-24 13:28:38.000000000 +0200
+@@ -93,7 +93,7 @@
+     }
+   }
+   
+-
++/* Disabled for Debian builds because this test needs network access
+   public void testStreamURL() throws Exception
+   {
+     boolean ok = false;
+@@ -117,7 +117,7 @@
+     assertEquals( 1, streams.size() );
+     assertEquals( txt, IOUtils.toString( streams.get(0).getStream() ) );
+   }
+-  
++*/ 
+   public void testUrlParamParsing()
+   {
+     String[][] teststr = new String[][] {
+diff -urNad 1.2.0+ds2~/src/test/org/apache/solr/util/ContentStreamTest.java 1.2.0+ds2/src/test/org/apache/solr/util/ContentStreamTest.java
+--- 1.2.0+ds2~/src/test/org/apache/solr/util/ContentStreamTest.java	2007-05-30 17:51:03.000000000 +0200
++++ 1.2.0+ds2/src/test/org/apache/solr/util/ContentStreamTest.java	2009-06-24 13:30:31.000000000 +0200
+@@ -56,7 +56,7 @@
+     assertTrue( IOUtils.contentEquals( new FileReader(      file ), stream.getReader() ) );
+   }
+   
+-
++/* Disabled for Debian build because this test needs network access
+   public void testURLStream() throws IOException 
+   {
+     String content = null;
+@@ -89,3 +89,4 @@
+     assertTrue( IOUtils.contentEquals( new StringReader( content ), stream.getReader() ) );
+   }
+ }
++*/


Property changes on: branches/solr/1.2.0+ds2/debian/patches/08_disable-tests-that-need-network-access.dpatch
___________________________________________________________________
Added: svn:executable
   + *




More information about the pkg-java-commits mailing list