Blame SOURCES/README

79c91f
This directory contains a test suite for the mongoDB daemon. To run the 
79c91f
core JavaScripts tests, execute "./resmoke.py --suites core" in this 
79c91f
directory.
79c91f
79c91f
For use in Red Hat distributions, you should run the script as user 
79c91f
mongodb, who is created with nologin shell however, so the best bet is 
79c91f
something like:
79c91f
       $ su -
79c91f
       # cd /usr/share/mongodb-test
79c91f
       # su -s /bin/bash mongodb -c "./resmoke.py --suites core"
79c91f
79c91f
This will use the installed mongodb executables, but will run a private 
79c91f
copy of the server process (using data files within 
79c91f
/usr/share/mongodb-test/var/), so you need not start the mongod service 
79c91f
beforehand.
79c91f
79c91f
To clean up afterwards, remove the created "var/*" subdirectories, eg
79c91f
       # su -s /bin/bash - mongodb -c "rm -rf /usr/share/mongodb-test/var/*"
79c91f
79c91f
If one or more tests fail on your system, please read the following 
79c91f
manual section for instructions on how to report the problem:
79c91f
79c91f
http://www.mongodb.org/about/contributors/tutorial/submit-bug-reports/
79c91f
79c91f
MongoDB offers several test suites. To get list of provided test suites 
79c91f
run "./resmoke.py -l".
79c91f
79c91f
If you want to run a specific test, simply add path to JavaSctipt file 
79c91f
from /usr/share/mongodb-test/jstests/ you want to run to the option to 
79c91f
resmoke.py. It is also possible to specify more files. For example to 
79c91f
run jstests/disk/*.js files execute "./resmoke.py jstests/disk/*.js"
79c91f
79c91f
If you want to use some specific storage engine for mongod server you 
79c91f
have to specify --storageEngine option. Actualy there are two stable 
79c91f
storage engines: mmapv1 and wiredTiger (x86_64 only).
79c91f
79c91f
For more options run "./resmoke.py --help".
79c91f
79c91f
79c91f
In Red Hat distributions use this syntax:
79c91f
       $ su -
79c91f
       # cd /usr/share/mongodb-test
79c91f
       # su -s /bin/bash mongodb -c "./resmoke.py OPTIONS"
79c91f
79c91f
More info about mongoDB testing: 
79c91f
http://www.mongodb.org/about/contributors/tutorial/test-the-mongodb-server/
79c91f
79c91f
79c91f
79c91f
Notes:
79c91f
79c91f
- ARM architecture is not fully supported - 
79c91f
  https://jira.mongodb.org/browse/SERVER-1811
79c91f
79c91f
- This subpackage does not contain dbtest binary (it is going to be 
79c91f
  deprecated).
79c91f