[postgis-tickets] r17256 - Update test running instructions

Paul Ramsey pramsey at cleverelephant.ca
Fri Feb 15 11:00:31 PST 2019


Author: pramsey
Date: 2019-02-15 11:00:31 -0800 (Fri, 15 Feb 2019)
New Revision: 17256

Modified:
   branches/2.5/extras/ogc_test_suite/README
Log:
Update test running instructions


Modified: branches/2.5/extras/ogc_test_suite/README
===================================================================
--- branches/2.5/extras/ogc_test_suite/README	2019-02-15 18:54:06 UTC (rev 17255)
+++ branches/2.5/extras/ogc_test_suite/README	2019-02-15 19:00:31 UTC (rev 17256)
@@ -1,20 +1,16 @@
 This test suite was originally downloaded from 
-http://www.opengeospatial.org/resources/?page=testing&view=sfsql
+http://cite.opengeospatial.org/teamengine/about/sfs/1.2.1/site/
 and legal adaptations necessary for PostGIS were added to allow it
 to run.
 
-- All tests must be run in a database named 'ogc' in order for the 
-  AddGeometryColumn() function calls to work.
+  dropdb --if-exists ogc_test_suite
+  createdb ogc_test_suite
+  psql ogc_test_suite < ../../postgis/postgis.sql
+  psql -c 'create extension postgis' ogc_test_suite
+  psql -a -f 1_schema.sql  ogc_test_suite >& 1_output.txt
+  psql -a -f 2_queries.sql ogc_test_suite >& 2_output.txt
+  psql -a -f 3_cleanup.sql ogc_test_suite >& 3_output.txt
 
-  createdb ogc
-  createlang plpgsql ogc
-  psql ogc < ../../postgis.sql
-
-  psql -a -f 1_schema.sql ogc >& 1_output.txt
-  psql -a -f 2_queries.sql ogc >& 2_output.txt
-  psql -a -f 3_cleanup.sql ogc >& 3_output.txt
-
 - Load the test files in order. File 2 has the actual tests, with the
   correct answers for each test in the comments.
 
-



More information about the postgis-tickets mailing list