mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 09:32:46 +00:00
23d27d988f
git-svn-id: http://svn.osgeo.org/postgis/trunk@1496 b70326c6-7e19-0410-871a-916f4a2858ee
23 lines
472 B
Bash
Executable file
23 lines
472 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -z "$TMPDIR" ]; then
|
|
TMPDIR=/tmp
|
|
fi
|
|
|
|
OUTFILE="${TMPDIR}/regress_out_$$"
|
|
|
|
echo "Running Normal Regression Test."
|
|
echo "Output file is: '${OUTFILE}'"
|
|
echo
|
|
echo " expected:'<' obtained:'>'"
|
|
echo
|
|
|
|
DB=postgis_reg
|
|
createdb $DB > /dev/null
|
|
createlang plpgsql $DB > /dev/null
|
|
psql -f ../lwpostgis.sql $DB > /dev/null 2>&1
|
|
psql -tA < regress.sql $DB 2>&1 | grep -v INSERT > "${OUTFILE}"
|
|
diff regress_expected "${OUTFILE}"
|
|
sleep 1
|
|
dropdb $DB > /dev/null
|