all: test
test: lwpostgis.sql ../lwgeom/liblwgeom.so
- @./run_test $(TESTS)
+ @USE_VERSION="$(USE_VERSION)" ./run_test long_xact # $(TESTS)
lwpostgis.sql: ../lwgeom/lwpostgis.sql.in
$(MAKE) -C ../lwgeom ../regress/lwpostgis.sql
#
###################################################
-PGOPTIONS="${PGOPTIONS} -c lc_messages=C"
-export PGOPTIONS
+if [ -n "$USE_VERSION" ]; then
+ if [ "$USE_VERSION" -gt 74 ]; then
+ PGOPTIONS="${PGOPTIONS} -c lc_messages=C"
+ export PGOPTIONS
+ fi
+fi
PSQL="psql"
echo
echo " Something went wrong (no postgis installed in ${DB})."
if [ -z "$db_exists" ]; then
- echo " Check ${TMPDIR}/regress_log_$$ for details."
+ echo " For details, check ${TMPDIR}/regress_log"
else
echo " Try dropping the database, it will be recreated" \
" on next run."