postgis/regress/run_regress
Sandro Santilli 23d27d988f Added process id to output files. Removed 'clean' rule.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1496 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-07 13:58:04 +00:00

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