README
1About the test suite -*- org -*-
2====================
3
4The test suite has two parts: the basic tests, which do not require
5anything outside of this library, and networked tests, which require a
6certain network setup if one wants to run them all.
7
8The basic tests are run as part of `make check', while to run the
9network tests, one must do a few other things, after which the
10networked tests will be run aswell:
11
12* Set up a mongodb server, and set up variables for the test suite
13
14One must set the `TEST_PRIMARY' variable to the "IP:PORT" of the
15mongodb server.
16
17For example, assuming a bourne shell:
18
19 $ TEST_PRIMARY="127.0.0.1:27017"; export TEST_PRIMARY
20
21* To test replica sets, point the test suite to a secondary node
22
23First of all, one will need to set up a Replica Set (see the mongodb
24documentation for examples and a tutorial), and point the test suite
25to a *secondary* node by setting the `TEST_SECONDARY' environment
26variable:
27
28 $ TEST_SECONDARY="127.0.0.1:27018"; export TEST_SECONDARY
29