From 0bde669158cf8a015405d563858e3ed9345b8d23 Mon Sep 17 00:00:00 2001 From: Andras Mantia Date: Mon, 10 Apr 2017 17:25:29 +0300 Subject: [PATCH] Merge README.tests into tests/README.TXT --- tests/README.TXT | 6 +++--- tests/README.tests | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 tests/README.tests diff --git a/tests/README.TXT b/tests/README.TXT index 216fbfb..3522568 100644 --- a/tests/README.TXT +++ b/tests/README.TXT @@ -1,16 +1,16 @@ In order to run the unit tests some steps must be followed: -1) a PostgreSQL server must be running and needs to be accessible via TCP under the "sqlate-postgres" name. +1) a PostgreSQL server must be running and needs to be accessible via TCP under the "sqlate-postgres" name on the default 5432 port. If it is not possible to use this domain name, the SQLATE_DATABASE_HOST environment variable should contain the name or address of the PostgreSQL server instance. 2) the server must have two group roles: "sqladmins" and "sqlusers". The admin group should have database -create rights. +create rights. It is recommended to use an isolated, non production PostgreSQL install for the tests. 3) the server must have a user called "sqlate.user" with password "sql123456". The user must be in the "sqladmins" and "postgres" groups and should inherit group rights. Should you want to use a different user or password, you can override the default values with SQLATE_DATABASE_USER and SQLATE_DATABASE_PASSWORD environment variables. -The user should be able to log in with "password" method. +The user should be able to log in with unencrypted, "password" method. When run with ctest, the tests will create a database called "sqlate_test_HOSTNAME" where HOSTNAME is diff --git a/tests/README.tests b/tests/README.tests deleted file mode 100644 index 0ac8b73..0000000 --- a/tests/README.tests +++ /dev/null @@ -1,6 +0,0 @@ -Some of the tests need a database to be run, so a test database server is needed or they will fail. -Curently the requirements are: -- Postgres database running at "sqlate-postgres" address if run from ctest/make test or on localhost if run manually -- Postgres must accept non-encrypted connections to the default port 5432 -- there must be an account "sqlate.user" with password "sql123456" and having superuser rights (so it is better to use an isolated test postgres install) -- there must be an "sqladmins" and "sqlusers" group and the "sqlate.user" must be part of them. "sqladmins" should have wide rights (e.g superuser rights)