Add test showing that private libs with same names don't get built

2 private libs with equivalent names but living in public names will not be
built as part of @install even if they have different public names
This commit is contained in:
Rudi Grinberg 2018-02-12 19:27:51 +08:00
parent 0873ae2b10
commit ee42ca5301
8 changed files with 23 additions and 0 deletions

View File

@ -297,3 +297,13 @@
(progn
(run ${exe:cram.exe} run.t)
(diff? run.t run.t.corrected)))))))
(alias
((name runtest)
(deps ((files_recursively_in test-cases/installable-dup-private-libs)))
(action
(chdir test-cases/installable-dup-private-libs
(setenv JBUILDER ${bin:jbuilder}
(progn
(run ${exe:cram.exe} run.t)
(diff? run.t run.t.corrected)))))))

View File

@ -0,0 +1,3 @@
(library
((name a)
(public_name a1)))

View File

@ -0,0 +1,3 @@
(library
((name a)
(public_name a2)))

View File

@ -0,0 +1,7 @@
$ $JBUILDER build @install -j1 --display short --root .
ocamldep a2/a.ml.d
ocamlc a2/.a.objs/a.{cmi,cmo,cmt}
ocamlopt a2/.a.objs/a.{cmx,o}
ocamlc a2/a.cma
ocamlopt a2/a.{a,cmxa}
ocamlopt a2/a.cmxs