Skip to content

Commit

Permalink
tests: update tests with new BUILD_DIR field in merlin config
Browse files Browse the repository at this point in the history
Signed-off-by: Ulysse Gérard <[email protected]>
  • Loading branch information
voodoos committed Dec 22, 2022
1 parent a0b1dc2 commit a1f1606
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 40 deletions.
8 changes: 6 additions & 2 deletions test/blackbox-tests/test-cases/github1946.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ in the same dune file, but require different ppx specifications
$ dune build @all --profile release
$ dune ocaml merlin dump-config $PWD
Usesppx1
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/.usesppx1.objs/byte)
Expand All @@ -21,7 +23,9 @@ in the same dune file, but require different ppx specifications
'library-name="usesppx1"'"))
(FLG (-w -40)))
Usesppx2
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/.usesppx2.objs/byte)
Expand Down
12 changes: 9 additions & 3 deletions test/blackbox-tests/test-cases/github759.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
$ dune build foo.cma --profile release
$ dune ocaml merlin dump-config $PWD
Foo
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/.foo.objs/byte)
Expand All @@ -16,7 +18,9 @@
$ dune build foo.cma --profile release
$ dune ocaml merlin dump-config $PWD
Foo
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/.foo.objs/byte)
Expand All @@ -28,7 +32,9 @@
$ dune build foo.cma --profile release
$ dune ocaml merlin dump-config $PWD
Foo
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/.foo.objs/byte)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ If Merlin field is absent, default context is chosen

$ dune ocaml merlin dump-config "$PWD"
Foo
((STDLIB OPAM_PREFIX)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB OPAM_PREFIX)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/.foo.objs/byte)
Expand Down Expand Up @@ -60,7 +62,9 @@ If Merlin field is present, this context is chosen

$ dune ocaml merlin dump-config "$PWD"
Foo
((STDLIB OPAM_PREFIX)
((BUILD_DIR
$TESTCASE_ROOT/_build/cross)
(STDLIB OPAM_PREFIX)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/cross/.foo.objs/byte)
Expand Down
4 changes: 3 additions & 1 deletion test/blackbox-tests/test-cases/merlin/github4125.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ We call `$(opam switch show)` so that this test always uses an existing switch

$ dune ocaml merlin dump-config "$PWD"
Foo
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/cross)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/cross/.foo.objs/byte)
Expand Down
12 changes: 8 additions & 4 deletions test/blackbox-tests/test-cases/merlin/merlin-from-subdir.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ We build the project
Verify that merlin configuration was generated...
$ dune ocaml merlin dump-config $PWD
Test
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/.foo.objs/byte)
Expand All @@ -26,7 +28,9 @@ Verify that merlin configuration was generated...
-short-paths
-keep-locs)))
Foo
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/.foo.objs/byte)
Expand All @@ -50,7 +54,7 @@ Now we check that both querying from the root and the subfolder works
$ FILE411=$PWD/411/test.ml

