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