Commit 6149ddf
committed
Allow per-component builds with coverage enabled
This commits re-enables per-component builds when coverage checking is
enabled. This restriction was previously added in #5004 to fix #4798.
However, the fix for #5213, in #7493, fixes the paths of the testsuite
`.mix` files to the same location as that of the main library component,
which in turn fixes #4798 as well -- meaning the restriction to treat
testsuites per-package (legacy-fallback) is no longer needed.
Lifting this restriction additionally fixes #6440 as we no longer
constrain coverage to per-package builds only, thus allowing multi-libs.
To generate hpc files in the appropriate component directories in the
distribution tree, we move the hack from #7493 from dictating the `.mix`
directories where hpc information is stored to dictating the `.mix`
directories that are included in the call to `hpc markup`.
Includes regression tests for #6440 and #4798 (the test for #5213
already exists)
Fixes #6440, and the already previously fixed #4798, #5213.1 parent 1157461 commit 6149ddf
File tree
14 files changed
+126
-40
lines changed- Cabal/src/Distribution/Simple
- cabal-install/src/Distribution/Client
- cabal-testsuite/PackageTests/Regression
- T4798
- src
- U2F
- tests
- T6440
- srcint
- src
- tests
14 files changed
+126
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 79 | + | |
104 | 80 | | |
105 | 81 | | |
106 | 82 | | |
| |||
146 | 122 | | |
147 | 123 | | |
148 | 124 | | |
149 | | - | |
| 125 | + | |
150 | 126 | | |
151 | 127 | | |
152 | 128 | | |
153 | 129 | | |
154 | 130 | | |
155 | | - | |
156 | | - | |
| 131 | + | |
| 132 | + | |
157 | 133 | | |
158 | 134 | | |
159 | 135 | | |
| |||
163 | 139 | | |
164 | 140 | | |
165 | 141 | | |
166 | | - | |
| 142 | + | |
167 | 143 | | |
168 | 144 | | |
169 | 145 | | |
170 | 146 | | |
171 | | - | |
| 147 | + | |
172 | 148 | | |
173 | 149 | | |
174 | 150 | | |
| |||
179 | 155 | | |
180 | 156 | | |
181 | 157 | | |
182 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
183 | 162 | | |
184 | 163 | | |
185 | 164 | | |
186 | 165 | | |
187 | 166 | | |
188 | 167 | | |
189 | | - | |
| 168 | + | |
190 | 169 | | |
191 | 170 | | |
192 | 171 | | |
| |||
215 | 194 | | |
216 | 195 | | |
217 | 196 | | |
218 | | - | |
| 197 | + | |
219 | 198 | | |
220 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1673 | 1673 | | |
1674 | 1674 | | |
1675 | 1675 | | |
1676 | | - | |
| 1676 | + | |
1677 | 1677 | | |
1678 | 1678 | | |
1679 | 1679 | | |
| |||
1710 | 1710 | | |
1711 | 1711 | | |
1712 | 1712 | | |
1713 | | - | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | 1713 | | |
1720 | 1714 | | |
1721 | 1715 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments