Commit b0d33fe
committed
test: regression guard for [(root_module ...)] + [(libraries ...)]
Adds [test-cases/per-module-lib-deps/root-module-tight-deps.t].
Asserts that a library declaring [(root_module ...)] alongside
[(libraries ...)] builds correctly when its modules reference the
dep library through the Root alias.
Root modules carry their own dep-rule shape: dune synthesises the
[.d] file for the Root module (no [.all-deps], to avoid the cycle
that would arise from a Root that references itself transitively).
Any future change to inter-library dep handling that misses the
synthesised-[.d] path would regress this scenario.
Forward-looking guard. The build path on current main uses a
broad-glob over the dep library's objdir, so the test passes
trivially today. The synthesised-[.d] path is still exercised by
rule generation, and that is what the test pins.
Signed-off-by: Robin Bate Boerop <me@robinbb.com>1 parent 824816b commit b0d33fe
1 file changed
Lines changed: 42 additions & 0 deletions
Lines changed: 42 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 | + | |
0 commit comments