[postgis-tickets] r17259 - Update test running instructions
Paul Ramsey
pramsey at cleverelephant.ca
Fri Feb 15 11:01:07 PST 2019
Author: pramsey
Date: 2019-02-15 11:01:06 -0800 (Fri, 15 Feb 2019)
New Revision: 17259
Modified:
trunk/extras/ogc_test_suite/README
Log:
Update test running instructions
Modified: trunk/extras/ogc_test_suite/README
===================================================================
--- trunk/extras/ogc_test_suite/README 2019-02-15 19:00:58 UTC (rev 17258)
+++ trunk/extras/ogc_test_suite/README 2019-02-15 19:01:06 UTC (rev 17259)
@@ -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