]> granicus.if.org Git - postgis/commitdiff
Allow specifying name of regress database on make check
authorSandro Santilli <strk@keybit.net>
Thu, 10 Apr 2014 09:54:02 +0000 (09:54 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 10 Apr 2014 09:54:02 +0000 (09:54 +0000)
Honours a POSTGIS_REGRESS_DB environment variable

git-svn-id: http://svn.osgeo.org/postgis/trunk@12452 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test.pl

index 12936256658ab7a7918229c70e2c908c60c0477a..622762fc6171b6cdb813e066a5b65239e0cf0cf9 100755 (executable)
@@ -24,7 +24,7 @@ use strict;
 # Global configuration items
 ##################################################################
 
-our $DB = "postgis_reg";
+our $DB = $ENV{"POSTGIS_REGRESS_DB"} || "postgis_reg";
 our $REGDIR = abs_path(dirname($0));
 our $SHP2PGSQL = $REGDIR . "/../loader/shp2pgsql";
 our $PGSQL2SHP = $REGDIR . "/../loader/pgsql2shp";