Changes between Version 25 and Version 26 of DevWikiGardenTest


Ignore:
Timestamp:
Dec 3, 2010, 4:42:58 AM (13 years ago)
Author:
robe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • DevWikiGardenTest

    v25 v26  
    1010
    1111To Build the script
    12 == Version PostGIS 1.4 ==
     12== Version PostGIS 2.0+ ==
     13The latest version includes logic that will create two tables in the test database and populate them for later inspection:
     14 * postgis_garden_log: This contains a record for each test and logs both the start, end times and the sql statement that was run.
     15   columns are: logid-  an autonumber, log_label - a short description, spatial_class - (will contain geometry or geography), func - name of function being tested, g1 - type of geometry of first geometry, g2 - type of geometry of second or null if a single geometry function, log_start - start time (timestamp), log_end - end time (timestamp), log_sql - the SQL statement that was run.
    1316
     17If the test crashes before completion, the record with the largest logid will tell you the query that crashed the server..
     18
     19 * postgis_garden_log_output -- this outputs the query results for queries that return something in xml format.  It  uses the built-in query_to_xml function that has existed since PostgreSQL 8.3 to do that.
     20columns: logid -- you can join this with the postgis_garden_log table to get the descriptive detail and SQL for the test.  log_out - an xml field that contains the query_to_xml output of the query.
     21
     22There is an unfortunate dependency on postgis_agg_mm.xml which is really not needed
     23just create a dummy blank file called postgis_agg_mm.xml in the trunk/doc to get around this
     24Then:
    1425{{{
    15 xsltproc -o torturetest.sql branches/1.4/doc/xsl/postgis_gardentest.sql.xsl branches/1.4/doc/reference.xml
     26xsltproc -o torturetest.sql trunk/doc/xsl/postgis_gardentest.sql.xsl trunk/doc/postgis.xml
    1627}}}
    1728
     
    2132Then:
    2233{{{
    23 xsltproc -o torturetest.sql trunk/doc/xsl/postgis_gardentest.sql.xsl trunk/doc/postgis.xml
     34xsltproc -o torturetest.sql branches/1.5/doc/xsl/postgis_gardentest.sql.xsl branches/1.5/doc/postgis.xml
    2435}}}
    2536
     
    2839
    2940{{{
     41psql -p 5432 -U postgres -d postgres -c "DROP DATABASE testpostgis;"
    3042psql -p 5432 -U postgres -d postgres -c "CREATE DATABASE testpostgis;"
    3143psql -p 5432 -U postgres -d testpostgis -c "CREATE LANGUAGE plpgsql;"
    3244psql -p 5432 -U postgres -d testpostgis -f postgis.sql
    3345psql -p 5432 -U postgres -d testpostgis -f spatial_ref_sys.sql
    34 psql -p 5432 -U postgres -d testpostgis -f torturetest.sql > torturetest_results.txt
    35 psql -p 5432 -U postgres -d postgres -c "DROP DATABASE testpostgis;"
     46psql -p 5432 -U postgres -d testpostgis -f torturetest.sql > torturetest_results.txt 
    3647
    3748}}}
     
    5162\timing
    5263}}}
     64
     65== Version PostGIS 1.4 ==
     66
     67{{{
     68xsltproc -o torturetest.sql branches/1.4/doc/xsl/postgis_gardentest.sql.xsl branches/1.4/doc/reference.xml
     69}}}
     70
    5371
    5472= Testing subset of functions =