Skip to content

Commit

Permalink
Make dune init lib tests more robust
Browse files Browse the repository at this point in the history
We run the generated tests and make sure the @install target works

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
  • Loading branch information
rgrinberg committed Aug 7, 2019
1 parent baa4b97 commit 951c7f3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion test/blackbox-tests/test-cases/dune-init/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,25 @@ Can init and build a new library project
dune
test_lib_proj.ml

$ cd test_lib_proj && dune build
$ dune build --root test_lib_proj @install --display short
Entering directory 'test_lib_proj'
Info: Creating file dune-project with this contents:
| (lang dune 2.0)
| (name test_lib_proj)
ocamlc lib/.test_lib_proj.objs/byte/test_lib_proj.{cmi,cmo,cmt}
ocamlc lib/test_lib_proj.cma
ocamlopt lib/.test_lib_proj.objs/native/test_lib_proj.{cmx,o}
ocamlopt lib/test_lib_proj.{a,cmxa}
ocamlopt lib/test_lib_proj.cmxs

$ dune runtest --root test_lib_proj --display short
Entering directory 'test_lib_proj'
ocamldep test/.test_lib_proj.eobjs/test_lib_proj.ml.d
ocamlc test/.test_lib_proj.eobjs/byte/dune__exe__Test_lib_proj.{cmi,cmo,cmt}
ocamlopt test/.test_lib_proj.eobjs/native/dune__exe__Test_lib_proj.{cmx,o}
ocamlopt test/test_lib_proj.exe
test_lib_proj alias test/runtest

Can init and build a project using Esy

$ dune init proj test_esy_proj --pkg esy
Expand Down

0 comments on commit 951c7f3

Please sign in to comment.