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

git at osgeo.org git at osgeo.org
Mon Sep 27 02:38:06 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 created
        at  c39d7916421b662768c2bf36057c4a68465f5692 (commit)

- Log -----------------------------------------------------------------
commit c39d7916421b662768c2bf36057c4a68465f5692
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 6bf2d66482009a010ea8a739082b750fc97d8f63
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Sep 27 11:20:38 2021 +0200

    [gitlab-ci] Add i386 testing

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eb3f9b1..478dbc7 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
+
+test-buster-i386:
+  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

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


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list