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:
parent
0873ae2b10
commit
ee42ca5301
|
@ -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)))))))
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
(library
|
||||
((name a)
|
||||
(public_name a1)))
|
|
@ -0,0 +1,3 @@
|
|||
(library
|
||||
((name a)
|
||||
(public_name a2)))
|
|
@ -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
|
Loading…
Reference in New Issue