Changes between Version 25 and Version 26 of DevWikiGardenTest
- Timestamp:
- Dec 3, 2010, 4:42:58 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevWikiGardenTest
v25 v26 10 10 11 11 To Build the script 12 == Version PostGIS 1.4 == 12 == Version PostGIS 2.0+ == 13 The 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. 13 16 17 If 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. 20 columns: 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 22 There is an unfortunate dependency on postgis_agg_mm.xml which is really not needed 23 just create a dummy blank file called postgis_agg_mm.xml in the trunk/doc to get around this 24 Then: 14 25 {{{ 15 xsltproc -o torturetest.sql branches/1.4/doc/xsl/postgis_gardentest.sql.xsl branches/1.4/doc/reference.xml26 xsltproc -o torturetest.sql trunk/doc/xsl/postgis_gardentest.sql.xsl trunk/doc/postgis.xml 16 27 }}} 17 28 … … 21 32 Then: 22 33 {{{ 23 xsltproc -o torturetest.sql trunk/doc/xsl/postgis_gardentest.sql.xsl trunk/doc/postgis.xml34 xsltproc -o torturetest.sql branches/1.5/doc/xsl/postgis_gardentest.sql.xsl branches/1.5/doc/postgis.xml 24 35 }}} 25 36 … … 28 39 29 40 {{{ 41 psql -p 5432 -U postgres -d postgres -c "DROP DATABASE testpostgis;" 30 42 psql -p 5432 -U postgres -d postgres -c "CREATE DATABASE testpostgis;" 31 43 psql -p 5432 -U postgres -d testpostgis -c "CREATE LANGUAGE plpgsql;" 32 44 psql -p 5432 -U postgres -d testpostgis -f postgis.sql 33 45 psql -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;" 46 psql -p 5432 -U postgres -d testpostgis -f torturetest.sql > torturetest_results.txt 36 47 37 48 }}} … … 51 62 \timing 52 63 }}} 64 65 == Version PostGIS 1.4 == 66 67 {{{ 68 xsltproc -o torturetest.sql branches/1.4/doc/xsl/postgis_gardentest.sql.xsl branches/1.4/doc/reference.xml 69 }}} 70 53 71 54 72 = Testing subset of functions =