mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-27 16:12:56 +00:00
## Problem The regression test for the extension online_advisor fails on the staging instance due to a lack of permission to alter the database. ## Summary of changes A script was added to work around this problem. --------- Co-authored-by: Alexander Lakhin <alexander.lakhin@neon.tech>
10 lines
363 B
Bash
Executable File
10 lines
363 B
Bash
Executable File
#!/bin/sh
|
|
set -ex
|
|
cd "$(dirname ${0})"
|
|
[ -f Makefile ] || exit 0
|
|
dropdb --if-exist contrib_regression
|
|
createdb contrib_regression
|
|
PG_REGRESS=$(dirname "$(pg_config --pgxs)")/../test/regress/pg_regress
|
|
TESTS=$(echo sql/* | sed 's|sql/||g; s|\.sql||g')
|
|
${PG_REGRESS} --use-existing --inputdir=./ --bindir='/usr/local/pgsql/bin' --dbname=contrib_regression ${TESTS}
|