Skip to content

Commit dd50155

Browse files
add a script to run the test for online-advisor as a regular user. (neondatabase#12017)
## 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 <[email protected]>
1 parent fe1513c commit dd50155

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
set -ex
3+
cd "$(dirname "${0}")"
4+
if [ -f Makefile ]; then
5+
make installcheck
6+
fi
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
set -ex
3+
cd "$(dirname ${0})"
4+
[ -f Makefile ] || exit 0
5+
dropdb --if-exist contrib_regression
6+
createdb contrib_regression
7+
PG_REGRESS=$(dirname "$(pg_config --pgxs)")/../test/regress/pg_regress
8+
TESTS=$(echo sql/* | sed 's|sql/||g; s|\.sql||g')
9+
${PG_REGRESS} --use-existing --inputdir=./ --bindir='/usr/local/pgsql/bin' --dbname=contrib_regression ${TESTS}

0 commit comments

Comments
 (0)