Run testsuite

This commit is contained in:
Christoph Berg 2022-06-23 16:20:14 +02:00
parent b54ed07175
commit 087ddce749
3 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,7 @@
Depends: pgloader, ca-certificates, cl-postmodern, postgresql
Tests: ssl
Restrictions: allow-stderr, needs-root
Depends: pgloader, postgresql
Tests: testsuite
Restrictions: allow-stderr

View File

@ -2,8 +2,9 @@
set -eux
pg_virtualenv << EOF
set -eux
cd test
PGSUPERUSER=\$PGUSER make -k all
EOF
case $USER in
root) PGSUPERUSER=postgres ;;
*) PGSUPERUSER=$USER ;;
esac
PGSUPERUSER=$PGSUPERUSER pg_virtualenv make -C test all

View File

@ -67,6 +67,7 @@ prepare: bossa.sql
-dropdb -U $(PGSUPERUSER) pgloader
-dropdb -U $(PGSUPERUSER) stocks
-dropdb -U $(PGSUPERUSER) ip4r
-createuser -U $(PGSUPERUSER) --superuser `whoami`
createdb -U $(PGSUPERUSER) -O `whoami` pgloader
createdb -U $(PGSUPERUSER) -O `whoami` stocks
createdb -U $(PGSUPERUSER) -O `whoami` ip4r