Skip to content

Commit

Permalink
Make test more compatible (pushd is bash only)
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Nov 13, 2023
1 parent d9b7785 commit 390e0cd
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions tests/test-dirs/locate/local-build-scheme.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,25 @@
> ()
> EOF

$ pushd experimental >/dev/null
$ cd experimental
$ $OCAMLC -keep-locs -bin-annot m_intf.ml exp.ml
$ popd >/dev/null
$ cd ..

$ pushd unix >/dev/null
$ cd unix
$ $OCAMLC -keep-locs -bin-annot m_intf.ml unix.ml
$ popd >/dev/null
$ cd ..

$ $OCAMLC -keep-locs -bin-annot -I experimental/ -I linux/ hack.ml

$ $MERLIN single locate -position 2:12 -look-for implementation \
> -build-path experimental -build-path unix \
> -source-path . -source-path unix -source-path experimental \
> -filename hack.ml <hack.ml
> -filename hack.ml <hack.ml | jq '.value'
{
"class": "return",
"value": {
"file": "$TESTCASE_ROOT/experimental/m_intf.ml",
"pos": {
"line": 1,
"col": 20
}
},
"notifications": []
"file": "$TESTCASE_ROOT/experimental/m_intf.ml",
"pos": {
"line": 1,
"col": 20
}
}

0 comments on commit 390e0cd

Please sign in to comment.