Skip to content

Commit

Permalink
Add a test for issue ocaml#9456
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Ludlam <[email protected]>
  • Loading branch information
jonludlam committed Dec 13, 2023
1 parent 4f30e74 commit 5e2c517
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/blackbox-tests/test-cases/odoc/new/multi-lib.t/b.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module Foo = Odoctest2_sublib.A

4 changes: 4 additions & 0 deletions test/blackbox-tests/test-cases/odoc/new/multi-lib.t/b.mli
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Foo : module type of Odoctest2_sublib.A



4 changes: 4 additions & 0 deletions test/blackbox-tests/test-cases/odoc/new/multi-lib.t/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(library
(public_name odoctest2)
(libraries odoctest2.sublib))

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(lang dune 3.0)
Empty file.
8 changes: 8 additions & 0 deletions test/blackbox-tests/test-cases/odoc/new/multi-lib.t/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This test checks that compilation dependencies are correct

$ dune build @doc-new

There should be an expansion of `B.Foo` - ie, a directory called `Foo`:

$ ls _build/default/_doc_new/html/docs/local/odoctest2/Odoctest2/B
index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type t = int


Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type t
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(library
(name odoctest2_sublib)
(public_name odoctest2.sublib))

0 comments on commit 5e2c517

Please sign in to comment.