• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

func/H27-Aug-2013-1,8751,432

libtap/H03-May-2022-638556

perf/bson/H27-Aug-2013-4434

tools/H27-Aug-2013-433332

unit/H27-Aug-2013-7,1025,336

Makefile.amH A D03-May-20227.6 KiB228202

READMEH A D27-Aug-20131,002 2919

coverage.shH A D27-Aug-20131.4 KiB4436

test_cleanup.cH A D27-Aug-2013646 3223

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