Skip to content

Commit

Permalink
Add test for #657
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremie Dimino authored and jeremiedimino committed Mar 27, 2018
1 parent 103af86 commit daef49c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions test/blackbox-tests/test-cases/merlin-tests/lib/jbuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
(library
((name foo)
(libraries (bytes unix findlib))
(modules ())
(preprocess (pps (fooppx)))))

(library
((name bar)
(modules ())
(preprocess (pps (fooppx)))))
9 changes: 7 additions & 2 deletions test/blackbox-tests/test-cases/merlin-tests/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@
S $LIB_PREFIX/lib/findlib
S $LIB_PREFIX/lib/ocaml
# Processing lib/.merlin
B ../_build/default/lib/.bar.objs
B ../_build/default/lib/.foo.objs
B $LIB_PREFIX/lib/bytes
B $LIB_PREFIX/lib/findlib
B $LIB_PREFIX/lib/ocaml
FLG -open Foo -w -40
FLG -ppx '$PPX/fooppx@/ppx.exe --as-ppx --cookie '\''library-name="foo"'\'''
FLG -open Foo -w -40 -open Bar -w -40
S .
S $LIB_PREFIX/lib/bytes
S $LIB_PREFIX/lib/findlib
S $LIB_PREFIX/lib/ocaml
Make sure a ppx directive is generated
$ grep -q ppx lib/.merlin
[1]

0 comments on commit daef49c

Please sign in to comment.