postgis/regress
Regina Obe eecdd1859a try to save as utf-8
git-svn-id: http://svn.osgeo.org/postgis/trunk@6990 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-29 14:58:53 +00:00
..
loader try to save as utf-8 2011-03-29 14:58:53 +00:00
affine.sql Get rid of more deprecated calls 2010-12-29 14:14:45 +00:00
affine_expected Get rid of more deprecated calls 2010-12-29 14:14:45 +00:00
clean.sql Replace the old WKB/WKT parser and emitters with the new ones. 2010-12-07 21:08:05 +00:00
clean_expected ST_MakeValid: don't choke on MULTILINESTRING containing invalid LINESTRING elements 2010-05-03 15:59:16 +00:00
ctors.sql Renaming of 3D functions, #817 2011-03-27 17:50:58 +00:00
ctors_expected Get rid of more deprecated calls 2010-12-29 14:14:45 +00:00
dump.sql Test dumping an insanely _empty_ geometry 2010-12-01 14:56:45 +00:00
dump_expected Replace the old WKB/WKT parser and emitters with the new ones. 2010-12-07 21:08:05 +00:00
dumppoints.sql Add St_NumPoints and ST_PointN support for Triangle. Add ST_DumpPoints support for Triangle, Tin and Polyhedral Surface, and related unit tests. Tks to yabo for patch. Related to #564 2010-08-15 18:54:05 +00:00
dumppoints_expected Revert changes on PointN and Numpoints to remove TRIANGLE support. Add ExteriorRing support to TRIANGLE. Changes DumpPoint behaviour to reflect exteriorRing. Update unit tests 2010-09-05 17:01:27 +00:00
hausdorff.sql Add support for hausdorff distance calculations. Requires GEOS 3.2+. (#209) From Vincent Picavet. 2009-06-24 22:08:33 +00:00
hausdorff_expected Add support for hausdorff distance calculations. Requires GEOS 3.2+. (#209) From Vincent Picavet. 2009-06-24 22:08:33 +00:00
in_gml.sql Add Tin and Triangle support for ST_GeomFromGML. Add related unit tests 2010-08-15 13:57:21 +00:00
in_gml_expected Revert GML change. Hm. 2010-11-19 22:12:26 +00:00
in_kml.sql Use lwgeom_homogenize in in_kml stuff. Related to #375 2010-02-20 18:26:59 +00:00
in_kml_expected Use lwgeom_homogenize in in_kml stuff. Related to #375 2010-02-20 18:26:59 +00:00
iscollection.sql Add ST_isCollection (see ticket #549) 2010-07-01 13:20:43 +00:00
iscollection_expected Add ST_isCollection (see ticket #549) 2010-07-01 13:20:43 +00:00
isvalid_test Added transaction begin and end. 2003-06-12 22:25:04 +00:00
isvaliddetail.sql Expose versions of ST_IsValid and ST_IsValidReason accepting "the ESRI flag" and implemented as wrappers to ST_IsValidDetail. Only available when building against GEOS-3.3+. Commit includes documentation and regress-testing. Closes ticket #831 [RT-SIGTA] 2011-02-16 10:19:22 +00:00
isvaliddetail_expected Expose versions of ST_IsValid and ST_IsValidReason accepting "the ESRI flag" and implemented as wrappers to ST_IsValidDetail. Only available when building against GEOS-3.3+. Commit includes documentation and regress-testing. Closes ticket #831 [RT-SIGTA] 2011-02-16 10:19:22 +00:00
long_xact.sql Added Long Transaction Support routines, dox and regress test. 2006-06-25 23:59:33 +00:00
long_xact_expected Added Long Transaction Support routines, dox and regress test. 2006-06-25 23:59:33 +00:00
lwgeom_regress.sql Renaming of 3D functions, #817 2011-03-27 17:50:58 +00:00
lwgeom_regress_expected forgot these 2010-12-29 14:50:16 +00:00
Makefile.in Add test for ST_Polygonize with nested collection input (see ticket #878) 2011-03-21 16:33:14 +00:00
measures.sql Renaming of 3D functions, #817 2011-03-27 17:50:58 +00:00
measures_expected rounding precision difference in measures regress test #703, #735, #607 2010-12-30 18:31:04 +00:00
out_geography.sql Replace the old WKB/WKT parser and emitters with the new ones. 2010-12-07 21:08:05 +00:00
out_geography_expected Replace the old WKB/WKT parser and emitters with the new ones. 2010-12-07 21:08:05 +00:00
out_geometry.sql Fixes the following shp2pgsql issues: 2011-03-18 15:40:31 +00:00
out_geometry_expected Ticket #816: flag to select <LineString> over <Curve> for GML3 line output [RT-SIGTA] 2011-02-22 14:52:51 +00:00
polygonize.sql Add test for ST_Polygonize with nested collection input (see ticket #878) 2011-03-21 16:33:14 +00:00
polygonize_expected Add test for ST_Polygonize with nested collection input (see ticket #878) 2011-03-21 16:33:14 +00:00
polyhedralsurface.sql Add function aliases for ST_NumPatches and ST_PatchN (both SFS 1.2 and SQL/MM). Add PolyhedralSurface for ST_IsClosed (surface vs volume). Update ST_Dimension support to be consistent. Add unit tests. 2010-08-08 20:41:17 +00:00
polyhedralsurface_expected Replace the old WKB/WKT parser and emitters with the new ones. 2010-12-07 21:08:05 +00:00
README Jeff Adams patch to allow pre/post actions in regression tests 2011-03-16 13:03:12 +00:00
regress.sql get rid of addbbox,dropbbox,hasbbox (and replace occurrences in regress with newer postgis_addbbox etc) 2010-12-22 18:42:38 +00:00
regress_bdpoly.sql get rid of deprecated calls 2010-12-28 18:24:04 +00:00
regress_bdpoly_expected get rid of deprecated calls 2010-12-28 18:24:04 +00:00
regress_biginsert.sql Initial revision 2001-06-22 17:39:29 +00:00
regress_buffer_params.sql #722 remove deprecated functions (part): boundary, GeomUnion, intersects, IsRing, IsSimple, 2011-01-05 22:25:25 +00:00
regress_buffer_params_expected For buffer parameters: accept 'butt' as a synonim for 'flat', 'miter' for 'mitre' and 'miter_limit' for 'mitre_limit'. 2009-07-07 15:03:50 +00:00
regress_expected Remove some ST_ variants of cast-support functions (#302), and start legacy.sql.in.c (#722) 2010-12-21 23:56:23 +00:00
regress_index.sql Added versions of functions with standard ST (Spatial Type) prefixes to any functions that were lacking them. Updated the regression tests to include the new functions. 2007-06-04 23:06:28 +00:00
regress_index_expected Skipped checks of SQL command outputs (INSERT,UPDATE,CREATE,DROP). 2005-12-01 14:07:52 +00:00
regress_index_nulls.sql Added test to fix that permitted gist indexes to have more than 459 null geometries in a table 2006-12-20 18:44:55 +00:00
regress_index_nulls_expected initial load 2007-01-03 17:28:03 +00:00
regress_lots_of_nulls.sql Added test to fix that permitted gist indexes to have more than 459 null geometries in a table 2006-12-20 18:44:55 +00:00
regress_lots_of_points.sql Ported index regress test to lwgeom 2004-11-26 16:26:51 +00:00
regress_lrs.sql forgot these 2010-12-29 14:50:16 +00:00
regress_lrs_expected forgot these 2010-12-29 14:50:16 +00:00
regress_management.sql Add regress tests for populate_geometry_columns,DropGeometryTable 2011-03-15 14:04:45 +00:00
regress_management_expected Add regress tests for populate_geometry_columns,DropGeometryTable 2011-03-15 14:04:45 +00:00
regress_ogc.sql #722 (part): Down with really really dumb constructors :) 2011-01-05 14:56:36 +00:00
regress_ogc_cover.sql Allow conditional regression tests based on GEOS_VERNUM and move the 2008-04-07 19:47:05 +00:00
regress_ogc_cover_expected Allow conditional regression tests based on GEOS_VERNUM and move the 2008-04-07 19:47:05 +00:00
regress_ogc_expected Get rid of more deprecated calls 2010-12-29 14:14:45 +00:00
regress_ogc_prep.sql Prepared geometry mixed-types bug fix ported forward from 1.3. 2008-11-07 17:07:12 +00:00
regress_ogc_prep_expected Prepared geometry mixed-types bug fix ported forward from 1.3. 2008-11-07 17:07:12 +00:00
regress_proj.sql get rid of more deprecated 2010-12-29 14:48:52 +00:00
regress_proj_expected get rid of more deprecated 2010-12-29 14:48:52 +00:00
relate.sql Enable a very old relate test which for some reason was never automatically run 2011-03-08 08:16:16 +00:00
relate_bnr.sql Ticket #844: add support for boundary node rule specification in ST_Relate [RT-SIGTA] 2011-03-08 10:23:42 +00:00
relate_bnr_expected Ticket #844: add support for boundary node rule specification in ST_Relate [RT-SIGTA] 2011-03-08 10:23:42 +00:00
relate_expected Enable a very old relate test which for some reason was never automatically run 2011-03-08 08:16:16 +00:00
relatematch.sql Implement ST_RelateMatch, see ticket #717. [RT-SIGTA] 2010-12-21 10:32:39 +00:00
relatematch_expected Implement ST_RelateMatch, see ticket #717. [RT-SIGTA] 2010-12-21 10:32:39 +00:00
remove_repeated_points.sql Add SRID retainment testcase for removerepeatedpoint (paranoia) 2010-03-11 17:53:20 +00:00
remove_repeated_points_expected Add SRID retainment testcase for removerepeatedpoint (paranoia) 2010-03-11 17:53:20 +00:00
removepoint.sql Get rid of more deprecated calls 2010-12-29 14:14:45 +00:00
removepoint_expected Get rid of more deprecated calls 2010-12-29 14:14:45 +00:00
run_test Jeff Adams: Removed not-really-necessary -m1 parameter from grep call because it does not work on MingW. 2011-03-18 19:22:43 +00:00
setpoint.sql Get rid of more deprecated calls 2010-12-29 14:14:45 +00:00
setpoint_expected Get rid of more deprecated calls 2010-12-29 14:14:45 +00:00
sharedpaths.sql Add a couple more cases provided by RT-SITA 2010-12-06 15:07:48 +00:00
sharedpaths_expected Add a couple more cases provided by RT-SITA 2010-12-06 15:07:48 +00:00
simplify.sql Good bye simplify 2010-12-22 19:15:02 +00:00
simplify_expected Good bye simplify 2010-12-22 19:15:02 +00:00
snap.sql Add SNAP test reported on JTS mailing list 2010-12-03 10:13:38 +00:00
snap_expected Add SNAP test reported on JTS mailing list 2010-12-03 10:13:38 +00:00
snaptogrid.sql #722 remove deprecated functions (part): boundary, GeomUnion, intersects, IsRing, IsSimple, 2011-01-05 22:25:25 +00:00
snaptogrid_expected #722 remove deprecated functions (part): boundary, GeomUnion, intersects, IsRing, IsSimple, 2011-01-05 22:25:25 +00:00
split.sql Test splitting 3d line by 2d blade 2010-06-25 07:41:42 +00:00
split_expected Test splitting 3d line by 2d blade 2010-06-25 07:41:42 +00:00
sql-mm-circularstring.sql remove more deprecated functions 2011-01-04 12:51:45 +00:00
sql-mm-circularstring_expected get rid of more deprecated functions 2011-01-03 19:26:19 +00:00
sql-mm-compoundcurve.sql get rid of more deprecated functions 2011-01-03 19:26:19 +00:00
sql-mm-compoundcurve_expected get rid of more deprecated functions 2011-01-03 19:26:19 +00:00
sql-mm-curvepoly.sql get rid of more deprecated 2010-12-29 14:48:52 +00:00
sql-mm-curvepoly_expected get rid of more deprecated 2010-12-29 14:48:52 +00:00
sql-mm-general.sql Fix for Issue 108 and regress test. 2009-02-02 06:01:27 +00:00
sql-mm-general_expected Fix for Issue 108 and regress test. 2009-02-02 06:01:27 +00:00
sql-mm-multicurve.sql remove deprecated tests 2010-12-29 15:17:08 +00:00
sql-mm-multicurve_expected remove deprecated tests 2010-12-29 15:17:08 +00:00
sql-mm-multisurface.sql get rid of more deprecated calls, but keep old deprecated wmsservers and rename to wmsservers_old. Create a new version wmsservers_new that doesn't use deprecated calls. the old will fail once I pull the switch on old deprecated calls, but the new should work. 2010-12-29 15:37:47 +00:00
sql-mm-multisurface_expected get rid of more deprecated calls, but keep old deprecated wmsservers and rename to wmsservers_old. Create a new version wmsservers_new that doesn't use deprecated calls. the old will fail once I pull the switch on old deprecated calls, but the new should work. 2010-12-29 15:37:47 +00:00
sql-mm-serialize.sql Remove Integer deprecaded types (POINTTYPEI, LINETYPEI, POLYGONTYPEI) and lwgi related stuff. As a consequence EWKB of CURVEPOLYTYPE, MULTICURVETYPE and MULTISURFACETYPE is changed/impacted (geometry type bits). Now we have 3 new free geometry type available. Preliminary work to #427 2010-07-24 10:55:34 +00:00
sql-mm-serialize_expected Added typedefs and serialization/deserialization functionality for sql-mm defined curved geometry types. Added a point_in_polygon short-circuit for contains and within functions. 2006-12-01 22:16:44 +00:00
test_index_concurrency Separated 'export' from assignment, for Solaris support - reported by Michael Fuhr 2006-01-21 08:40:41 +00:00
tickets.sql Improve precision of point_in_ring. Fixes and regress-tests bug #845. 2011-02-24 15:17:37 +00:00
tickets_expected Improve precision of point_in_ring. Fixes and regress-tests bug #845. 2011-02-24 15:17:37 +00:00
unaryunion.sql ST_UnaryUnion and test 2011-02-14 17:26:38 +00:00
unaryunion_expected ST_UnaryUnion and test 2011-02-14 17:26:38 +00:00
wkt.sql Added versions of functions with standard ST (Spatial Type) prefixes to any functions that were lacking them. Updated the regression tests to include the new functions. 2007-06-04 23:06:28 +00:00
wkt_expected Add new lwmessage_truncate() function to liblwgeom that will truncate a string to a maximum number of characters, adding a "..." to indicate where the string has been trimmed. Truncation can be specified to occur from either the start or end of the string as required. Also update the parser error handler to use the new function. 2008-12-10 12:32:40 +00:00
wmsservers_new.sql get rid of more deprecated calls, but keep old deprecated wmsservers and rename to wmsservers_old. Create a new version wmsservers_new that doesn't use deprecated calls. the old will fail once I pull the switch on old deprecated calls, but the new should work. 2010-12-29 15:37:47 +00:00
wmsservers_new_expected get rid of more deprecated calls, but keep old deprecated wmsservers and rename to wmsservers_old. Create a new version wmsservers_new that doesn't use deprecated calls. the old will fail once I pull the switch on old deprecated calls, but the new should work. 2010-12-29 15:37:47 +00:00
wmsservers_old.sql get rid of more deprecated calls, but keep old deprecated wmsservers and rename to wmsservers_old. Create a new version wmsservers_new that doesn't use deprecated calls. the old will fail once I pull the switch on old deprecated calls, but the new should work. 2010-12-29 15:37:47 +00:00
wmsservers_old_expected get rid of more deprecated calls, but keep old deprecated wmsservers and rename to wmsservers_old. Create a new version wmsservers_new that doesn't use deprecated calls. the old will fail once I pull the switch on old deprecated calls, but the new should work. 2010-12-29 15:37:47 +00:00

How to add a regression test
----------------------------

1. Write a /regress/<testname>.sql file with data and sql queries for testing
2. Write a /regress/<testname>_expected or <testname>_expected.in file with 
   expected results per query
   The expected results provided in the <testname>_expected file must be 
   formatted using the following psql options:
      -a -- unaligned columns
      -f | -- use | (pipe) as the field separator between columns
      -t -- output rows only, ie. no table header

   cat file.sql | psql -F\| -t -A > file_expected

3. Edit regress/Makefile adding <testname> to the TESTS variable.
   Any _expected.in files need to be added to the PREPROC variable.

Optional:
   If your test has unusual setup or teardown requirements, you may create
   any of the following optional files (they will run in this order):
        /regress/<testname>-pre.sh
        /regress/<testname>-pre.sql   (run via psql)
                 (The test itself is run here.)
        /regress/<testname>-post.sql  (run via psql)
        /regress/<testname>-post.sh

Notes about changes in regression tests introduces with PostGIS 1.1.0
---------------------------------------------------------------------

- Mixed-dimensioned geometries are no longer supported
  (previous behaviour was to fill Z with a 0 value)
  [ updated to use new behaviour ]

- geometry_same operator (=~) now requires all dimensions equality
  Previously only x/y were checked

- geometry_same operator (=~) now requires geom type equality
  Previous behaviour:
     GEOMETRYCOLLECTION(POINT(0 1), POINT(2 3)) =~  MULTIPOINT(0 1,2 3)

- numb_sub_geometries does not exist anymore
  [updated to use numgeometries]

- truly_inside does not exist anymore
  [updated to use within]

Notes about <testname>_expected.in
----------------------------------

The first line of the <testname>_expected.in should include the postgis
configuration header.

  #include "../postgis_config.h"

The ability to run a c preprocessor over the expected results prior to 
regression testing was needed for testing curved string functionality that
would elicit different responses from JTS vs GEOS compilations.  Since
JTS is no longer supported, this may not be required anymore.