See INSTALL.md
See MAINTENANCE.md
The tests are run against SQLite and PostgreSQL.
The PostgreSQL tests need to be run via an existing user. The defaut is
postgres
. You can supply an alternative user name via the PG_USER
environment variable.
E.g.
$ PG_USER=postgres rake test
The user must be set up to access the database without a password.
You can supply PG_HOST if your PostgreSQL is not running locally.
You can supply PG_PORT if your PostgreSQL is not running on port 5432.
$ PG_USER=postgres GTEST_FILTER=<<class>>.<<test|*>> rake test
Dependencies:
- clang-tidy-6.0
Run linter:
clang-tidy-6.0 \
src/**/*.cpp \
-- \
-DAR_POSTGRES \
-DAR_SQLITE \
-Iinclude \
-Iinclude/postgresql \
-Iinclude/postgresql/server