Skip to content

Commit

Permalink
test: Make test libraries (optional)
Browse files Browse the repository at this point in the history
These libraries need to be attached to a package with '(package odoc)'.
This has the side effect of making the library installable (under the
__private__ namespace) and promote test dependencies into build
dependencies.
This works around that.
  • Loading branch information
Julow committed Dec 13, 2024
1 parent 73e0d4e commit 22d0ce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/model/semantics/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(library
(name odoc_model_semantics_test)
(package odoc)
(optional)
(inline_tests)
(enabled_if
(>= %{ocaml_version} 4.04.1))
Expand Down
1 change: 1 addition & 0 deletions test/odoc_print/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(library
(name type_desc_to_yojson)
(package odoc)
(optional)
(modules type_desc_to_yojson)
(libraries odoc_model_desc yojson))

Expand Down

0 comments on commit 22d0ce6

Please sign in to comment.