Changes between Version 1 and Version 2 of DevWikiPGRegress
- Timestamp:
- 01/14/11 06:20:19 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevWikiPGRegress
v1 v2 5 5 Basic steps: 6 6 * Create a .sql file listing key preferably corner cases of your function and name it some variant of your function name e.g myfunc.sql. Examples of these are in the /regress folder e.g. dumppoints.sql 7 * Run this sql file using psql and save the output in myfunc_expected. 7 * Run this sql file in a PostGIS enabled db using psql and save the output in myfunc_expected -- e.g. 8 { 9 psql -tXA -h localhost -U postgres -d postgis_reg -f myfunc.sql -o myfunc_expected 10 } 8 11 * Add this .sql script to the Makefile.in in trunk/regress (NOTE: we can do this if you are submitting the patch). Also note that if your function relies on a particular version of GEOS that is not the minimum version for the PostGIS release, you need to wrap it in a conditional of the form: 9 12