Skip to content

Commit

Permalink
Improve tests to build the code
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Jan 8, 2019
1 parent c054cf2 commit f218d27
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion test/blackbox-tests/test-cases/multi-dir/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,17 @@ Test some error cases
Test for (include_subdir unqualified) with (preprocess (action ...))
--------------------------------------------------------------------

$ dune build --root test4
$ dune build --display short --root test4 @all
Entering directory 'test4'
ocamldep .main.eobjs/main.ml.d
ocamlc .main.eobjs/main.{cmi,cmo,cmt}
ocamlopt .main.eobjs/main.{cmx,o}
ocamlopt main.exe
main sub/foo.pp.ml
ocamldep .foo.objs/foo.pp.ml.d
ocamlc .foo.objs/foo.{cmi,cmo,cmt}
ocamlopt .foo.objs/foo.{cmx,o}
ocamlopt foo.{a,cmxa}
ocamlopt foo.cmxs
ocamlc main.bc
ocamlc foo.cma
2 changes: 1 addition & 1 deletion test/blackbox-tests/test-cases/multi-dir/test4/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

(library
(name foo)
(preprocess (action (run main %{input-file})))
(preprocess (action (run ./main.exe %{input-file})))
(modules foo))

(include_subdirs unqualified)
2 changes: 1 addition & 1 deletion test/blackbox-tests/test-cases/multi-dir/test4/main.ml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
let () =
print_endline Sys.argv.(1)
print_endline "print_endline \"foo\""

0 comments on commit f218d27

Please sign in to comment.