Skip to content

Commit 3040a6c

Browse files
committed
test that -pp flags are correctly handled
(see ocaml/ocaml-lsp#1153)
1 parent 106156f commit 3040a6c

File tree

1 file changed

+18
-0
lines changed
  • tests/test-dirs/with-pp.t

1 file changed

+18
-0
lines changed

tests/test-dirs/with-pp.t/run.t

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
$ cat >pp.sh <<EOF
2+
> #!/bin/sh
3+
> sed 's/world/universe/g' \$1
4+
> EOF
5+
6+
$ chmod a+x pp.sh
7+
8+
$ cat >main.ml <<EOF
9+
> type world!;;
10+
> EOF
11+
12+
$ cat >.merlin <<EOF
13+
> FLG -pp pp.sh
14+
> EOF
15+
16+
$ $MERLIN single dump -what ppxed-source -filename main.ml<main.ml |
17+
> tr -d '\n' | jq '.value'
18+
"type universe"

0 commit comments

Comments
 (0)