[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-911-gac924b406

git at osgeo.org git at osgeo.org
Sat May 20 06:30:38 PDT 2023


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, master has been updated
       via  ac924b4068bd0de669202fd41181c807056acd65 (commit)
      from  9ffcf35468db241308ae961fbac851a5443f4fec (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 ac924b4068bd0de669202fd41181c807056acd65
Author: Sandro Santilli <strk at kbt.io>
Date:   Sat May 20 15:30:20 2023 +0200

    Add --legacy switch to run_regress.pl

diff --git a/regress/run_test.pl b/regress/run_test.pl
index 20963c959..cb391df4c 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -78,6 +78,7 @@ my $OPT_WITH_RASTER = 0;
 my $OPT_WITH_SFCGAL = 0;
 my $OPT_EXPECT = 0;
 my $OPT_EXTENSIONS = 0;
+my $OPT_LEGACY = 0;
 my @OPT_HOOK_AFTER_CREATE;
 my @OPT_HOOK_AFTER_RESTORE;
 my @OPT_HOOK_BEFORE_DUMP;
@@ -107,6 +108,7 @@ GetOptions (
 	'sfcgal' => \$OPT_WITH_SFCGAL,
 	'expect' => \$OPT_EXPECT,
 	'extensions' => \$OPT_EXTENSIONS,
+	'legacy' => \$OPT_LEGACY,
 	'schema=s' => \$OPT_SCHEMA,
 	'build-dir=s' => \$TOP_BUILDDIR,
 	'after-create-script=s' => \@OPT_HOOK_AFTER_CREATE,
@@ -700,12 +702,13 @@ Options:
   --schema        where to install/find PostGIS (relocatable) PostGIS
                   (defaults to "public")
   --raster        load also raster extension
-  --tiger      		load also tiger_geocoder extension
+  --tiger         load also tiger_geocoder extension
   --topology      load also topology extension
   --sfcgal        use also sfcgal backend
   --clean         cleanup test logs on exit
   --expect        save obtained output as expected
   --extension     load using extensions
+  --legacy        load also legacy scripts
   --build-dir <path>
                   specify where to find the top build dir of PostGIS,
                   to find binaries and scripts
@@ -1675,6 +1678,11 @@ sub prepare_spatial
 	return 0 unless load_sql_file("${scriptdir}/postgis.sql", 1);
 	return 0 unless load_sql_file("${scriptdir}/postgis_comments.sql", 0);
 	return 0 unless load_sql_file("${scriptdir}/spatial_ref_sys.sql", 0);
+	if ( $OPT_LEGACY )
+	{
+		print "Loading legacy.sql from $scriptdir\n";
+		return 0 unless load_sql_file("${scriptdir}/legacy.sql", 0);
+	}
 
 	if ( $OPT_WITH_TOPO )
 	{
@@ -1952,6 +1960,10 @@ sub drop_spatial
 	{
 		load_sql_file("${STAGED_SCRIPTS_DIR}/uninstall_sfcgal.sql");
 	}
+	if ( $OPT_LEGACY )
+	{
+		load_sql_file("${STAGED_SCRIPTS_DIR}/uninstall_legacy.sql");
+	}
 	load_sql_file("${STAGED_SCRIPTS_DIR}/uninstall_postgis.sql");
 
   	return 1;

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

Summary of changes:
 regress/run_test.pl | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list