Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,15 @@ If this does not match your setup you can set the environment variable
52
52
on standard libpq environment variables to tweak host, port user and
53
53
password (PGHOST, PGPORT, PGUSER, PGPASSWORD).
54
54
55
- Please note that the database needs to be initialized using the sql-script
55
+ Please note that the database needs to be initialized using
56
+ the sql-scripts:
56
57
57
58
tests/testdata/provider/testdata_pg*.sql
58
59
59
60
They take care of activating postgis for the test database and
60
61
create some tables containing test data.
62
+
63
+ For convenience, a shell script is provided to create the database
64
+ and initialize it as needed:
65
+
66
+ tests/testdata/provider/testdata_pg.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ SCRIPTS="
4
+ tests/testdata/provider/testdata_pg.sql
5
+ tests/testdata/provider/testdata_pg_reltests.sql
6
+ tests/testdata/provider/testdata_pg_vectorjoin.sql
7
+ "
8
+
9
+ createdb qgis_test || exit 1
10
+ for f in ${SCRIPTS} ; do
11
+ psql -f $f qgis_test --set ON_ERROR_STOP=1 || exit 1
12
+ done
0 commit comments