Merge pull request #522 from rgrinberg/duplicate-mlds

Test to reproduce bug with duplicate mld's in same package
This commit is contained in:
Rudi Grinberg 2018-02-17 23:32:38 +07:00 committed by GitHub
commit e6d3e9fca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 65 additions and 0 deletions

View File

@ -338,3 +338,13 @@
(progn
(run ${exe:cram.exe} run.t)
(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)))))))

View File

@ -0,0 +1,5 @@
(jbuild_version 1)
(library
((name scope1)
(public_name scope1)))

View File

@ -0,0 +1,5 @@
(jbuild_version 1)
(library
((name scope2)
(public_name scope2)))

View File

@ -0,0 +1,35 @@
Duplicate mld's in the same scope
$ $JBUILDER build @doc -j1 --display short --root ./same-scope 2>&1 | grep -v Entering
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
Duplicate mld's in different scope
$ $JBUILDER build @doc -j1 --display short --root ./diff-scope 2>&1 | grep -v Entering
odoc _doc/odoc.css
odoc _doc/scope1/page-foo.odoc
odoc _doc/scope1/page-index.odoc
ocamlc scope1/.scope1.objs/scope1.{cmi,cmo,cmt}
odoc _doc/scope2/page-foo.odoc
odoc _doc/scope2/page-index.odoc
ocamlc scope2/.scope2.objs/scope2.{cmi,cmo,cmt}
odoc _doc/scope1/scope1.odoc
odoc _doc/scope2/scope2.odoc
odoc _doc/scope1/foo.html
odoc _doc/scope1/index.html
odoc _doc/scope1/Scope1/.jbuilder-keep,_doc/scope1/Scope1/index.html
odoc _doc/scope2/foo.html
odoc _doc/scope2/index.html
odoc _doc/scope2/Scope2/.jbuilder-keep,_doc/scope2/Scope2/index.html

View File

@ -0,0 +1,5 @@
(jbuild_version 1)
(library
((name root_lib1)
(public_name root.lib1)))

View File

@ -0,0 +1,5 @@
(jbuild_version 1)
(library
((name root_lib2)
(public_name root.lib2)))