[postgis-tickets] [SCM] PostGIS branch out-of-tree-builds updated. 3.2.0-319-g2b210f4a9
git at osgeo.org
git at osgeo.org
Thu Jan 20 10:33:05 PST 2022
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, out-of-tree-builds has been updated
via 2b210f4a9a2d9400f90ad37d927bec8a893acf1e (commit)
from 8b5d0f053c9df6eefce9d565795cdf7dc3b72e1c (commit)
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 2b210f4a9a2d9400f90ad37d927bec8a893acf1e
Author: Sandro Santilli <strk at kbt.io>
Date: Thu Jan 20 19:32:52 2022 +0100
Fix out-of-tree raster unit tests
diff --git a/raster/test/cunit/Makefile.in b/raster/test/cunit/Makefile.in
index 4e217ffb0..03f3d1344 100644
--- a/raster/test/cunit/Makefile.in
+++ b/raster/test/cunit/Makefile.in
@@ -39,6 +39,7 @@ CFLAGS = \
-I$(top_builddir)/raster \
-I$(builddir) \
-I$(builddir)/.. \
+ -DPOSTGIS_TOP_SRC_DIR='"$(realpath $(top_srcdir))"' \
$(LIBLWGEOM_CFLAGS) \
$(RTCORE_CFLAGS) \
$(PROJ_CFLAGS) \
diff --git a/raster/test/cunit/cu_band_basics.c b/raster/test/cunit/cu_band_basics.c
index 836e66145..5219442e9 100644
--- a/raster/test/cunit/cu_band_basics.c
+++ b/raster/test/cunit/cu_band_basics.c
@@ -33,7 +33,7 @@ static void test_band_metadata() {
int height = 5;
int temp = 0;
double val = 0;
- char *path = "../regress/loader/testraster.tif";
+ char *path = POSTGIS_TOP_SRC_DIR "/raster/test/regress/loader/testraster.tif";
uint8_t extband = 0;
int x;
int y;
@@ -1263,7 +1263,7 @@ static void test_band_new_offline_from_path() {
rt_band band = NULL;
int width = 10;
int height = 10;
- char *path = "../regress/loader/testraster.tif";
+ char *path = POSTGIS_TOP_SRC_DIR "/raster/test/regress/loader/testraster.tif";
uint8_t extband = 0;
/* offline band */
-----------------------------------------------------------------------
Summary of changes:
raster/test/cunit/Makefile.in | 1 +
raster/test/cunit/cu_band_basics.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list