[CDRIVER-4016] Segregate modified and upstream BSON corpus tests Created: 04/Jun/21  Updated: 10/Feb/23

Status: Backlog
Project: C Driver
Component/s: tests
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Jeremy Mikola Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-4017 Extended JSON should emit escape sequ... Backlog
Epic Link: CDRIVER-2733

 Description   

The tests/json/bson_corpus directory contains both tests from the upstream specifications repository as well as custom tests. In some cases, tests in this directory are modified copies of the upstream tests.

Consider: some multi-byte UTF encoding tests were manually modified in mongodb/libbson@980546a (before libbson was merged into libmongoc). There is no record of these manual modifications.

In another case, mongodb/libbson@980546a introduced a double2.json file, which is not found in the upstream repository. That is in contrast to a decimal128-mongoc.json file introduced in mongodb/libbson@a7ad680, which at least has a differentiated file name.

All modified tests should be organized into their own directory. The bson_corpus directory should then contain exact copies of any upstream tests, with skips added to test-bson-corpus.c as needed. Rather than modified upstream tests, we should skip the originals and create modified copies in a separate directroy.


Generated at Wed Feb 07 21:19:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.