From e2b79ea0b64a904dd025e9aab1b6a90778532819 Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Mon, 28 Oct 2019 12:09:14 +0300 Subject: 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. --- test/README | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/README') 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 -- cgit v1.2.3