Added a test case for #25

This commit is contained in:
Jeremie Dimino 2017-03-15 15:16:55 +00:00
parent 09c3d9ad31
commit f95390ef0a
4 changed files with 26 additions and 0 deletions

View File

@ -25,3 +25,19 @@
(chdir workspaces/github24
(run ${exe:run.exe} ${bin:jbuilder}
build @install --root . --debug-dependency-path)))))
;; This test define an installed "plop" with a "plop.ca-marche-pas"
;; sub-package which depend on a library that doesn't exist.
;;
;; The build itself uses only "plop.ca-marche", which doesn't have this
;; problem. So jbuilder shouldn't crash because of "plop.ca-marche-pas"
;;
;; We need ocamlfind to run this test
(alias
((name runtest)
(deps ((files_recursively_in workspaces/github25)))
(action
(chdir workspaces/github25/root
(setenv OCAMLPATH ../findlib-packages
(run ${exe:run.exe} ${bin:jbuilder} build @install --root .))))))

View File

@ -0,0 +1,6 @@
package "ca-marche" (
)
package "ca-marche-pas" (
requires = "une-lib-qui-nexiste-pas"
)

View File

View File

@ -0,0 +1,4 @@
(library
((name hello)
(public_name hello)
(libraries (plop.ca-marche))))