Blame SOURCES/README

f0a783
To run mongoDB tests enable rh-mongodb26 and python27 Software Collections:
f0a783
       $ scl enable rh-mongodb26 python27 bash
f0a783
f0a783
This directory contains a test suite for the mongoDB daemon. To run the 
f0a783
currently existing test cases, execute "./smoke.py all" in this directory.
f0a783
f0a783
For use in Red Hat distributions, you should run the script as user mongodb, 
f0a783
who is created with nologin shell however, so the best bet is something like:
f0a783
       $ su -
f0a783
       # cd /usr/share/mongodb-test
f0a783
       # scl enable rh-mongodb26 python27 bash
f0a783
       # su -s /bin/bash mongodb -c "./smoke.py all"
f0a783
f0a783
This will use the installed mongodb executables, but will run a private copy 
f0a783
of the server process (using data files within /usr/share/mongodb-test/var/), 
f0a783
so you need not start the mongod service beforehand.
f0a783
f0a783
To clean up afterwards, remove the created "var/*" subdirectories, eg
f0a783
       # su -s /bin/bash - mongodb -c "rm -rf /usr/share/mongodb-test/var/*"
f0a783
f0a783
If one or more tests fail on your system, please read the following manual 
f0a783
section for instructions on how to report the problem:
f0a783
f0a783
http://www.mongodb.org/about/contributors/tutorial/submit-bug-reports/
f0a783
f0a783
MongoDB offers these test suites: mongosTest, jsCore, quota, jsPerf, disk, 
f0a783
noPassthroughWithMongod, noPassthrough, parallel, repl, replSets, dur, auth, 
f0a783
sharding, tool, aggregation, multiVersion, failPoint, ssl, sslSpecial, gle, 
f0a783
slow1 and slow2. To run a specific testsuite execute "./smoke.py TESTSUITE".
f0a783
f0a783
If you want to run a specific test, use the --mode=files option to smoke.py 
f0a783
and specify what JavaSctipt file from /usr/share/mongodb-test/jstests/ you 
f0a783
want to run. It is also possible to specify more files. For example to run 
f0a783
jstests/libs/*.js files execute "./smoke.py --mode=files jstests/libs/*.js"
f0a783
f0a783
If you want to use an already running mongoBD server for specific tests, use 
f0a783
the '--dont-start-mongod' option to smoke.py. Please note that in this mode, 
f0a783
the test suite expects you to run mongod with desired options. For example, 
f0a783
here is the command to run the "jsCore" tests with an external server: 
f0a783
"./smoke.py --dont-start-mongod jsCore --port 27017"
f0a783
f0a783
For more options run "./smoke.py --help".
f0a783
f0a783
f0a783
In Red Hat distributions use this syntax:
f0a783
       $ su -
f0a783
       # cd /usr/share/mongodb-test
f0a783
       # scl enable rh-mongodb26 python27 bash
f0a783
       # su -s /bin/bash mongodb -c "./smoke.py OPTIONS"
f0a783
f0a783
More info about mongoDB testing: 
f0a783
http://www.mongodb.org/about/contributors/tutorial/test-the-mongodb-server/
f0a783
f0a783
f0a783
f0a783
Notes:
f0a783
f0a783
- ARM architecture is not fully supported - 
f0a783
  https://jira.mongodb.org/browse/SERVER-1811
f0a783
f0a783
- This subpackage does not contain dbtest (it is going to be 
f0a783
  deprecated) and perftest (it is not working at all) binaries.
f0a783