]> granicus.if.org Git - postgis/commitdiff
Add a --raster flag to run_test
authorSandro Santilli <strk@keybit.net>
Thu, 10 Mar 2011 18:53:57 +0000 (18:53 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 10 Mar 2011 18:53:57 +0000 (18:53 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6892 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test

index ee6548f43a4ee8e3d7b1765f460b878771badff7..24cfe47e63609caacb9a5fedccec327ac35f7234 100755 (executable)
@@ -51,6 +51,7 @@ VERBOSE=0
 OPT_DROP=yes
 OPT_CREATE=yes
 OPT_WITH_TOPO=no
+OPT_WITH_RASTER=no
 
 if echo '\c' | grep c >/dev/null 2>&1; then
        ECHO_N='echo -n'
@@ -386,6 +387,10 @@ while [ -n "$1" ]; do
                OPT_WITH_TOPO=yes
                shift
                continue
+       elif test "$1" = "--raster"; then
+               OPT_WITH_RASTER=yes
+               shift
+               continue
        else
                break
        fi
@@ -423,6 +428,14 @@ if test -z "$db_exists"; then
                                echo "Topology support skipped (topology.sql  not found)" 
                        fi
                fi
+               if test x"$OPT_WITH_RASTER" = "xyes"; then
+                       if test -e ${REGDIR}/../raster/rt_pg/rtpostgis.sql; then
+                               echo "Adding topology support" 
+                               ${PSQL} ${_psql_opts} -Xf ${REGDIR}/../raster/rt_pg/rtpostgis.sql "${DB}" >> ${TMPDIR}/regress_log 2>&1
+                       else
+                               echo "Raster support skipped (rtpostgis.sql  not found)" 
+                       fi
+               fi
        else
 
                echo "Database ${DB} does not exist" >&2