Update odoc tests

These now work for libs defined in the same dir
This commit is contained in:
Rudi Grinberg 2018-01-13 20:52:14 +08:00
parent 6cce747141
commit d2af91091c
2 changed files with 12 additions and 4 deletions

View File

@ -7,9 +7,11 @@ This test checks that there is no clash when two private libraries have the same
ocamldep b/test.depends.ocamldep-output
ocamldep b/test.dependsi.ocamldep-output
ocamlc a/test.{cmi,cmo,cmt}
odoc _doc/test@a/page-index.odoc
ocamlc b/test.{cmi,cmo,cmt}
odoc a/test.odoc
odoc b/test.odoc
odoc _doc/test@b/page-index.odoc
odoc _doc/test@a/test.odoc
odoc _doc/test@b/test.odoc
odoc _doc/test@a/index.html
odoc _doc/test@a/Test/.jbuilder-keep,_doc/test@a/Test/index.html
odoc _doc/test@b/index.html

View File

@ -5,12 +5,18 @@
ocamldep foo.dependsi.ocamldep-output
odoc _doc/odoc.css
ocamlc foo_byte.{cmi,cmo,cmt}
odoc _doc/foo.byte/page-index.odoc
odoc _doc/foo.byte/page-test.odoc
ocamlc foo.{cmi,cmo,cmt}
odoc foo_byte.odoc
odoc foo.odoc
odoc _doc/foo/page-index.odoc
odoc _doc/foo/page-test.odoc
odoc _doc/foo.byte/foo_byte.odoc
odoc _doc/foo/foo.odoc
odoc _doc/foo.byte/index.html
odoc _doc/foo.byte/test.html
odoc _doc/foo.byte/Foo_byte/.jbuilder-keep,_doc/foo.byte/Foo_byte/index.html
odoc _doc/foo/index.html
odoc _doc/foo/test.html
odoc _doc/foo/Foo/.jbuilder-keep,_doc/foo/Foo/index.html
$ $JBUILDER runtest -j1 --root .
<!DOCTYPE html>