@@ -31,9 +31,11 @@ typedef struct {
31
31
const char * test_description ;
32
32
} skipped_unified_test_t ;
33
33
34
+ #define SKIP_ALL_TESTS NULL
35
+
34
36
/* clang-format off */
35
37
skipped_unified_test_t SKIPPED_TESTS [] = {
36
- /* CDRIVER-3630, libmongoc does not unconditionally raise an error when using
38
+ /* CDRIVER-3630: libmongoc does not unconditionally raise an error when using
37
39
* hint option with an unacknowledged write concern */
38
40
{"unacknowledged-bulkWrite-delete-hint-clientError" , "Unacknowledged bulkWrite deleteOne with hints fails with client-side error" },
39
41
{"unacknowledged-bulkWrite-delete-hint-clientError" , "Unacknowledged bulkWrite deleteMany with hints fails with client-side error" },
@@ -56,9 +58,39 @@ skipped_unified_test_t SKIPPED_TESTS[] = {
56
58
{"unacknowledged-updateMany-hint-clientError" , "Unacknowledged updateMany with hint document fails with client-side error" },
57
59
{"unacknowledged-updateOne-hint-clientError" , "Unacknowledged updateOne with hint string fails with client-side error" },
58
60
{"unacknowledged-updateOne-hint-clientError" , "Unacknowledged updateOne with hint document fails with client-side error" },
59
- {0 }};
61
+ /* CDRIVER-4001, DRIVERS-1781, and DRIVERS-1448: 5.0 cursor behavior */
62
+ {"poc-command-monitoring" , "A successful find event with a getmore and the server kills the cursor" },
63
+ /* CDRIVER-3886: serverless testing (schema version 1.4) */
64
+ {"poc-crud" , SKIP_ALL_TESTS },
65
+ {"db-aggregate" , SKIP_ALL_TESTS },
66
+ {"mongos-unpin" , SKIP_ALL_TESTS },
67
+ /* CDRIVER-3883: load balancer support (schema version 1.3) */
68
+ {"assertNumberConnectionsCheckedOut" , SKIP_ALL_TESTS },
69
+ {"entity-client-cmap-events" , SKIP_ALL_TESTS },
70
+ {"entity-find-cursor" , SKIP_ALL_TESTS },
71
+ {"expectedEventsForClient-eventType" , SKIP_ALL_TESTS },
72
+ {"ignoreResultAndError" , SKIP_ALL_TESTS },
73
+ /* CDRIVER-3867: comprehensive Atlas testing (schema version 1.2) */
74
+ {"entity-client-storeEventsAsEntities" , SKIP_ALL_TESTS },
75
+ {0 },
76
+ };
60
77
/* clang-format on */
61
78
79
+ static bool
80
+ is_test_file_skipped (test_file_t * test_file )
81
+ {
82
+ skipped_unified_test_t * skip ;
83
+
84
+ for (skip = SKIPPED_TESTS ; skip -> file_description != NULL ; skip ++ ) {
85
+ if (!strcmp (skip -> file_description , test_file -> description ) &&
86
+ skip -> test_description == SKIP_ALL_TESTS ) {
87
+ return true;
88
+ }
89
+ }
90
+
91
+ return false;
92
+ }
93
+
62
94
static bool
63
95
is_test_skipped (test_t * test )
64
96
{
@@ -1489,6 +1521,13 @@ run_one_test_file (bson_t *bson)
1489
1521
1490
1522
test_diagnostics_test_info ("test file: %s" , test_file -> description );
1491
1523
1524
+ if (is_test_file_skipped (test_file )) {
1525
+ MONGOC_DEBUG (
1526
+ "SKIPPING test file '%s'. Reason: 'explicitly skipped in runner.c'" ,
1527
+ test_file -> description );
1528
+ goto done ;
1529
+ }
1530
+
1492
1531
check_schema_version (test_file );
1493
1532
if (test_file -> run_on_requirements ) {
1494
1533
const char * reason ;
0 commit comments