dune/test/jbuild

50 lines
1.4 KiB
Plaintext

(jbuild_version 1)
(executables
((names (run))
(libraries (unix))))
(alias
((name runtest)
(deps ((files_recursively_in workspaces/redirections)))
(action
(chdir workspaces/redirections
(run ${exe:run.exe} -- ${bin:jbuilder} runtest -j1 --root .)))))
(alias
((name runtest)
(deps ((files_recursively_in workspaces/github20)))
(action
(chdir workspaces/github20
(run ${exe:run.exe} -- ${bin:jbuilder} build -j1 .merlin --root .)))))
(alias
((name runtest)
(deps ((files_recursively_in workspaces/github24)))
(action
(chdir workspaces/github24
(run ${exe:run.exe} --
${bin:jbuilder} build -j1 @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
(progn
(run ${exe:run.exe} -log log1 --
${bin:jbuilder} build -j1 @install --root . --only hello)
(run ${exe:run.exe} -log log2 -inverse --
${bin:jbuilder} build -j1 @install --root . --only pas-de-bol
)))))))