sapling/tests/hgsql/getdb.sh.example
Thomas Jacob 0e6b93a0e0 Add support for RocksDB
Summary:
- Add support for RocksDB engine (developed as a drop in replacement for innodb) to hgsql to allow new xdb.hgsql.1-10 shards to host hg repos
- Prefer MySQL test DBs in same region
- Run all hgsql unit tests also for RocksDB engine
- Allow for nested ifs to make that possible (downside if you switch off rockdb tests, innodb tests are run twice)

Reviewed By: quark-zju

Differential Revision: D7014064

fbshipit-source-id: 073c36176aa7eaf74252ef33c3f47da594920b28
2018-04-13 21:51:13 -07:00

19 lines
625 B
Plaintext

# This file needs to be named "getdb.sh" to be effective.
# Below is an example. Change the values for your test environment.
DBHOST=localhost
DBPORT=3306
DBENGINE=innodb
DBUSER=root
DBPASS=
# If DBNAME is empty, it'll be generated randomly and the test user needs to be
# able to create a new database. The generated database will be deleted after
# the test completes.
#
# If DBNAME is not empty, be sure to run the tests with "-j 1" to avoid race
# conditions accessing the same database. The database will not be deleted
# automatically. If you want to drop it automatically, set DBAUTODROP to 1.
#
# DBNAME=hgsql_test