Commit 478d48ea authored by Bas Couwenberg's avatar Bas Couwenberg

Imported Upstream version 2.1.2+dfsg

parent e0c5fb3c
This diff is collapsed.
This diff is collapsed.
-- FILE: sqltcle.sql 10/01/98
-- OGC will not examine this script for adaptations.
-- Please add any other cleanup to this script.
DELETE FROM spatial_ref_sys;
DELETE FROM geometry_columns;
DROP TABLE road_segments;
DROP TABLE divided_routes;
DROP TABLE forests;
DROP TABLE bridges;
DROP TABLE streams;
DROP TABLE buildings;
DROP TABLE named_places;
DROP TABLE map_neatlines;
--DROP TABLE route_segments;
--DROP TABLE routes;
--DROP TABLE map_components;
--DROP TABLE maps;
createdb $(TESTDB) > /dev/null
createlang plpgsql $(TESTDB)
psql $(TESTDB) < ../../postgis.sql >/dev/null 2>&1
psql -a -f 1_schema.sql $(TESTDB) > 1_output.txt 2>&1
psql -a -f 2_queries.sql $(TESTDB) > 2_output.txt 2>&1
@echo "---------------------------------------"
@echo "---* Check results in 2_output.txt *---"
@echo "---------------------------------------"
dropdb $(TESTDB)
rm -f 1_output.txt
rm -f 2_output.txt
This test suite was originally downloaded from
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
- 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