Added a test case for #25
This commit is contained in:
parent
09c3d9ad31
commit
f95390ef0a
16
test/jbuild
16
test/jbuild
|
@ -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 .))))))
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
package "ca-marche" (
|
||||
)
|
||||
|
||||
package "ca-marche-pas" (
|
||||
requires = "une-lib-qui-nexiste-pas"
|
||||
)
|
|
@ -0,0 +1,4 @@
|
|||
(library
|
||||
((name hello)
|
||||
(public_name hello)
|
||||
(libraries (plop.ca-marche))))
|
Loading…
Reference in New Issue