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