@@ -115,7 +115,8 @@ generate man pages and HTML for it.
115
115
116
116
### Testing
117
117
118
- The tests require a MongoDB server with authentication. Start ` mongod ` :
118
+ To run the entire test suite, including authentication tests,
119
+ start ` mongod ` with auth enabled:
119
120
120
121
```
121
122
$ mongod --auth
@@ -127,7 +128,14 @@ In another terminal, use the `mongo` shell to create a user:
127
128
$ mongo --eval "db.createUser({user: 'admin', pwd: 'pass', roles: ['root']})" admin
128
129
```
129
130
130
- Set the user and password environment variables, and run the tests:
131
+ To authenticate against MongoDB 3.0+ requires SCRAM-SHA-1, which in turn
132
+ requires a driver built with OpenSSL:
133
+
134
+ ```
135
+ $ ./configure --enable-ssl`
136
+ ```
137
+
138
+ Set the user and password environment variables, then build and run the tests:
131
139
132
140
```
133
141
$ export MONGOC_TEST_USER=admin
@@ -167,8 +175,7 @@ All tests should pass before submitting a patch.
167
175
## Configuring the test runner
168
176
169
177
The test runner can be configured by declaring the ` TEST_ARGS ` environment
170
- variable.
171
- Currently the following options can be provided:
178
+ variable. The following options can be provided:
172
179
173
180
```
174
181
-h, --help Show this help menu.
@@ -197,4 +204,3 @@ $ make debug TEST_ARGS="-l /WriteConcern/bson_omits_defaults"
197
204
```
198
205
199
206
This will build all dependencies and leave you in a debugger ready to run the test.
200
-
0 commit comments