From a594cfa1e2c797e0b3e9a1921cada05b70d50985 Mon Sep 17 00:00:00 2001 From: Alexey Masterov Date: Tue, 29 Apr 2025 08:56:55 +0200 Subject: [PATCH] Add a script to run as a regular user --- docker-compose/ext-src/postgis-src/regular-test.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 docker-compose/ext-src/postgis-src/regular-test.sh diff --git a/docker-compose/ext-src/postgis-src/regular-test.sh b/docker-compose/ext-src/postgis-src/regular-test.sh new file mode 100755 index 0000000000..473335f6d2 --- /dev/null +++ b/docker-compose/ext-src/postgis-src/regular-test.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -ex +cd "$(dirname "${0}")" +dropdb --if-exist contrib_regression +createdb contrib_regression +psql -c "ALTER DATABASE contrib_regression SET TimeZone='UTC'" \ + -c "ALTER DATABASE contrib_regression SET DateStyle='ISO, MDY'" \ + -c "CREATE EXTENSION postgis SCHEMA public" \ + -c "CREATE EXTENSION postgis_topology" \ + -c "CREATE EXTENSION postgis_tiger_geocoder CASCADE" \ + -c "CREATE EXTENSION postgis_raster SCHEMA public" \ + -c "CREATE EXTENSION postgis_sfcgal SCHEMA public" +POSTGIS_REGRESS_DB=contrib_regression RUNTESTFLAGS=--nocreate make installcheck-base \ No newline at end of file