[postgis] 01/01: Run tests against all supported PostgreSQL versions.

Markus Wanner markus_wanner-guest at moszumanska.debian.org
Wed Sep 28 15:00:17 UTC 2016


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

markus_wanner-guest pushed a commit to branch master
in repository postgis.

commit 39bec375d7a47d9ef8063ecfa998ca1103cd2841
Author: Markus Wanner <markus at bluegap.ch>
Date:   Wed Sep 28 16:59:27 2016 +0200

    Run tests against all supported PostgreSQL versions.
---
 debian/changelog |  1 +
 debian/rules     | 17 +++++++++++++++--
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8b01273..65dfb54 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 postgis (2.3.0+dfsg-2) UNRELEASED; urgency=medium
 
   * Update pgversions to require PostgreSQL 9.2 or newer.
+  * Run tests against all supported PostgreSQL versions.
 
  -- Markus Wanner <markus at bluegap.ch>  Tue, 27 Sep 2016 19:37:29 +0200
 
diff --git a/debian/rules b/debian/rules
index c004cbe..3ea947b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -212,8 +212,7 @@ build-indep-stamp: configuration-stamp build-arch-stamp
 	touch $@
 
 check: build-arch-stamp
-#   Run unit tests (against the newest Postgres version only, for
-#   now).
+#   Run unit tests (against the newest Postgres version, first)
 	echo "LD_PRELOAD = '$(CURDIR)/liblwgeom/.libs/liblwgeom-$(MAJOR_VERSION).$(MINOR_VERSION).so.$(LIBLWGEOM_SOVERSION)'" \
 		> $(CURDIR)/postgis-check-env.tmp
 	(set -e; \
@@ -228,6 +227,20 @@ check: build-arch-stamp
 		exit 2) \
 	)
 
+#	Test against all other Postgres versions
+	(set -e; \
+	for PGVER in $(OTHER_POSTGRES_VERSIONS); do \
+		test -z '$(CHECK)' || \
+		pg_virtualenv -v $$PGVER \
+			-c '--environment $(CURDIR)/postgis-check-env.tmp' make check || (\
+		for LOGFILE in /tmp/pgis_reg/test_*_diff; do \
+			echo " ### $$LOGFILE ###"; \
+			cat $$LOGFILE; \
+		done; \
+		echo " ### end of log dumps ###"; \
+		exit 2) \
+	done)
+
 install: install-indep install-arch
 
 install-indep: build-indep

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/postgis.git



More information about the Pkg-grass-devel mailing list