From: Paul Ramsey Date: Fri, 15 Feb 2019 19:00:50 +0000 (+0000) Subject: Update test running instructions X-Git-Tag: 2.3.9~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8622097a3e22416dafa703b4ce3026edab61efb;p=postgis Update test running instructions git-svn-id: http://svn.osgeo.org/postgis/branches/2.3@17257 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/extras/ogc_test_suite/README b/extras/ogc_test_suite/README index 45cdb3f5e..0f3566c9f 100644 --- a/extras/ogc_test_suite/README +++ b/extras/ogc_test_suite/README @@ -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. -