Skip to content

Commit

Permalink
Add a test illustrating issue ocaml#1388
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Dec 21, 2021
1 parent 00c6121 commit 213aea0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tests/test-dirs/config/issue1388.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
$ cat >.merlin <<EOF
> STDLIB /my/std
> FLG -I +../cerberus/flags
> S +../cerberus/source
> B +../cerberus/build
> EOF

FIXME include_dir should also replace the `+` by the lib path
$ echo "" | $MERLIN single dump-configuration -filename test.ml | \
> grep -A2 'include_dirs\|source_path\|build_path'
"include_dirs": [
"$TESTCASE_ROOT/+../cerberus/flags"
],
--
"build_path": [
"/my/cerberus/build"
],
"source_path": [
"/my/cerberus/source"
],

$ echo "" | $MERLIN single dump -what paths -filename test.ml
{
"class": "return",
"value": [
"$TESTCASE_ROOT",
"$TESTCASE_ROOT/+../cerberus/flags",
"/my/cerberus/build",
"lib/ocaml"
],
"notifications": []
}

0 comments on commit 213aea0

Please sign in to comment.