Test to reproduce bug with duplicate mld's in same package
Odoc doesn't actually allow this so this test will turn into an error later on.
This commit is contained in:
parent
5669f57907
commit
526c1eef39
|
@ -338,3 +338,13 @@
|
||||||
(progn
|
(progn
|
||||||
(run ${exe:cram.exe} run.t)
|
(run ${exe:cram.exe} run.t)
|
||||||
(diff? run.t run.t.corrected))))))))
|
(diff? run.t run.t.corrected))))))))
|
||||||
|
|
||||||
|
(alias
|
||||||
|
((name runtest)
|
||||||
|
(deps ((files_recursively_in test-cases/odoc-unique-mlds)))
|
||||||
|
(action
|
||||||
|
(chdir test-cases/odoc-unique-mlds
|
||||||
|
(setenv JBUILDER ${bin:jbuilder}
|
||||||
|
(progn
|
||||||
|
(run ${exe:cram.exe} -ocamlv ${ocaml_version} -skip-versions 4.02.3 run.t)
|
||||||
|
(diff? run.t run.t.corrected)))))))
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
(jbuild_version 1)
|
||||||
|
|
||||||
|
(library
|
||||||
|
((name root_lib1)
|
||||||
|
(public_name root.lib1)))
|
|
@ -0,0 +1,5 @@
|
||||||
|
(jbuild_version 1)
|
||||||
|
|
||||||
|
(library
|
||||||
|
((name root_lib2)
|
||||||
|
(public_name root.lib2)))
|
|
@ -0,0 +1,16 @@
|
||||||
|
$ $JBUILDER build @doc -j1 --display short --root .
|
||||||
|
odoc _doc/odoc.css
|
||||||
|
odoc _doc/root.lib1/page-index.odoc
|
||||||
|
odoc _doc/root.lib1/page-test.odoc
|
||||||
|
ocamlc lib1/.root_lib1.objs/root_lib1.{cmi,cmo,cmt}
|
||||||
|
odoc _doc/root.lib2/page-index.odoc
|
||||||
|
odoc _doc/root.lib2/page-test.odoc
|
||||||
|
ocamlc lib2/.root_lib2.objs/root_lib2.{cmi,cmo,cmt}
|
||||||
|
odoc _doc/root.lib1/root_lib1.odoc
|
||||||
|
odoc _doc/root.lib2/root_lib2.odoc
|
||||||
|
odoc _doc/root.lib1/index.html
|
||||||
|
odoc _doc/root.lib1/test.html
|
||||||
|
odoc _doc/root.lib1/Root_lib1/.jbuilder-keep,_doc/root.lib1/Root_lib1/index.html
|
||||||
|
odoc _doc/root.lib2/index.html
|
||||||
|
odoc _doc/root.lib2/test.html
|
||||||
|
odoc _doc/root.lib2/Root_lib2/.jbuilder-keep,_doc/root.lib2/Root_lib2/index.html
|
Loading…
Reference in New Issue