postgis/regress
Regina Obe 5f49cbcf97 Test to trap FreeBSD crash on small tables.
References #2985 for PostGIS 2.3.0

git-svn-id: http://svn.osgeo.org/postgis/trunk@15138 b70326c6-7e19-0410-871a-916f4a2858ee
2016-09-25 06:10:51 +00:00
..
dumper #2220, write the encoding down when exporting a shape file 2015-09-23 21:04:09 +00:00
loader Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
sfcgal Re-add accidentally removed trailing spaces in an _expected file 2016-09-12 18:00:44 +00:00
affine.sql Add test for ST_Affine bbox cache bug (#3159) 2015-06-11 19:41:25 +00:00
affine_expected Add test for ST_Affine bbox cache bug (#3159) 2015-06-11 19:41:25 +00:00
bestsrid.sql Keep UTM zone numbers in range, regress-test _ST_BestSRID (#1234) 2012-01-16 17:00:50 +00:00
bestsrid_expected Handle best SRID finding for shapes the cross the poles and dateline. Also add some new larger zones in gnomic for larger shapes. (#1610) 2012-07-06 23:50:33 +00:00
binary.sql ST_Force_XXX renamed to ST_ForceXXX 2013-05-10 15:00:38 +00:00
binary_expected #3181, harmonize tests to new POINT EMPTY format 2015-06-25 20:23:41 +00:00
boundary.sql #2118: ST_Boundary support for Triangle type 2013-05-05 16:24:09 +00:00
boundary_expected #2118: ST_Boundary support for Triangle type 2013-05-05 16:24:09 +00:00
clean.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
clean_expected Really accept collections and multipoints from ST_MakeValid (#1719) 2012-06-12 09:30:34 +00:00
clipbybox2d.sql Move test to ifdef'ed location for GEOS 3.5 2015-05-28 20:25:11 +00:00
clipbybox2d_expected Harmonize regression test 2015-06-01 13:36:24 +00:00
cluster.sql #3612, Calling ST_ClusterDBSCAN with fewer than minpoints geometries in window frame crashes backend 2016-09-05 02:10:12 +00:00
cluster_expected #3612, Calling ST_ClusterDBSCAN with fewer than minpoints geometries in window frame crashes backend 2016-09-05 02:10:12 +00:00
concave_hull.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
concave_hull_expected Get rid of some tests in _ST_ConcaveHull and only attempt to make a polygon if the line is simple. ST_Covers is causing me quite a bit of greif as a testing tool. don't recall so many topo node this and that in GEOS 3.2 ST_Covers. Also add in some regress tests for ST_ConcaveHull -- more to come. 2011-04-05 22:26:45 +00:00
ctors.sql #3469, support multipoint into to ST_MakeLine (Paul Norman) 2016-02-25 10:44:57 +00:00
ctors_expected #3469, support multipoint into to ST_MakeLine (Paul Norman) 2016-02-25 10:44:57 +00:00
delaunaytriangles.sql Add 3D tests for ST_DelaunayTriangles (#2301) 2015-09-29 11:25:27 +00:00
delaunaytriangles_expected Add 3D tests for ST_DelaunayTriangles (#2301) 2015-09-29 11:25:27 +00:00
dump.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
dump_expected Change lwgeom_is_empty to return spatial emptiness (#671) 2012-01-09 18:01:15 +00:00
dumppoints.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
dumppoints_expected #2295 Nathan Wagner patch to support for dumping circular strings in dump points 2013-05-04 13:18:40 +00:00
empty.sql #2396, wrap wkb outputting tests in explicit endianness 2014-02-05 05:25:24 +00:00
empty_expected GML for empty geometries should be NULL (#1377) 2012-01-30 00:37:45 +00:00
estimatedextent.sql Add table inheritance support in ST_EstimatedExtent 2015-12-15 11:19:14 +00:00
estimatedextent_expected Remove carriage returns from regression tests 2016-09-12 16:01:16 +00:00
forcecurve.sql Implement ST_ForceCurve (#2430) 2013-08-14 22:40:16 +00:00
forcecurve_expected Implement ST_ForceCurve (#2430) 2013-08-14 22:40:16 +00:00
geography.sql Segmentize geography using equal length segments, (Hugo Mercier of Oslandia) 2016-08-17 13:01:23 +00:00
geography_expected Segmentize geography using equal length segments, (Hugo Mercier of Oslandia) 2016-08-17 13:01:23 +00:00
geometric_median.sql Add new files for #3364 2016-03-05 01:27:32 +00:00
geometric_median_expected Add new files for #3364 2016-03-05 01:27:32 +00:00
hausdorff.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +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_encodedpolyline.sql Add ST_SnapToGrid so 32-bit and 64-bit answers agree 2016-09-13 16:55:27 +00:00
in_encodedpolyline_expected Add ST_SnapToGrid so 32-bit and 64-bit answers agree 2016-09-13 16:55:27 +00:00
in_geohash.sql #1818: oops forgot to add the tests 2013-05-03 04:05:29 +00:00
in_geohash_expected #1818: oops forgot to add the tests 2013-05-03 04:05:29 +00:00
in_geojson.sql Fix regress tests for builds without JSON support 2016-09-07 17:45:16 +00:00
in_geojson_expected Fix regress tests for builds without JSON support 2016-09-07 17:45:16 +00:00
in_gml.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
in_gml_expected #2681 fix. 2014-03-26 10:11:51 +00:00
in_kml.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
in_kml_expected #2395, force un-closed KML polygons closed, and issue NOTICE 2015-07-22 17:54:09 +00:00
interrupt.sql Further raise tolerated interrupt delay to 250ms (#2989) 2015-02-18 12:22:18 +00:00
interrupt_buffer.sql Reset timer after creating input tables (#2989) 2014-11-11 09:16:05 +00:00
interrupt_buffer_expected Test relate-based function interruptibility (#2975) 2014-11-10 10:25:28 +00:00
interrupt_expected Test relate-based function interruptibility (#2975) 2014-11-10 10:25:28 +00:00
interrupt_relate.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
interrupt_relate_expected Fix labels on interrupt tests 2015-08-04 09:08:19 +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 Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +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
knn.sql Isolate <<->> in version-checked regression file 2015-06-03 19:36:49 +00:00
knn_expected Isolate <<->> in version-checked regression file 2015-06-03 19:36:49 +00:00
knn_recheck.sql Make test for #3573 run only on PG 9.5+ 2016-06-07 21:55:30 +00:00
knn_recheck_expected Make test for #3573 run only on PG 9.5+ 2016-06-07 21:55:30 +00:00
legacy.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
legacy_expected Disreguard ALTER responses during testing 2015-01-21 11:11: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 Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
lwgeom_regress_expected ST_BoundingDiagonal (#3139) 2015-06-01 16:09:22 +00:00
Makefile.in Add support for BRIN indexes (2nd Quadrant, Giuseppe Broccolo, Julien Rouhaud) 2016-07-31 03:46:40 +00:00
measures.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
measures_expected Add 2 regression tests for mixed dimmentionalty input to 3d distance calculations (giving z-value under FLT_MIN which is not used any more) #3244 2015-08-20 20:54:06 +00:00
minimum_bounding_circle.sql Add missing files for #2996 2015-11-29 23:16:30 +00:00
minimum_bounding_circle_expected Add missing files for #2996 2015-11-29 23:16:30 +00:00
minimum_clearance.sql Preserve SRID in ST_MinimumClearanceLine, and add regress checks missed in last commit 2016-04-26 23:17:34 +00:00
minimum_clearance_expected Preserve SRID in ST_MinimumClearanceLine, and add regress checks missed in last commit 2016-04-26 23:17:34 +00:00
node.sql Enable test which would fail with GEOS < 3.3.2 2016-01-06 13:22:04 +00:00
node_expected Enable test which would fail with GEOS < 3.3.2 2016-01-06 13:22:04 +00:00
normalize.sql Add ST_Normalize function 2016-06-15 09:49:50 +00:00
normalize_expected Remove spurious newline in regress expected 2016-06-15 16:47:22 +00:00
offsetcurve.sql Add 2 more testcases for ST_OffsetCurve, one of which returning a MULTILINESTRING 2011-07-01 11:47:41 +00:00
offsetcurve_expected Move offset curve generation into liblwgeom with other geos functionality 2012-01-06 21:39:50 +00:00
operators.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
operators_expected Isolate <<->> in version-checked regression file 2015-06-03 19:36:49 +00:00
out_geography.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
out_geography_expected Geography should support SRIDs other than 4326 (#1538) 2012-02-04 01:30:14 +00:00
out_geometry.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
out_geometry_expected #3627, Encoded polyline functions ignore precision parameter 2016-09-06 22:44:47 +00:00
polygonize.sql Fix ST_Polygonize aggregate to retain Z (#1602) 2012-02-22 17:19:42 +00:00
polygonize_expected Fix ST_Polygonize aggregate to retain Z (#1602) 2012-02-22 17:19:42 +00:00
polyhedralsurface.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
polyhedralsurface_expected Replace the old WKB/WKT parser and emitters with the new ones. 2010-12-07 21:08:05 +00:00
postgis_type_name.sql Fix support for MULTICURVEZM and make TIN spelling conformant to other (MixedCase). Add cohomprensive regress test for postgis_type_name(). Closes bug #1096 once again. 2011-07-04 11:24:46 +00:00
postgis_type_name_expected Fix support for MULTICURVEZM and make TIN spelling conformant to other (MixedCase). Add cohomprensive regress test for postgis_type_name(). Closes bug #1096 once again. 2011-07-04 11:24:46 +00:00
README Update the run_test.pl script to handle the raster loader pre/post rules 2012-05-30 18:58:45 +00:00
regress.sql Preserve SRID in ST_Expand 2016-06-03 00:38:40 +00:00
regress_bdpoly.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
regress_bdpoly_expected #1812 change to use sT_Equals to account for polygon order difference under windows (mingw) 2012-05-31 01:44:50 +00:00
regress_biginsert.sql Initial revision 2001-06-22 17:39:29 +00:00
regress_brin_index.sql Add support for BRIN indexes - missed new files on last commit 2016-07-31 04:34:16 +00:00
regress_brin_index_3d.sql Add support for BRIN indexes - missed new files on last commit 2016-07-31 04:34:16 +00:00
regress_brin_index_3d_expected Add support for BRIN indexes - missed new files on last commit 2016-07-31 04:34:16 +00:00
regress_brin_index_expected Add support for BRIN indexes - missed new files on last commit 2016-07-31 04:34:16 +00:00
regress_brin_index_geography.sql Add support for BRIN indexes - missed new files on last commit 2016-07-31 04:34:16 +00:00
regress_brin_index_geography_expected Add support for BRIN indexes - missed new files on last commit 2016-07-31 04:34:16 +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 Preserve SRID in ST_Expand 2016-06-03 00:38:40 +00:00
regress_index.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
regress_index_expected Only run KNN tests when building against PostgreSQL 9.1+ 2015-02-24 10:20:33 +00:00
regress_index_nulls.sql #2467 add min_messages so travis doesn't scream 2013-09-03 17:31:04 +00:00
regress_index_nulls_expected Add in test for node splitting with nulls and empties (#1905) 2012-07-12 17:24:36 +00:00
regress_lots_of_3dpoints.sql Add support for BRIN indexes - missed new files on last commit 2016-07-31 04:34:16 +00:00
regress_lots_of_geographies.sql Add support for BRIN indexes - missed new files on last commit 2016-07-31 04:34:16 +00:00
regress_lots_of_nulls.sql Try again with line endings, this time using eol-style instead of eol-type (#1605) 2012-02-27 22:08:12 +00:00
regress_lots_of_points.sql Ported index regress test to lwgeom 2004-11-26 16:26:51 +00:00
regress_lrs.sql Fix inconsistency with multilinestring in ST_LocateBetweenElevations() 2016-08-05 14:09:06 +00:00
regress_lrs_expected Fix inconsistency with multilinestring in ST_LocateBetweenElevations() 2016-08-05 14:09:06 +00:00
regress_management.sql Remove the many and unloved $Id$ tags that clutter the code base 2015-05-13 18:13:18 +00:00
regress_management_expected #2012: Change client_min_messages to warning instead of relying on default notice. 9.3's idea of notice doesn't seem to include notice about create of new tables. 2012-09-25 02:45:28 +00:00
regress_ogc.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
regress_ogc_cover.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
regress_ogc_cover_expected Remove execute bit from testcases 2015-11-21 10:14:02 +00:00
regress_ogc_expected Support curves in centroid calculation via stroking 2016-02-25 15:58:40 +00:00
regress_ogc_prep.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +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 #2991, Enable ST_Transform to use PROJ.4 text (Mike Toews) 2016-02-25 18:03:25 +00:00
regress_proj_expected #2991, Enable ST_Transform to use PROJ.4 text (Mike Toews) 2016-02-25 18:03:25 +00:00
regress_selectivity.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
regress_selectivity_expected #2132, _postgis_stats crashes backend on missing stats 2012-12-05 18:50:42 +00:00
regress_sfcgal.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
regress_sfcgal_expected Avoid -0 in output 2015-08-04 09:02:04 +00:00
relate.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +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 Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
remove_repeated_points_expected Fix left over sub-tolerance last segment in ST_RemoveRepeatedPoints 2015-12-28 17:08:50 +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.pl Do not require expecting DISCARD ALL 2016-09-07 18:21:43 +00:00
setpoint.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
setpoint_expected Negative indexing for ST_PointN and ST_SetPoint (Rémi Cura) 2016-02-24 16:04:06 +00:00
sharedpaths.sql Add a couple more cases provided by RT-SITA 2010-12-06 15:07:48 +00:00
sharedpaths_expected Export lwgeom_sharedpaths to liblwgeom, and fix exception message [RT-SIGTA] 2011-08-12 09:11:26 +00:00
simplify.sql Restore 1.5.x behaviour of ST_Simplify (#1987) 2012-11-19 10:20:09 +00:00
simplify_expected Restore 1.5.x behaviour of ST_Simplify (#1987) 2012-11-19 10:20:09 +00:00
simplifyvw.sql add cunit and regression tests to simplifyvw and seteffectivearea 2015-04-04 19:44:20 +00:00
simplifyvw_expected add cunit and regression tests to simplifyvw and seteffectivearea 2015-04-04 19:44:20 +00:00
size.sql Add bbox cache size test 2015-02-20 16:26:56 +00:00
size_expected Add bbox cache size test 2015-02-20 16:26:56 +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 Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
split_expected Allow splitting lines by multipoints 2015-04-22 15:25:42 +00:00
sql-mm-circularstring.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
sql-mm-circularstring_expected Stroke curves for input into GEOS, 2015-06-30 16:38:45 +00:00
sql-mm-compoundcurve.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
sql-mm-compoundcurve_expected Stroke curves for input into GEOS, 2015-06-30 16:38:45 +00:00
sql-mm-curvepoly.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
sql-mm-curvepoly_expected Stroke curves for input into GEOS, 2015-06-30 16:38:45 +00:00
sql-mm-general.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +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 Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
sql-mm-multicurve_expected Stroke curves for input into GEOS, 2015-06-30 16:38:45 +00:00
sql-mm-multisurface.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
sql-mm-multisurface_expected Stroke curves for input into GEOS, 2015-06-30 16:38:45 +00:00
sql-mm-serialize.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +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
subdivide.sql #3529, move test to subdivide.sql 2016-04-13 16:53:02 +00:00
subdivide_expected #3529, move test to subdivide.sql 2016-04-13 16:53:02 +00:00
summary.sql Add test for ST_Summary 2011-11-02 16:53:09 +00:00
summary_expected Make serialization code more agressive about not adding boxes to small things 2015-03-05 19:30:40 +00:00
swapordinates.sql Add test for ST_SwapOrdinate fix (#3628) 2016-09-09 14:23:24 +00:00
swapordinates_expected Add test for ST_SwapOrdinate fix (#3628) 2016-09-09 14:23:24 +00:00
temporal.sql Expose ST_CPAWithin to SQL 2015-06-23 18:56:11 +00:00
temporal_expected Expose ST_CPAWithin to SQL 2015-06-23 18:56:11 +00:00
temporal_knn.sql Add |=| operator with CPA semantic and KNN support with PgSQL 9.5+ 2015-06-10 16:18:37 +00:00
temporal_knn_expected Add |=| operator with CPA semantic and KNN support with PgSQL 9.5+ 2015-06-10 16:18:37 +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 Test to trap FreeBSD crash on small tables. 2016-09-25 06:10:51 +00:00
tickets_expected Test to trap FreeBSD crash on small tables. 2016-09-25 06:10:51 +00:00
twkb.sql Fix bbox on collection level in TWKB output, #3187 2015-07-13 21:32:21 +00:00
twkb_expected Fix bbox on collection level in TWKB output, #3187 2015-07-13 21:32:21 +00:00
typmod.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
typmod_expected #3181, harmonize tests to new POINT EMPTY format 2015-06-25 20:23:41 +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
voronoi.sql #3622, Signature updates to Voronoi functions 2016-09-05 20:48:39 +00:00
voronoi_expected #3622, Signature updates to Voronoi functions 2016-09-05 20:48:39 +00:00
wkb.sql Test non-empty new types in regress/wkb (#1477) 2012-02-07 21:14:41 +00:00
wkb_expected #3181, harmonize tests to new POINT EMPTY format 2015-06-25 20:23:41 +00:00
wkt.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
wkt_expected Update regression to handle new collection(empty) possibilities 2012-03-22 17:24:57 +00:00
wmsservers.sql Revert changes in test for wmsservers clients 2013-05-13 09:42:03 +00:00
wmsservers_expected Disreguard ALTER responses during testing 2015-01-21 11:11:11 +00:00
wrapx.sql Implement lwgeom_wrapx and ST_WrapX 2016-06-16 09:09:26 +00:00
wrapx_expected Implement lwgeom_wrapx and ST_WrapX 2016-06-16 09:09:26 +00:00

Requirements for run_test.pl
----------------------------

run_test.pl requires the following Perl modules to be installed

 Text::Diff;
 File::Which;
 File::Basename;
 File::Temp 'tempdir';
 File::Copy;
 File::Path 'make_path';
 File::Path 'remove_tree';
 Cwd 'abs_path';
 Getopt::Long;

Most distributions of Perl will have everything except Text::Diff and File::Which.
To install them from the command-line, as root run

 cpan Text::Diff
 cpan File::Which


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.