Add tests for (package foo) dependency type

This commit is contained in:
Rudi Grinberg 2018-03-16 01:37:33 +08:00
parent b187d6e4ba
commit 727d9688e9
5 changed files with 29 additions and 0 deletions

View File

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

View File

@ -0,0 +1,11 @@
(jbuild_version 1)
(library
((name foo)
(public_name foo)
(modules (foo))))
(alias
((name runtest)
(deps ((package foo)))
(action (echo "package foo"))))

View File

@ -0,0 +1,8 @@
$ $JBUILDER runtest -j1 --display short --root .
ocamldep foo.ml.d
ocamlc .foo.objs/foo.{cmi,cmo,cmt}
ocamlopt .foo.objs/foo.{cmx,o}
ocamlopt foo.{a,cmxa}
ocamlopt foo.cmxs
ocamlc foo.cma
package foo