[polybori] 01/01: Fix testsuite with boost 1.62.

Tobias Hansen thansen at moszumanska.debian.org
Fri Nov 4 16:07:37 UTC 2016


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

thansen pushed a commit to branch master
in repository polybori.

commit 1f8addc0104e51a3d8ef2753c68d1e46b929b0b7
Author: Tobias Hansen <thansen at broeselmaschine.fc.up.pt>
Date:   Fri Nov 4 15:58:32 2016 +0000

    Fix testsuite with boost 1.62.
---
 debian/changelog                          |   8 ++
 debian/patches/series                     |   1 +
 debian/patches/testsuite-boost-1.62.patch | 218 ++++++++++++++++++++++++++++++
 3 files changed, 227 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index b7e3922..e1bc33d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+brial (0.8.5-2) unstable; urgency=medium
+
+  * Add testsuite-boost-1.62.patch:
+    boost::hash_combine() changed, so we need new hashes for
+    the testsuite. (Closes: #843083)
+
+ -- Tobias Hansen <thansen at debian.org>  Fri, 04 Nov 2016 15:56:11 +0000
+
 brial (0.8.5-1) unstable; urgency=medium
 
   [ Ximin Luo ]
diff --git a/debian/patches/series b/debian/patches/series
index 3579f86..c82a8a8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0003-Protect-CErrorInfo-from-invalid-array-access.patch
 fix-testsuite.patch
+testsuite-boost-1.62.patch
diff --git a/debian/patches/testsuite-boost-1.62.patch b/debian/patches/testsuite-boost-1.62.patch
new file mode 100644
index 0000000..dce342d
--- /dev/null
+++ b/debian/patches/testsuite-boost-1.62.patch
@@ -0,0 +1,218 @@
+Description: Fix testsuite for change in hash_combine in boost 1.62
+ The hash function for boost::hash_combine() which is called in 
+ libbrial/include/polybori/routines/pbori_routines_hash.h was changed for
+ boost 1.62 in the commit
+ https://github.com/boostorg/functional/commit/45eeb170f2b1372b4b5e52744d3c51eddb285b42
+ .
+ Therefore the hashes in the testsuite need to be updated.
+Author: Tobias Hansen <thansen at debian.org>
+
+--- a/testsuite/src/BoolePolynomialTest.cc
++++ b/testsuite/src/BoolePolynomialTest.cc
+@@ -334,21 +334,21 @@
+   BOOST_TEST_MESSAGE( "stableHash");
+ 
+ #ifdef PBORI_TEST_64BITTED
+-  BOOST_CHECK_EQUAL(poly_type(1, ring).stableHash(), 4801919416);
+-  BOOST_CHECK_EQUAL(poly_type(x).stableHash(), 173100285919);
+-  BOOST_CHECK_EQUAL(poly_type(x*y).stableHash(), 11091674931773);
+-  BOOST_CHECK_EQUAL(poly_type(x*y + z).stableHash(), 46073228251744210);
+-  BOOST_CHECK_EQUAL(poly_type(x*y + z + 1).stableHash(), 3005992135566960638);
+-  BOOST_CHECK_EQUAL(poly_type(x*y + x + z).stableHash(), 3006002441743652495);
+-  BOOST_CHECK_EQUAL(poly_type(x*y + x + z + 1).stableHash(), 5907816585472828820);
++  BOOST_CHECK_EQUAL(poly_type(1, ring).stableHash(), 16982317933699389295);
++  BOOST_CHECK_EQUAL(poly_type(x).stableHash(), 14511566905035657723);
++  BOOST_CHECK_EQUAL(poly_type(x*y).stableHash(), 1160268684422367443);
++  BOOST_CHECK_EQUAL(poly_type(x*y + z).stableHash(), 15553547522801749128);
++  BOOST_CHECK_EQUAL(poly_type(x*y + z + 1).stableHash(), 14746308500923705671);
++  BOOST_CHECK_EQUAL(poly_type(x*y + x + z).stableHash(), 6609543853578108291);
++  BOOST_CHECK_EQUAL(poly_type(x*y + x + z + 1).stableHash(), 13745298887294022704);
+ #else
+-  BOOST_CHECK_EQUAL(poly_type(1, ring).stableHash(), 2654501304);
+-  BOOST_CHECK_EQUAL(poly_type(x).stableHash(), 3449012191);
+-  BOOST_CHECK_EQUAL(poly_type(x*y).stableHash(), 4216922685);
+-  BOOST_CHECK_EQUAL(poly_type(x*y + z).stableHash(), 4229314514);
+-  BOOST_CHECK_EQUAL(poly_type(x*y + z + 1).stableHash(), 517852158);
+-  BOOST_CHECK_EQUAL(poly_type(x*y + x + z).stableHash(), 689818255);
+-  BOOST_CHECK_EQUAL(poly_type(x*y + x + z + 1).stableHash(), 3337575060);
++  BOOST_CHECK_EQUAL(poly_type(1, ring).stableHash(), 879054753);
++  BOOST_CHECK_EQUAL(poly_type(x).stableHash(), 3481556931);
++  BOOST_CHECK_EQUAL(poly_type(x*y).stableHash(), 569922758);
++  BOOST_CHECK_EQUAL(poly_type(x*y + z).stableHash(), 240822309);
++  BOOST_CHECK_EQUAL(poly_type(x*y + z + 1).stableHash(), 2507878590);
++  BOOST_CHECK_EQUAL(poly_type(x*y + x + z).stableHash(), 433737400);
++  BOOST_CHECK_EQUAL(poly_type(x*y + x + z + 1).stableHash(), 628776654);
+ #endif
+ 
+   BOOST_TEST_MESSAGE( "deg, TotalDeg, length, nNodes, nUsedVariables, usedVariables");
+@@ -567,21 +567,21 @@
+                               "{d,f}, {d}, {f}, {}}"));
+ 
+ #ifdef PBORI_TEST_64BITTED
+-    BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 4801919416);
+-    BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 173100285919);
+-    BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 11091674931773);
++    BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 16982317933699389295);
++    BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 14511566905035657723);
++    BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 1160268684422367443);
+     BOOST_CHECK_EQUAL(poly_type(c*d +c + e + 1).leadStableHash(),
+-		      11091674972829);
+-    BOOST_CHECK_EQUAL(poly1.leadStableHash(), 173100285919);
+-    BOOST_CHECK_EQUAL(poly2.leadStableHash(), 173100285919);
++		      994909422134781907);
++    BOOST_CHECK_EQUAL(poly1.leadStableHash(), 14511566905035657723);
++    BOOST_CHECK_EQUAL(poly2.leadStableHash(), 14511566905035657723);
+ #else
+-    BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 2654501304);
+-    BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 3449012191);
+-    BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 4216922685);
++    BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 879054753);
++    BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 3481556931);
++    BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 569922758);
+     BOOST_CHECK_EQUAL(poly_type(c*d +c + e + 1).leadStableHash(),
+-		      4216963741);
+-    BOOST_CHECK_EQUAL(poly1.leadStableHash(), 3449012191);
+-    BOOST_CHECK_EQUAL(poly2.leadStableHash(), 3449012191);
++		      1713393842);
++    BOOST_CHECK_EQUAL(poly1.leadStableHash(), 3481556931);
++    BOOST_CHECK_EQUAL(poly2.leadStableHash(), 3481556931);
+ #endif
+ 
+   // naturally lexicographicsl
+@@ -667,21 +667,21 @@
+                               "{d,f}, {d}, {f}, {}}"));
+ 
+ #ifdef PBORI_TEST_64BITTED
+-  BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 4801919416);
+-  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 173100285919);
+-  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 11091674931773);
++  BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 16982317933699389295);
++  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 14511566905035657723);
++  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 1160268684422367443);
+   BOOST_CHECK_EQUAL(poly_type(c*d +c + e + 1).leadStableHash(),
+-		    11091674972829);
+-  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 706244161997016);
+-  BOOST_CHECK_EQUAL(poly2.leadStableHash(),11091674972829);
++		    994909422134781907);
++  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 13332077148710286618);
++  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 994909422134781907);
+ #else
+-  BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 2654501304);
+-  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 3449012191);
+-  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 4216922685);
++  BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 879054753);
++  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 3481556931);
++  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 569922758);
+   BOOST_CHECK_EQUAL(poly_type(c*d +c + e + 1).leadStableHash(),
+-		    4216963741);
+-  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 1214744792);
+-  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 4216963741);
++		    1713393842);
++  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 2080251592);
++  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 1713393842);
+ #endif
+ 
+   BooleMonomial terms1[] = {c*d*e, c*e*f, g*h, a, b};
+@@ -760,21 +760,21 @@
+                               "{d,f}, {d}, {f}, {}}"));
+ 
+ #ifdef PBORI_TEST_64BITTED
+-  BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 4801919416);
+-  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 173100285919);
+-  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 11091674931773);
++  BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 16982317933699389295);
++  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 14511566905035657723);
++  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 1160268684422367443);
+   BOOST_CHECK_EQUAL(poly_type(c*d +c + e + 1).leadStableHash(),
+-		    11091674972829);
+-  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 706244162000938);
+-  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 11091674956572);
++		    994909422134781907);
++  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 16171595639562729641);
++  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 298249910754104916);
+ #else
+-  BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 2654501304);
+-  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 3449012191);
+-  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 4216922685);
++  BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 879054753);
++  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 3481556931);
++  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 569922758);
+   BOOST_CHECK_EQUAL(poly_type(c*d +c + e + 1).leadStableHash(),
+-		    4216963741);
+-  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 1214748714);
+-  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 4216947484);
++		    1713393842);
++  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 3527394431);
++  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 9141547);
+ #endif
+ 
+   BooleMonomial terms1[] = {c*e*f, c*d*e, g*h, b, a};
+@@ -855,21 +855,21 @@
+                               "{d,f}, {d}, {f}, {}}"));
+ 
+ #ifdef PBORI_TEST_64BITTED
+-  BOOST_CHECK_EQUAL(poly_type(1,ring).leadStableHash(), 4801919416);
+-  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 173100285919);
+-  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 11091674931773);
++  BOOST_CHECK_EQUAL(poly_type(1,ring).leadStableHash(), 16982317933699389295);
++  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 14511566905035657723);
++  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 1160268684422367443);
+   BOOST_CHECK_EQUAL(poly_type(c*d +c + e + 1).leadStableHash(),
+-		    11091674972829);
+-  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 173100285919);
+-  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 173100285919);
++		    994909422134781907);
++  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 14511566905035657723);
++  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 14511566905035657723);
+ #else
+-  BOOST_CHECK_EQUAL(poly_type(1,ring).leadStableHash(), 2654501304);
+-  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 3449012191);
+-  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 4216922685);
++  BOOST_CHECK_EQUAL(poly_type(1,ring).leadStableHash(), 879054753);
++  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 3481556931);
++  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 569922758);
+   BOOST_CHECK_EQUAL(poly_type(c*d +c + e + 1).leadStableHash(),
+-		    4216963741);
+-  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 3449012191);
+-  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 3449012191);
++		    1713393842);
++  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 3481556931);
++  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 3481556931);
+ #endif
+ 
+ 
+@@ -950,22 +950,22 @@
+                               "{d,f}, {d}, {f}, {}}"));
+ 
+ #ifdef PBORI_TEST_64BITTED
+-  BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 4801919416);
+-  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 173100285919);
+-  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 11091674931773);
++  BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 16982317933699389295);
++  BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 14511566905035657723);
++  BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 1160268684422367443);
+   BOOST_CHECK_EQUAL(poly_type(c*d +c + e + 1).leadStableHash(),
+-		    11091674972829);
++		    994909422134781907);
+   
+-  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 706244162000938);
+-  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 11091674972829);
++  BOOST_CHECK_EQUAL(poly1.leadStableHash(), 16171595639562729641);
++  BOOST_CHECK_EQUAL(poly2.leadStableHash(), 994909422134781907);
+ #else
+-  BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 2654501304);
+-   BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 3449012191);
+-   BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 4216922685);
++  BOOST_CHECK_EQUAL(poly_type(1, ring).leadStableHash(), 879054753);
++   BOOST_CHECK_EQUAL(poly_type(a).leadStableHash(), 3481556931);
++   BOOST_CHECK_EQUAL(poly_type(a*b).leadStableHash(), 569922758);
+    BOOST_CHECK_EQUAL(poly_type(c*d +c + e + 1).leadStableHash(),
+-		     4216963741);
+-   BOOST_CHECK_EQUAL(poly1.leadStableHash(), 1214748714);
+-   BOOST_CHECK_EQUAL(poly2.leadStableHash(), 4216963741);
++		     1713393842);
++   BOOST_CHECK_EQUAL(poly1.leadStableHash(), 3527394431);
++   BOOST_CHECK_EQUAL(poly2.leadStableHash(), 1713393842);
+ #endif
+ 
+   BooleMonomial terms1[] = {c*e*f, c*d*e, b, a, g*h};

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/polybori.git



More information about the debian-science-commits mailing list