$ printf "(4:File%d:%s)" ${#FILE} $FILE | dune ocaml-merlin | sed -E "s/[[:digit:]]+:/\?:/g"
((?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.foo.objs/byte)(?:S?:$TESTCASE_ROOT)(?:S?:$TESTCASE_ROOT/411)(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))
((?:BUILD_DIR?:$TESTCASE_ROOT/_build/default)(?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.foo.objs/byte)(?:S?:$TESTCASE_ROOT)(?:S?:$TESTCASE_ROOT/411)(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))

$ printf "(4:File%d:%s)" ${#FILE411} $FILE411 | dune ocaml-merlin | sed -E "s/[[:digit:]]+:/\?:/g"
((?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.foo.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.test.eobjs/byte)(?:S?:$TESTCASE_ROOT)(?:S?:$TESTCASE_ROOT/411)(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))
((?:BUILD_DIR?:$TESTCASE_ROOT/_build/default)(?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.foo.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.test.eobjs/byte)(?:S?:$TESTCASE_ROOT)(?:S?:$TESTCASE_ROOT/411)(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))
44 changes: 30 additions & 14 deletions test/blackbox-tests/test-cases/merlin/merlin-tests.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ CRAM sanitization
$ dune build ./exe/.merlin-conf/exe-x --profile release
$ dune ocaml merlin dump-config $PWD/exe
X
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B lib/findlib)
(B /OCAMLC_WHERE)
(B lib/findlib)
(B
$TESTCASE_ROOT/_build/default/exe/.x.eobjs/byte)
(B
$TESTCASE_ROOT/_build/default/lib/.foo.objs/public_cmi)
(S lib/findlib)
(S /OCAMLC_WHERE)
(S lib/findlib)
(S
$TESTCASE_ROOT/exe)
(S
Expand All @@ -29,7 +31,9 @@ CRAM sanitization
$ dune build ./lib/.merlin-conf/lib-foo ./lib/.merlin-conf/lib-bar --profile release
$ dune ocaml merlin dump-config $PWD/lib
Bar
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/lib/.bar.objs/byte)
Expand All @@ -45,7 +49,9 @@ CRAM sanitization
'library-name="bar"'"))
(FLG (-w -40)))
File
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/lib/.bar.objs/byte)
Expand All @@ -62,14 +68,16 @@ CRAM sanitization
'library-name="bar"'"))
(FLG (-w -40)))
Foo
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B lib/findlib)
(B /OCAMLC_WHERE)
(B lib/findlib)
(B
$TESTCASE_ROOT/_build/default/lib/.foo.objs/byte)
(S lib/findlib)
(S /OCAMLC_WHERE)
(S lib/findlib)
(S
$TESTCASE_ROOT/lib)
(S
Expand All @@ -82,14 +90,16 @@ CRAM sanitization
'library-name="foo"'"))
(FLG (-w -40)))
Privmod
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B lib/findlib)
(B /OCAMLC_WHERE)
(B lib/findlib)
(B
$TESTCASE_ROOT/_build/default/lib/.foo.objs/byte)
(S lib/findlib)
(S /OCAMLC_WHERE)
(S lib/findlib)
(S
$TESTCASE_ROOT/lib)
(S
Expand All @@ -111,7 +121,9 @@ Make sure pp flag is correct and variables are expanded
$ dune build ./pp-with-expand/.merlin-conf/exe-foobar --profile release
$ dune ocaml merlin dump-config $PWD/pp-with-expand
Foobar
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/pp-with-expand/.foobar.eobjs/byte)
Expand All @@ -127,7 +139,9 @@ Check hash of executables names if more than one
$ dune build ./exes/.merlin-conf/exe-x-6562915302827c6dce0630390bfa68b7
$ dune ocaml merlin dump-config $PWD/exes
X
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/exes/.x.eobjs/byte)
Expand All @@ -141,7 +155,9 @@ Check hash of executables names if more than one
-short-paths
-keep-locs)))
Y
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/exes/.x.eobjs/byte)
Expand Down
8 changes: 6 additions & 2 deletions test/blackbox-tests/test-cases/merlin/per-module-pp.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ should appear only once since only Foo is using it.

$ dune ocaml merlin dump-config $PWD
Bar
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/.foo.objs/byte)
Expand All @@ -22,7 +24,9 @@ should appear only once since only Foo is using it.
-short-paths
-keep-locs)))
Foo
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/.foo.objs/byte)
Expand Down
14 changes: 7 additions & 7 deletions test/blackbox-tests/test-cases/merlin/server.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,36 @@
$ dune build @check

$ printf "(4:File%d:%s)" ${#FILE} $FILE | dune ocaml-merlin | sed -E "s/[[:digit:]]+:/\?:/g"
((?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.main.eobjs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib3.objs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-open?:Dune__exe))(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))
((?:BUILD_DIR?:$TESTCASE_ROOT/_build/default)(?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.main.eobjs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib3.objs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-open?:Dune__exe))(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))

$ FILE=$PWD/lib3.ml
$ printf "(4:File%d:%s)" ${#FILE} $FILE | dune ocaml-merlin | sed -E "s/[[:digit:]]+:/\?:/g"
((?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.mylib.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib3.objs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-open?:Mylib3))(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))
((?:BUILD_DIR?:$TESTCASE_ROOT/_build/default)(?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.mylib.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib3.objs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-open?:Mylib3))(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))

