mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
0e6b93a0e0
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
19 lines
625 B
Plaintext
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
|