Commit 5fa4ca0
authored
test: incremental rebuild guard for vlib impl with private_modules (ocaml#14392)
## Summary
Adds `test-cases/virtual-libraries/impl-private-modules-incremental.t`,
a companion to the existing `impl-private-modules.t`. The existing test
verifies the static artifact layout of an `(implements vlib)
(private_modules ...)` library; the new test mutates the impl's private
module's body and asserts that a rebuild succeeds and a downstream
consumer continues to type-check.
## Coverage gap
`impl-private-modules.t` and the other tests under `virtual-libraries/`
that combine `implements` and `private_modules`
(`impl-lib-interface-module.t`, `impl-public-modules/wrapped.t`,
`private-module-shadowing-github1855.t`,
`private-modules-overlapping-names.t`,
`private-modules-public-impl-github10635.t`) all exercise initial-build
behaviour only. None verifies that subsequent edits to the impl's
private module are correctly propagated through the rebuild graph. A
regression in dune's wiring of the impl's private-module compile rule
into incremental rebuilds — for example, if the private module's
regenerated artifacts were not picked up by the consumer's compile, or
if the impl library's archive were not re-linked — would not be caught.
---------
Signed-off-by: Robin Bate Boerop <me@robinbb.com>1 parent a0c508e commit 5fa4ca0
1 file changed
Lines changed: 81 additions & 0 deletions
Lines changed: 81 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 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 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 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
0 commit comments