Codebase list cds-healpix-java / 868946e
Rediff patches Drop Update-build-to-fail-if-a-test-fails-fix-test-error.patch: <REASON> Ole Streicher 3 years ago
4 changed file(s) with 3 addition(s) and 57 deletion(s). Raw diff Collapse all Expand all
66 1 file changed, 3 insertions(+), 3 deletions(-)
77
88 diff --git a/build.xml b/build.xml
9 index 7b14992..1cedfb7 100644
9 index 27a46c3..99cfcd8 100644
1010 --- a/build.xml
1111 +++ b/build.xml
1212 @@ -212,10 +212,10 @@
66 1 file changed, 12 insertions(+), 15 deletions(-)
77
88 diff --git a/build.xml b/build.xml
9 index 1cedfb7..675b9af 100644
9 index 99cfcd8..c52588f 100644
1010 --- a/build.xml
1111 +++ b/build.xml
1212 @@ -11,8 +11,7 @@
5858
5959 - <target name="test" depends="compile,tcompile">
6060 + <target name="test" depends="tcompile">
61 <junit fork="true">
61 <junit haltonfailure="true" fork="true">
6262 <classpath>
6363 <pathelement location="${classes}" />
6464 <pathelement location="${tclasses}" />
+0
-53
debian/patches/Update-build-to-fail-if-a-test-fails-fix-test-error.patch less more
0 From: pineau <francois-xavier.pineau@astro.unistra.fr>
1 Date: Tue, 12 Nov 2019 15:14:39 +0100
2 Subject: Update build to fail if a test fails, fix test error
3
4 ---
5 build.xml | 2 +-
6 src/test/java/cds/healpix/common/math/HasckerDelightTestPerf.java | 6 +++---
7 2 files changed, 4 insertions(+), 4 deletions(-)
8
9 diff --git a/build.xml b/build.xml
10 index 675b9af..c52588f 100644
11 --- a/build.xml
12 +++ b/build.xml
13 @@ -141,7 +141,7 @@
14 <!-- EXEC TESTS -->
15
16 <target name="test" depends="tcompile">
17 - <junit fork="true">
18 + <junit haltonfailure="true" fork="true">
19 <classpath>
20 <pathelement location="${classes}" />
21 <pathelement location="${tclasses}" />
22 diff --git a/src/test/java/cds/healpix/common/math/HasckerDelightTestPerf.java b/src/test/java/cds/healpix/common/math/HasckerDelightTestPerf.java
23 index b4ee97f..6c67ab0 100644
24 --- a/src/test/java/cds/healpix/common/math/HasckerDelightTestPerf.java
25 +++ b/src/test/java/cds/healpix/common/math/HasckerDelightTestPerf.java
26 @@ -43,7 +43,7 @@ public final class HasckerDelightTestPerf {
27 l2 = System.nanoTime();
28 System.out.println("HalfClassic: " + s1 + " in " + (l2 - l1) / 1000000.0 + " ms");
29
30 - assertEquals(s1, s2);
31 + assertEquals(s1, s2, 1e-15);
32
33 l1 = System.nanoTime();
34 s1 = halfOfBits(data);
35 @@ -55,7 +55,7 @@ public final class HasckerDelightTestPerf {
36 l2 = System.nanoTime();
37 System.out.println("HalfClassic: " + s1 + " in " + (l2 - l1) / 1000000.0 + " ms");
38
39 - assertEquals(s1, s2);
40 + assertEquals(s1, s2, 1e-15);
41 }
42
43 private static double halfOfClassic(final double[] values) {
44 @@ -75,7 +75,7 @@ public final class HasckerDelightTestPerf {
45 }
46
47 @Test
48 - public void testPerf(final String[] args) {
49 + public void testPerf() {
50 // Same exec time: smart compilo ;)
51 System.out.println("Check that performances are the same (smart compilo ;) ):");
52 halfOfTest(60000000);
00 Fix-jar-file-name.patch
11 Put-system-libs-into-jarpath.patch
2 Update-build-to-fail-if-a-test-fails-fix-test-error.patch