[postgis-tickets] [SCM] PostGIS branch gitlab-ci-32bit updated. 3.2.0alpha1-30-g9589281

git at osgeo.org git at osgeo.org
Mon Sep 27 02:41:30 PDT 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, gitlab-ci-32bit has been updated
  discards  c39d7916421b662768c2bf36057c4a68465f5692 (commit)
  discards  6bf2d66482009a010ea8a739082b750fc97d8f63 (commit)
       via  9589281acdeb37ce190471024f0332947e1139c9 (commit)
       via  3158fb0315ce08fe7aa9809f0ebaf733c539a077 (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (c39d7916421b662768c2bf36057c4a68465f5692)
            \
             N -- N -- N (9589281acdeb37ce190471024f0332947e1139c9)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9589281acdeb37ce190471024f0332947e1139c9
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Sep 27 11:37:12 2021 +0200

    Tolerance DBL_TOLERANCE in closest_point_on_segment test

diff --git a/liblwgeom/cunit/cu_ptarray.c b/liblwgeom/cunit/cu_ptarray.c
index 60c23c7..36eb538 100644
--- a/liblwgeom/cunit/cu_ptarray.c
+++ b/liblwgeom/cunit/cu_ptarray.c
@@ -818,14 +818,14 @@ static void test_ptarray_closest_point_on_segment(void)
 	closest_point_on_segment(&qp, &s0, &s1, &cp);
 	ASSERT_DOUBLE_EQUAL(cp.x, 0);
 	ASSERT_DOUBLE_EQUAL(cp.y, 8);
-	ASSERT_DOUBLE_EQUAL(cp.z, 2);
+	ASSERT_DOUBLE_EQUAL_TOLERANCE(cp.z, 2, DBL_EPSILON);
 	ASSERT_DOUBLE_EQUAL(cp.m, 12);
 
 	qp.x = -0.1; qp.y = 8;
 	closest_point_on_segment(&qp, &s0, &s1, &cp);
 	ASSERT_DOUBLE_EQUAL(cp.x, 0);
 	ASSERT_DOUBLE_EQUAL(cp.y, 8);
-	ASSERT_DOUBLE_EQUAL(cp.z, 2);
+	ASSERT_DOUBLE_EQUAL_TOLERANCE(cp.z, 2, DBL_EPSILON);
 	ASSERT_DOUBLE_EQUAL(cp.m, 12);
 
 
diff --git a/liblwgeom/cunit/cu_tester.h b/liblwgeom/cunit/cu_tester.h
index ebc1681..2a55ad0 100644
--- a/liblwgeom/cunit/cu_tester.h
+++ b/liblwgeom/cunit/cu_tester.h
@@ -35,6 +35,12 @@ typedef void (*PG_SuiteSetup)(void);
   CU_ASSERT_EQUAL(o,(double)e); \
 } while (0);
 
+#define ASSERT_DOUBLE_EQUAL_TOLERANCE(o,e,t) do { \
+  if ( o != e ) \
+    fprintf(stderr, "[%s:%d]\n Expected: %g\n Obtained: %g\n Tolerated: %.15g\n", __FILE__, __LINE__, (double)(e), (o), (t)); \
+  CU_ASSERT_DOUBLE_EQUAL(o,e,t); \
+} while (0);
+
 #define ASSERT_INT_EQUAL(o,e) do { \
   if ( o != e ) \
     fprintf(stderr, "[%s:%d]\n Expected: %d\n Obtained: %d\n", __FILE__, __LINE__, (e), (o)); \

commit 3158fb0315ce08fe7aa9809f0ebaf733c539a077
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Sep 27 11:20:38 2021 +0200

    [gitlab-ci] Add 32bit testing

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eb3f9b1..2f76335 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,3 +25,31 @@ test:
     - make install
     - RUNTESTFLAGS=-v make installcheck
     - RUNTESTFLAGS="-v --dumprestore" make installcheck
+
+test32:
+  image: i386/debian:buster
+  except:
+    - main
+  script:
+    - apt-get update -qq && apt-get install -y
+        bison flex
+        postgresql-11 postgresql-server-dev-11
+        build-essential autoconf libtool libcunit1-dev
+        xsltproc docbook-xsl docbook-mathml dblatex
+        libproj-dev libgdal-dev libgeos-dev libjson-c-dev
+        libprotobuf-c1 libprotobuf-c-dev protobuf-c-compiler
+    - lsb_release -a
+    - uname -a
+    - service postgresql start
+    - su -l postgres -c "createuser -s `whoami`"
+    - ./autogen.sh
+    - ./configure
+    - make maintainer-clean
+    - ./autogen.sh
+    - ./configure CFLAGS="-Wall -fno-omit-frame-pointer -Werror"
+    - make
+    - RUNTESTFLAGS=-v make check
+    - RUNTESTFLAGS="-v --dumprestore" make check-regress
+    - make install
+    - RUNTESTFLAGS=-v make installcheck
+    - RUNTESTFLAGS="-v --dumprestore" make installcheck

-----------------------------------------------------------------------

Summary of changes:
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list