If a file has a name of the kind `module_name.xx.xxx.ml/i`
we consider it as ``module_name.ml/i`
This can be useful when some build scripts perform custom
preprocessing and copy files around.
$ FILE=lib3.foobar.ml
$ printf "(4:File%d:%s)" ${#FILE} $FILE | dune ocaml-merlin | sed -E "s/[[:digit:]]+:/\?:/g"
((?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.mylib.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib3.objs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-open?:Mylib3))(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))
((?:BUILD_DIR?:$TESTCASE_ROOT/_build/default)(?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.mylib.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib3.objs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-open?:Mylib3))(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))

If a directory has no configuration the configuration of its parent is used
This can be useful when some build scripts copy files from subdirectories.
$ FILE=foobar/lib3.foobar.ml
$ printf "(4:File%d:%s)" ${#FILE} $FILE | dune ocaml-merlin | sed -E "s/[[:digit:]]+:/\?:/g"
((?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.mylib.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib3.objs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-open?:Mylib3))(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))
((?:BUILD_DIR?:$TESTCASE_ROOT/_build/default)(?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.mylib.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib3.objs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-open?:Mylib3))(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))

Test of an valid invalid module name
$ FILE=not-a-module-name.ml
$ printf "(4:File%d:%s)" ${#FILE} $FILE | dune ocaml-merlin | sed -E "s/[[:digit:]]+:/\?:/g"
((?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.not-a-module-name.eobjs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs?:-w?:-24)))
((?:BUILD_DIR?:$TESTCASE_ROOT/_build/default)(?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.not-a-module-name.eobjs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs?:-w?:-24)))

Dune should also provide configuration when the file is in the build folder
$ FILE=$PWD/_build/default/lib3.ml
$ printf "(4:File%d:%s)" ${#FILE} $FILE | dune ocaml-merlin | sed -E "s/[[:digit:]]+:/\?:/g"
((?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.mylib.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib3.objs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-open?:Mylib3))(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))
((?:BUILD_DIR?:$TESTCASE_ROOT/_build/default)(?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.mylib.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib3.objs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-open?:Mylib3))(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))

$ FILE=_build/default/lib3.ml
$ printf "(4:File%d:%s)" ${#FILE} $FILE | dune ocaml-merlin | sed -E "s/[[:digit:]]+:/\?:/g"
((?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.mylib.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib3.objs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-open?:Mylib3))(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))
((?:BUILD_DIR?:$TESTCASE_ROOT/_build/default)(?:STDLIB?:/OCAMLC_WHERE)(?:EXCLUDE_QUERY_DIR)(?:B?:$TESTCASE_ROOT/_build/default/.mylib.objs/byte)(?:B?:$TESTCASE_ROOT/_build/default/.mylib3.objs/byte)(?:S?:$TESTCASE_ROOT)(?:FLG(?:-open?:Mylib3))(?:FLG(?:-w?:@1..3@5..28@30..39@43@46..47@49..57@61..62-?:-strict-sequence?:-strict-formats?:-short-paths?:-keep-locs)))
4 changes: 3 additions & 1 deletion test/blackbox-tests/test-cases/merlin/src-dirs-of-deps.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ library also has more than one src dir.
$ dune build lib2/.merlin-conf/lib-lib2
$ dune ocaml merlin dump-config $PWD/lib2
Lib2
((STDLIB /OPAM_PREFIX)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OPAM_PREFIX)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/lib1/.lib1.objs/byte)
Expand Down
2 changes: 1 addition & 1 deletion test/blackbox-tests/test-cases/merlin/symlinks.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ Dune ocaml-merlin also accepts paths relative to the current directory

$ dune ocaml merlin dump-config "." --root=".." | head -n 2
Foo
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

$ dune ocaml merlin dump-config $PWD
Foo
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/.foo.eobjs/byte)
Expand All @@ -26,7 +28,9 @@

$ dune ocaml merlin dump-config $PWD/foo
Bar
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/foo/.foo.objs/byte)
Expand All @@ -41,7 +45,9 @@
-short-paths
-keep-locs)))
Foo
((STDLIB /OCAMLC_WHERE)
((BUILD_DIR
$TESTCASE_ROOT/_build/default)
(STDLIB /OCAMLC_WHERE)
(EXCLUDE_QUERY_DIR)
(B
$TESTCASE_ROOT/_build/default/foo/.foo.objs/byte)
Expand Down

0 comments on commit a1f1606

Please sign in to comment.