mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-05 02:46:10 +02:00
Run testsuite
This commit is contained in:
parent
b54ed07175
commit
087ddce749
4
debian/tests/control
vendored
4
debian/tests/control
vendored
@ -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
|
||||
|
||||
11
debian/tests/testsuite
vendored
11
debian/tests/testsuite
vendored
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user