sapling/tests/getdb.sh.example
Jun Wu 406b752720 tests: use an environment variable for getdb.sh location
Summary:
Make `library.sh` read `$HGTEST_GETDB_PATH` for `getdb.sh` location. Unify
`getdb.sh` used by infinitepush and hgsql into one.

Reviewed By: ryanmce

Differential Revision: D6974635

fbshipit-source-id: 55bcebfbdaca7f43fb0cfca0d3e089e76cf9f24e
2018-04-13 21:51:11 -07:00

18 lines
606 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
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=hg_test