[Git][debian-gis-team/postgis][experimental] Fix regression tests for older PG versions.
Christoph Berg (@myon)
gitlab at salsa.debian.org
Fri May 28 20:07:31 BST 2021
Christoph Berg pushed to branch experimental at Debian GIS Project / postgis
Commits:
912b80dc by Christoph Berg at 2021-05-28T21:07:21+02:00
Fix regression tests for older PG versions.
- - - - -
2 changed files:
- debian/changelog
- debian/tests/regress
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+postgis (3.1.2+dfsg-1~exp2) UNRELEASED; urgency=medium
+
+ * Fix regression tests for older PG versions.
+
+ -- Christoph Berg <myon at debian.org> Fri, 28 May 2021 21:06:19 +0200
+
postgis (3.1.2+dfsg-1~exp1) experimental; urgency=medium
* New upstream release.
=====================================
debian/tests/regress
=====================================
@@ -31,9 +31,13 @@ trap "rm -rf /tmp/pgis_reg" EXIT
# run the regression tests
for v in $(pg_buildext installed-versions); do
+ case $v in
+ *.*) HAVE_SPGIST=no POSTGIS_PGSQL_VERSION=$(echo $v | tr -d .) ;;
+ *) HAVE_SPGIST=yes POSTGIS_PGSQL_VERSION="${v}0" ;;
+ esac
pg_virtualenv -v $v <<-EOF
set -eux
- make -C regress/core -f Makefile.in check PERL=perl RUNTESTFLAGS="--extension --verbose" POSTGIS_GEOS_VERSION=$POSTGIS_GEOS_VERSION
- make -C sfcgal/regress -f Makefile.in check PERL=perl RUNTESTFLAGS="--extension --verbose" HAVE_SFCGAL=yes
+ make -C regress/core -f Makefile.in check PERL=perl RUNTESTFLAGS="--extension --verbose" POSTGIS_PGSQL_VERSION=$POSTGIS_PGSQL_VERSION POSTGIS_GEOS_VERSION=$POSTGIS_GEOS_VERSION HAVE_SPGIST=$HAVE_SPGIST
+ make -C sfcgal/regress -f Makefile.in check PERL=perl RUNTESTFLAGS="--extension --verbose" POSTGIS_PGSQL_VERSION=$POSTGIS_PGSQL_VERSION HAVE_SFCGAL=yes
EOF
done
View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/-/commit/912b80dc9e48e0b6246b23f5bb4e425cf8016de3
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/-/commit/912b80dc9e48e0b6246b23f5bb4e425cf8016de3
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20210528/7c9aabac/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list