Commit 1a9d4527 authored by Paul Ramsey's avatar Paul Ramsey

Update test running instructions


git-svn-id: http://svn.osgeo.org/postgis/branches/2.5@17256 b70326c6-7e19-0410-871a-916f4a2858ee
parent 6ad6902e
Pipeline #47741912 passed with stage
in 24 minutes and 29 seconds
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.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment