mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 10:31:02 +02:00
test: Don't run sakila test by default; set variables for tests
Sakila needs a MySQL database running. Set DBPATH and SOURCEFILE for the sqlite-env.load and csv-districts-env.out tests.
This commit is contained in:
parent
4114daf190
commit
8451ca5158
9
debian/tests/testsuite
vendored
Executable file
9
debian/tests/testsuite
vendored
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
pg_virtualenv << EOF
|
||||
set -eux
|
||||
cd test
|
||||
PGSUPERUSER=\$PGUSER make -k all
|
||||
EOF
|
||||
@ -44,6 +44,8 @@ REGRESS= allcols.load \
|
||||
|
||||
PGLOADER ?= ../build/bin/pgloader
|
||||
PGSUPERUSER ?= postgres
|
||||
export DBPATH = sqlite/sqlite.db # needed by sqlite-env.load
|
||||
export SOURCEFILE = data/2013_Gaz_113CDs_national.txt # needed by csv-districts-env.out
|
||||
|
||||
EXTRA_OPTS =
|
||||
ifneq (,$(findstring ccl,$(CL)))
|
||||
@ -61,7 +63,7 @@ remote: prepare $(REMOTE:.load=.out)
|
||||
|
||||
all: prepare $(OUT)
|
||||
|
||||
prepare: bossa.sql sakila
|
||||
prepare: bossa.sql
|
||||
-dropdb -U $(PGSUPERUSER) pgloader
|
||||
-dropdb -U $(PGSUPERUSER) stocks
|
||||
-dropdb -U $(PGSUPERUSER) ip4r
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user