File tree Expand file tree Collapse file tree 7 files changed +26
-1
lines changed
test/blackbox-tests/test-cases/odoc Expand file tree Collapse file tree 7 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ This test generates documentation using odoc for a library:
44
55This test if `. odocl` files are generated
66 $ find _build/ default / _doc/ _odocls -name ' *.odocl'
7- _build/ default / _doc/ _odocls/ foo/ foo3. odocl
87 _build/ default / _doc/ _odocls/ foo/ foo_byte. odocl
98 _build/ default / _doc/ _odocls/ foo/ page-index. odocl
109 _build/ default / _doc/ _odocls/ foo/ foo2. odocl
Original file line number Diff line number Diff line change 1+ (library
2+ (public_name foo))
Original file line number Diff line number Diff line change 1+ (lang dune 1 .10)
Original file line number Diff line number Diff line change 1+ This test generates documentation for non-hidden modules only for a library:
2+
3+ $ ocamlc -c -bin-annot foo. ml
4+
5+ $ dune build @ doc
6+
7+ Hidden modules should be compiled
8+ $ find _build/ default -name ' *.odoc'
9+ _build/ default / _doc/ _odoc/ pkg/ foo/ page-index. odoc
10+ _build/ default /. foo. objs/ byte/ foo__Bar. odoc
11+ _build/ default /. foo. objs/ byte/ foo__. odoc
12+ _build/ default /. foo. objs/ byte/ foo. odoc
13+
14+ Hidden modules should not be linked
15+ $ find _build/ default -name ' *.odocl'
16+ _build/ default / _doc/ _odocls/ foo/ page-index. odocl
17+ _build/ default / _doc/ _odocls/ foo/ foo. odocl
18+
19+ We don't expect html for hidden modules
20+ $ find _build/ default -name ' *.html'
21+ _build/ default / _doc/ _html/ index . html
22+ _build/ default / _doc/ _html/ foo/ index . html
23+ _build/ default / _doc/ _html/ foo/ Foo/ index . html
You can’t perform that action at this time.
0 commit comments