]> granicus.if.org Git - postgis/commitdiff
Add new 'make garden' rule to launch full Garden test regression tests
authorOlivier Courtin <olivier.courtin@camptocamp.com>
Fri, 26 Feb 2010 15:05:55 +0000 (15:05 +0000)
committerOlivier Courtin <olivier.courtin@camptocamp.com>
Fri, 26 Feb 2010 15:05:55 +0000 (15:05 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5349 b70326c6-7e19-0410-871a-916f4a2858ee

GNUmakefile
doc/Makefile.in
regress/Makefile.in

index e76ed247584c7f9d4f9668b64fe19d7f525b2a75..d379967f2ae18a00104c48bab3adf4904c66b538 100644 (file)
@@ -30,6 +30,16 @@ maintainer-clean:
        $(MAKE) distclean
        rm -f configure
 
+garden:
+       @echo '------------------------------------------------------'
+       @echo 'Generating SQL file from Documentation'
+       @echo '------------------------------------------------------'
+       $(MAKE) -C doc garden
+       @echo '------------------------------------------------------'
+       @echo 'Launch regression Test'
+       @echo '------------------------------------------------------'
+       $(MAKE) -C regress garden
+
 test check: postgis
        $(MAKE) -C liblwgeom/cunit check
        $(MAKE) -C regress check
index 308cc0b5b7f1db833b55528a98e2458a46ec8d5a..34a2c319a60cea77143b2426e20f0fd3b2aa4966 100644 (file)
@@ -144,6 +144,13 @@ uninstall:
        rm -f $(PGSQL_MANDIR)/man1/shp2pgsql.1
        rm -f $(PGSQL_MANDIR)/man1/pgsql2shp.1
 
+ifeq ($(XSLTPROC),)
+garden: requirements_not_met_xsltproc
+else
+garden:        postgis_aggs_mm.xml
+       $(XSLTPROC) -o gardentest.sql xsl/postgis_gardentest.sql.xsl postgis.xml
+endif
+
 requirements_not_met_xsltproc:
        @echo
        @echo "configure was unable to find 'xsltproc' which is required to build the documentation."
index 16d363c68403847a7961c32a1076c665d37b21f0..8a1d2ceab6bccf6eeee6c656d669a9e764e3c8a7 100644 (file)
@@ -94,6 +94,18 @@ test check:
        sed 's,$$libdir,$(REGRESS_INSTALLDIR)/lib,g' ../postgis/postgis.sql > postgis.sql
        @USE_VERSION=$(POSTGIS_PGSQL_VERSION) ./run_test $(TESTS)
 
+garden:
+       createdb postgis_garden
+       createlang plpgsql postgis_garden
+       psql -d postgis_garden < ../postgis/postgis.sql
+       psql -d postgis_garden < ../spatial_ref_sys.sql
+       @echo '-------------------------------------------------'
+       @echo 'Regression tests in progress (it will take time)'
+       @echo 'Result output: ./regress/garden_result.txt'
+       @echo '-------------------------------------------------'
+       psql -d postgis_garden < ../doc/gardentest.sql > garden_result.txt 2>&1
+       dropdb postgis_garden
+
 cleanup:
        @sleep 1
        @dropdb postgis_reg > /dev/null