Skip to content

Commit 56ada16

Browse files
authored
CDRIVER-3422 remaining support of unified test format (#722)
1 parent 130e07a commit 56ada16

26 files changed

+8748
-329
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,12 @@ start mongocryptd on port 27020 and set the following:
246246

247247
* `MONGOC_TEST_MONGOCRYPTD_BYPASS_SPAWN=on`
248248

249+
Specification tests may be filtered by their description:
250+
251+
* `MONGOC_JSON_SUBTEST=<string>`
252+
253+
This can be useful in debugging a specific test case in a spec test file with multiple tests.
254+
249255
All tests should pass before submitting a patch.
250256

251257
## Configuring the test runner

src/libmongoc/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,8 +997,11 @@ set (test-libmongoc-sources
997997
${PROJECT_SOURCE_DIR}/tests/test-mongoc-write-commands.c
998998
${PROJECT_SOURCE_DIR}/tests/test-mongoc-write-concern.c
999999
${PROJECT_SOURCE_DIR}/tests/TestSuite.c
1000+
${PROJECT_SOURCE_DIR}/tests/unified/operation.c
10001001
${PROJECT_SOURCE_DIR}/tests/unified/entity-map.c
1002+
${PROJECT_SOURCE_DIR}/tests/unified/result.c
10011003
${PROJECT_SOURCE_DIR}/tests/unified/runner.c
1004+
${PROJECT_SOURCE_DIR}/tests/unified/test-diagnostics.c
10021005
${PROJECT_SOURCE_DIR}/tests/unified/util.c
10031006
)
10041007

src/libmongoc/tests/bsonutil/bson-match.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ bson_matcher_new ()
305305
bson_matcher_add_special (
306306
matcher, "$$unsetOrMatches", special_unset_or_matches, NULL);
307307
bson_matcher_add_special (
308-
matcher, "$$matches_hex_bytes", special_matches_hex_bytes, NULL);
308+
matcher, "$$matchesHexBytes", special_matches_hex_bytes, NULL);
309309
return matcher;
310310
}
311311

src/libmongoc/tests/json/unified/example-insertOne.json

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)