]> granicus.if.org Git - postgis/commitdiff
Update test running instructions
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 15 Feb 2019 19:00:50 +0000 (19:00 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 15 Feb 2019 19:00:50 +0000 (19:00 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/2.3@17257 b70326c6-7e19-0410-871a-916f4a2858ee

extras/ogc_test_suite/README

index 45cdb3f5e7b9425052d6ffe76b9b9feb09170785..0f3566c9f6708df9618136ae1d7127021ab9bc2c 100644 (file)
@@ -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.
-
-  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
+  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
 
 - Load the test files in order. File 2 has the actual tests, with the
   correct answers for each test in the comments.
 
-