diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-10-28 12:09:14 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-10-28 12:09:14 +0300 |
commit | e2b79ea0b64a904dd025e9aab1b6a90778532819 (patch) | |
tree | a78181a7455d247d93f87df9c89ee7309e355f82 /test/README | |
parent | Merge pull request #3069 from nosnilmot/jwt-custom-jid-field (diff) |
Don't attempt to create SQL tables when running tests
Instead, only clear existing tables.
The commit assumes that the SQL schemas will be loaded
manually before running the test suite, see test/README
for the examples.
Diffstat (limited to 'test/README')
-rw-r--r-- | test/README | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/README b/test/README index 8857cde96..de1a96aa2 100644 --- a/test/README +++ b/test/README @@ -14,6 +14,7 @@ $ psql template1 template1=# CREATE USER ejabberd_test WITH PASSWORD 'ejabberd_test'; template1=# CREATE DATABASE ejabberd_test; template1=# GRANT ALL PRIVILEGES ON DATABASE ejabberd_test TO ejabberd_test; +$ psql ejabberd_test -f sql/pg.sql ------------------- MySQL @@ -22,3 +23,4 @@ $ mysql mysql> CREATE USER 'ejabberd_test'@'localhost' IDENTIFIED BY 'ejabberd_test'; mysql> CREATE DATABASE ejabberd_test; mysql> GRANT ALL ON ejabberd_test.* TO 'ejabberd_test'@'localhost'; +$ mysql ejabberd_test < sql/mysql.sql |