Commit f6d6bd1
committed
fix(coverage): broaden always-run-all and rung3 Fortran extension matching
Fix 3: ALWAYS_RUN_ALL_EXACT + prefixes enumerated only a handful of toolchain
files, missing case.py, build.py, common.py, state.py, sched.py, etc. Any
toolchain/mfc/*.py change (except cases.py) affects every test's generation
or execution, so under-enumeration was unsound. Replace with a catch-all:
any(f.startswith('toolchain/mfc/') and f.endswith('.py') and f != CASES_PY).
Drop the now-redundant individual file entries and toolchain/mfc/params/ and
toolchain/mfc/run/ prefixes (all subsumed). Keep CMakeLists.txt,
toolchain/cmake/, toolchain/bootstrap/, and src include rules.
Fix 4: rung 3 matched only .f90 and .f, missing .F90, .F95, .F03, .F08, .FOR
and all other uppercase/mixed variants. Changed files ending in those extensions
under src/ would fall through to per-test selection against a coverage map that
only tracks .fpp, causing silent under-inclusion. Fix: case-insensitive match
against the full tuple (.f90, .f, .f95, .f03, .f08, .for).
Tests: add three new unit tests covering the above fixes.1 parent 9f970d3 commit f6d6bd1
2 files changed
Lines changed: 31 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 50 | | |
56 | 51 | | |
57 | 52 | | |
58 | 53 | | |
59 | 54 | | |
60 | | - | |
61 | 55 | | |
62 | | - | |
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
| |||
69 | 62 | | |
70 | 63 | | |
71 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
115 | | - | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
0 commit comments