-
Notifications
You must be signed in to change notification settings - Fork 456
Commit 48d0a48
authored
[CDRIVER-6107] Add Test Case Tag Support (#2135)
* `mlib_check` supports an explanatory string with all assertions
* Define a mutable string type
* Add a "vector" template header
* String functions for trimming whitespace
* Use mlib strings and vec types in TestSuite files
* Add support for test cases to declare tags (labels)
This change allows for test cases to declare any number of associated
"tags". The tags are specified after the test case name string as a
list of bracketed tags, mimicking Catch2's syntax.
The LoadTests.cmake script has been modified to apply test case's declared
tags as CTest labels. This also gives us the ability to apply test
fixture requirements granularly on only tests that declare their
requirement (via a tag).
* Tests can declare resource locks in tags
* No -Wmissing-braces anywhere
* Define a CTest fixture for our simple HTTP server
* Add test tags and properties throughout
* Fix OpenSSL test that requires an SSL context
* Add "unlikely" annotations around direct overflow checks1 parent 20d648b commit 48d0a48
File tree
62 files changed
+2522
-770
lines changed- build/cmake
- src
- common
- src/mlib
- tests
- libmongoc
- src/mongoc
- tests
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
62 files changed
+2522
-770
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | + | ||
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | + | ||
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | + | ||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | - | ||
6 | + | ||
7 | 7 | | |
8 | - | ||
9 | - | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | - | ||
15 | - | ||
16 | - | ||
17 | - | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | - | ||
22 | + | ||
22 | 23 | | |
23 | - | ||
24 | - | ||
24 | + | ||
25 | + | ||
25 | 26 | | |
26 | - | ||
27 | - | ||
27 | + | ||
28 | + | ||
28 | 29 | | |
29 | - | ||
30 | - | ||
31 | - | ||
30 | + | ||
31 | + | ||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | - | ||
36 | - | ||
37 | - | ||
38 | - | ||
39 | - | ||
40 | - | ||
41 | - | ||
42 | - | ||
43 | - | ||
44 | - | ||
45 | - | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
46 | 74 | | |
47 | 75 | | |
48 | 76 | | |
49 | 77 | | |
50 | 78 | | |
51 | - | ||
52 | - | ||
53 | - | ||
79 | + | ||
80 | + | ||
81 | + | ||
54 | 82 | | |
55 | - | ||
56 | - | ||
57 | - | ||
58 | - | ||
59 | - | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | - | ||
106 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | + | ||
401 | + | ||
402 | + | ||
403 | + | ||
404 | + | ||
405 | + | ||
406 | + | ||
407 | + | ||
408 | + | ||
409 | + | ||
410 | + | ||
411 | + | ||
412 | + | ||
413 | + | ||
414 | + | ||
415 | + | ||
416 | + | ||
417 | + | ||
418 | + | ||
400 | 419 | | |
0 commit comments