~vcs-imports/mogilefs/trunk

« back to all changes in this revision

Viewing changes to server/doc/testing.txt

  • Committer: hachi
  • Date: 2011-05-27 23:40:03 UTC
  • Revision ID: hachi-20110527234003-hioplx58nt6zb2mx
This has been moved to http://github.com/mogilefs/MogileFS-Server/

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
How to test MogileFS
2
 
--------------------
3
 
Automated tests
4
 
===============
5
 
$ perl Makefile.PL
6
 
$ MOGTEST_DBTYPE=<dbtype> make test
7
 
Where dbtype is one of MySQL (default), PostGres.
8
 
 
9
 
You should get output similar to the following on success:
10
 
<cut>
11
 
...
12
 
All tests successful, 1 test skipped.
13
 
Files=10, Tests=160, 31 wallclock secs ( 6.22 cusr +  3.39 csys =  9.61 CPU)
14
 
</cut>
15
 
 
16
 
The only test that should be skipped is t/20-filepaths. If you get other tests
17
 
being skipped, something is wrong!
18
 
 
19
 
The automated testing makes the assumption that the database can be accessed
20
 
as the default local DB administrator without a password. The relevant line of
21
 
the follow can be used to test if this assumption is valid:
22
 
$ mysql -uroot
23
 
OR
24
 
$ psql -Upostgres
25
 
 
26
 
Manual tests
27
 
============
28
 
If you only want to run some part of the test suite, or you want detailed
29
 
output as to why a test failed, you can run as follows:
30
 
$ MOGTEST_DBTYPE=<dbtype> perl -Ilib t/<foobar>.t
31
 
Where dbtype is one of MySQL (default), PostGres.
32
 
Where foobar is one of the *.t files from t/.