enable DB upgrade for host readonly state
[MogileFS-Server.git] / TESTING
blobfa73d2c6ad5813909cbe32061591eef27fb86321
1 Testing under MySQL:
2 --------------------
3 We use the default 'test' user whom is allowed to connect to the 'test' database from localhost only.
4 # make test \
5         MOGTEST_DBUSER=test \
6         MOGTEST_DBNAME=test \
7         MOGTEST_DBTYPE=MySQL
9 Testing under Postgresql:
10 -------------------------
11 Database setup:
12 # createuser -SRlD mogile
13 # createdb --template template0 -E UTF8 -O mogile tmp_mogiletest
15 To run the tests:
16 # make test \
17         MOGTEST_DBUSER=mogile \
18         MOGTEST_DBNAME=tmp_mogiletest \
19         MOGTEST_DBROOTUSER=postgres \
20         MOGTEST_DBTYPE=Postgres
22 Testing under SQLite:
23 ---------------------
24 # make test \
25         MOGTEST_DBUSER=mogile \
26         MOGTEST_DBNAME=tmp_mogiletest \
27         MOGTEST_DBTYPE=SQLite
29 Available test variables:
30 -------------------------
31 MOGTEST_DBNAME
32 MOGTEST_DBTYPE
33 MOGTEST_DBUSER
34 MOGTEST_DBPASS
35 MOGTEST_DBROOTUSER
36 MOGTEST_DBROOTPASS
38 Other use test notes:
39 ---------------------
40 - Running the tests should be done with equally new versions of MogileFS-Utils
41   and perl-MogileFS-Client. If you have all 3 git repos checked out in
42   parallel, set:
43   "PATH=../MogileFS-Utils/:$PATH PERL5LIB=../perl-MogileFS-Client/lib" 
44 - You can control the disk space used for the test mogstored's by setting
45   TMPDIR.