Pierre Gruet pushed to branch master at Debian Java Maintainers / 
libdsiutils-java


Commits:
8ba7f9c0 by Pierre Gruet at 2020-10-23T17:36:23+02:00
Track failing tests and deactivate them as they are due to missing test files

- - - - -
148e09cc by Pierre Gruet at 2020-10-23T17:36:56+02:00
Having the build fail if there are failures or errors in the tests

- - - - -


4 changed files:

- debian/changelog
- debian/patches/build_xml.patch
- + debian/patches/deactivate_malformed_tests.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+libdsiutils-java (2.6.7-1) UNRELEASED; urgency=medium
+
+  * New upstream version 2.6.7
+  * Identifying reasons for failing tests and forwarding the patch upstream
+
+ -- Pierre Gruet <pgtdeb...@free.fr>  Wed, 21 Oct 2020 18:53:48 +0200
+
 libdsiutils-java (2.6.6-2) unstable; urgency=medium
 
   * Adding missing classpath in manifest


=====================================
debian/patches/build_xml.patch
=====================================
@@ -1,7 +1,8 @@
 Description: Adapt build.xml to Debian paths
+ Moreover, having the build fail if there are errors or failures in the tests
 Author: Pierre Gruet <pgtdeb...@free.fr>
 Forwarded: not-needed
-Last-Update: 2020-08-27
+Last-Update: 2020-10-23
 
 --- a/build.xml
 +++ b/build.xml
@@ -43,3 +44,12 @@ Last-Update: 2020-08-27
        </path>
  
  
+@@ -200,7 +203,7 @@
+ 
+ 
+       <target name="junit" depends="compile-tests" description="Runs JUnit 
tests">
+-              <junit printsummary="yes" fork="yes" haltonfailure="off"  
haltonerror="off">
++              <junit printsummary="yes" fork="yes" haltonfailure="on"  
haltonerror="on">
+                       <classpath>
+                               <path refid="test.classpath" />
+                               <pathelement location="${build}"/>


=====================================
debian/patches/deactivate_malformed_tests.patch
=====================================
@@ -0,0 +1,62 @@
+Description: ignoring tests that are supposed to fail
+ testBig fails because it requires too much space, which was expected from
+ upstream's annotation.
+ The two other tests fail because they rely on files that are not there.
+Author: Pierre Gruet <pgtdeb...@free.fr>
+Forwarded: sebastiano.vi...@unimi.it
+Last-Update: 2020-10-21
+
+--- a/test/it/unimi/dsi/big/util/FrontCodedStringBigListTest.java
++++ b/test/it/unimi/dsi/big/util/FrontCodedStringBigListTest.java
+@@ -29,6 +29,7 @@
+ import java.util.List;
+ import java.util.SplittableRandom;
+ 
++import org.junit.Ignore;
+ import org.junit.Test;
+ 
+ import it.unimi.dsi.lang.MutableString;
+@@ -66,7 +67,7 @@
+                       }
+       }
+ 
+-      // @Ignore("Needs a lot of memory")
++      @Ignore("Needs a lot of memory")
+       @Test
+       public void testbig() {
+               final long size = (1L << 31) + 10000;
+--- a/test/it/unimi/dsi/parser/BulletParserTest.java
++++ b/test/it/unimi/dsi/parser/BulletParserTest.java
+@@ -29,6 +29,7 @@
+ import java.lang.reflect.Proxy;
+ 
+ import org.apache.commons.io.IOUtils;
++import org.junit.Ignore;
+ import org.junit.Test;
+ 
+ import com.google.common.base.Charsets;
+@@ -39,6 +40,7 @@
+ 
+ public class BulletParserTest {
+ 
++        @Ignore
+       @Test
+       public void testParser() throws FileNotFoundException, IOException {
+               final char[] text = 
IOUtils.toCharArray(this.getClass().getResourceAsStream("test.data"), 
Charsets.UTF_8);
+--- a/test/it/unimi/dsi/parser/callback/LinkExtractorTest.java
++++ b/test/it/unimi/dsi/parser/callback/LinkExtractorTest.java
+@@ -27,12 +27,14 @@
+ import java.io.IOException;
+ 
+ import org.apache.commons.io.IOUtils;
++import org.junit.Ignore;
+ import org.junit.Test;
+ 
+ import com.google.common.base.Charsets;
+ 
+ public class LinkExtractorTest {
+ 
++        @Ignore
+       @Test
+       public void testExtractor() throws IOException {
+               char[] text = 
IOUtils.toCharArray(this.getClass().getResourceAsStream("LinkExtractorTest.data"),
 Charsets.UTF_8);


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 build_xml.patch
+deactivate_malformed_tests.patch



View it on GitLab: 
https://salsa.debian.org/java-team/libdsiutils-java/-/compare/9e1c5da1ff01371dfa1216dbbd83dd10502d2900...148e09cc999c78ab563b61c93a2254ee1c251b77

-- 
View it on GitLab: 
https://salsa.debian.org/java-team/libdsiutils-java/-/compare/9e1c5da1ff01371dfa1216dbbd83dd10502d2900...148e09cc999c78ab563b61c93a2254ee1c251b77
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
pkg-java-commits mailing list
pkg-java-comm...@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to