Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolás Ojeda Bär <n.oje.bar@gmail.com>
  • Loading branch information
nojb committed Feb 17, 2021
1 parent b7771fa commit eeec16b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/blackbox-tests/test-cases/top.t/dune
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
(library
(name x))

(toplevel
(name mytop)
(libraries z))
5 changes: 5 additions & 0 deletions test/blackbox-tests/test-cases/top.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ Check that C stubs work.
$ (dune top && echo "Z.f ();;") > init.mltop
$ ocaml init.mltop
Hello!

Check that custom toplevel can find the C stubs.
$ echo "Z.f ();;" > foo.ml
$ dune exec -- ./mytop.exe foo.ml
Hello!

0 comments on commit eeec16b

Please sign in to comment.