Skip to content

Commit

Permalink
merlin: update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Chávarri <[email protected]>
  • Loading branch information
jchavarri committed Mar 28, 2024
1 parent 37bc4c1 commit b174a61
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ If Merlin field is absent, default context is chosen

$ dune build

$ [ ! -d _build/cross/.merlin-conf ] && echo "No config in cross"
No config in cross
The rules are generated for all contexts, regardless which one is chosen

$ ls -a _build/cross/.merlin-conf
.
..
lib-foo

$ ls -a _build/default/.merlin-conf
.
..
lib-foo

But the default context is used by default

$ dune ocaml merlin dump-config "$PWD"
Foo: _build/default/foo
((STDLIB OPAM_PREFIX)
Expand Down Expand Up @@ -56,8 +62,10 @@ If Merlin field is present, this context is chosen
..
lib-foo

$ [ ! -d _build/default/.merlin-conf ] && echo "No config in default"
No config in default
$ ls -a _build/default/.merlin-conf
.
..
lib-foo

$ dune ocaml merlin dump-config "$PWD"
Foo: _build/cross/foo
Expand Down

0 comments on commit b174a61

Please sign in to comment.