postgis/regress
2010-02-22 18:43:06 +00:00
..
loader Marked shapefiles as binary, corrected accidentally mangled ones 2006-07-27 15:06:11 +00:00
affine.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
affine_expected 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
clean.sql Allow retaining badly collapsed rings (single-point) as points in ST_MakeValid. Add testcase for it [RT-SIGTA] 2010-02-17 21:02:49 +00:00
clean_expected Allow retaining badly collapsed rings (single-point) as points in ST_MakeValid. Add testcase for it [RT-SIGTA] 2010-02-17 21:02:49 +00:00
ctors.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
ctors_expected 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
dumppoints.sql Ticket #76. 2009-11-16 19:47:33 +00:00
dumppoints_expected Ticket #76. 2009-11-16 19:47:33 +00:00
geojson.sql Move ST_AsGeoJson from postgis to liblwgeom dir. Use as most as cunit test as possible. Related to #377. 2010-02-22 14:03:19 +00:00
geojson_expected Move ST_AsGeoJson from postgis to liblwgeom dir. Use as most as cunit test as possible. Related to #377. 2010-02-22 14:03:19 +00:00
gml.sql Move ST_AsGML from postgis dir to liblwgeom. Rewrite most units test with cunit. cf #377 2010-02-21 18:18:37 +00:00
gml_expected Move ST_AsGML from postgis dir to liblwgeom. Rewrite most units test with cunit. cf #377 2010-02-21 18:18:37 +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 http://www.epsg.org/6.11.2/4326 srsName pattern support (related to CITE WFS 1.1 GetFeature-tc17.2. Add related unit tests 2009-12-23 15:48:18 +00:00
in_gml_expected Add http://www.epsg.org/6.11.2/4326 srsName pattern support (related to CITE WFS 1.1 GetFeature-tc17.2. Add related unit tests 2009-12-23 15:48:18 +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
isvalid_test Added transaction begin and end. 2003-06-12 22:25:04 +00:00
kml.sql Move ST_AsKML from postgis to liblwgeom dir. Use as most cunit test as possible. Few related corrections on GML similar implementation. cf #377 2010-02-21 20:32:11 +00:00
kml_expected Move ST_AsKML from postgis to liblwgeom dir. Use as most cunit test as possible. Few related corrections on GML similar implementation. cf #377 2010-02-21 20:32:11 +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 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
lwgeom_regress_expected Fix for GBT#93: ST_Extent() and ST_Estimated_Extent() return BOX2DFLOAT4s. This is currently done using a horrible hack for backwards compatibility which introduces a new type just for ST_Extent(). See GBT email to postgis-devel and code comments for more detail. 2009-03-08 22:33:31 +00:00
Makefile.in Disable 'clean' test (still deciding on what's the expected output); keep only cut-lines that have vertices not shared with boundary of final area; move 'clean' code in separate file [RT-SIGTA]. 2010-02-21 21:11:03 +00:00
measures.sql Merge Nicklas Aven's distance spike into trunk. (#63, #231) 2009-11-25 19:15:57 +00:00
measures_expected Merge Nicklas Aven's distance spike into trunk. (#63, #231) 2009-11-25 19:15:57 +00:00
README Prepared geometries getting closer to readiness. Integrated into standard functions, regression tests added. 2008-10-10 04:39:54 +00:00
regress.sql Implement ST_CollectionExtract() to pull specific homogeneous collections out of heterogeneous collections. Regressions and documentation included. (#218) 2009-11-17 20:03:50 +00:00
regress_bdpoly.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_bdpoly_expected 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_biginsert.sql Initial revision 2001-06-22 17:39:29 +00:00
regress_buffer_params.sql 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_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 Commit slightly altered regression tests for the above. 2009-11-26 17:56:28 +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 Update regression tests to include test cases for GBT#21. 2008-09-30 13:29:49 +00:00
regress_lrs_expected Fix for new LRS regression (#283) 2009-11-05 19:29:23 +00:00
regress_ogc.sql Implement RFC3 (#195) 2009-11-05 19:04:45 +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 Implement RFC3 (#195) 2009-11-05 19:04: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 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_proj_expected 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
relate_test Added transaction begin and end. 2003-06-12 22:25:04 +00:00
remove_repeated_points.sql ST_RemoveRepeatedPoints [RT-SIGTA] 2010-02-21 12:22:08 +00:00
remove_repeated_points_expected ST_RemoveRepeatedPoints [RT-SIGTA] 2010-02-21 12:22:08 +00:00
removepoint.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
removepoint_expected 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
run_test Add --no-psqlrc to run_test (#405) 2010-02-02 23:47:46 +00:00
setpoint.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
setpoint_expected 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
simplify.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
simplify_expected 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
snaptogrid.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
snaptogrid_expected 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
sql-mm-circularstring.sql Making the changes from r4244 and r4245 onto trunk, addressing ticket 212. 2009-07-02 08:31:24 +00:00
sql-mm-circularstring_expected Fix ST_Envelope() and ST_Expand() so that they use double precision arithmetic rather than single precision arithmetic for their calculations. The internal BOX2DFLOAT4s should *never* be used for calculation purposes. 2009-12-30 14:52:52 +00:00
sql-mm-compoundcurve.sql Fix for ticket #234 2009-08-07 03:38:24 +00:00
sql-mm-compoundcurve_expected Fix ST_Envelope() and ST_Expand() so that they use double precision arithmetic rather than single precision arithmetic for their calculations. The internal BOX2DFLOAT4s should *never* be used for calculation purposes. 2009-12-30 14:52:52 +00:00
sql-mm-curvepoly.sql Making the changes from r4244 and r4245 onto trunk, addressing ticket 212. 2009-07-02 08:31:24 +00:00
sql-mm-curvepoly_expected Commit slightly altered regression tests for the above. 2009-11-26 17:56:28 +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 Updated the regression tests for curved geoms to avoid the byte ordering problems. 2007-08-09 16:56:37 +00:00
sql-mm-multicurve_expected Final fix to remove cpp requirement 2009-03-19 00:48:57 +00:00
sql-mm-multisurface.sql Updated the regression tests for curved geoms to avoid the byte ordering problems. 2007-08-09 16:56:37 +00:00
sql-mm-multisurface_expected Final fix to remove cpp requirement 2009-03-19 00:48:57 +00:00
sql-mm-serialize.sql Moving parser changes from spike/mleslie/parser to allow the proper nesting of compound curves within curve polygons and the validation of compound curve continuity. This also resolves GBT#124. 2009-03-10 00:29:32 +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
svg.sql move ST_AsSVG from postgis to lwgeom dir. write cun it tests. related to #377 2010-02-22 18:43:06 +00:00
svg_expected move ST_AsSVG from postgis to lwgeom dir. write cun it tests. related to #377 2010-02-22 18:43:06 +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 Add another validity test [RT-SIGTA] 2010-02-13 15:29:01 +00:00
tickets_expected Move ST_AsGML from postgis dir to liblwgeom. Rewrite most units test with cunit. cf #377 2010-02-21 18:18:37 +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.sql Trim the binary versions of geometries to try and remove regressions from other platforms. 2009-11-17 17:23:16 +00:00
wmsservers_expected Trim the binary versions of geometries to try and remove regressions from other platforms. 2009-11-17 17:23:16 +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.

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.