Skip to content

Commit

Permalink
test that -pp flags are correctly handled
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Sep 20, 2023
1 parent a74d0d1 commit 1e8f7e7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test-dirs/with-pp.t/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$ cat >pp.sh <<EOF
> #!/bin/sh
> sed 's/world/universe/g' \$1
> EOF

$ chmod a+x pp.sh

$ cat >main.ml <<EOF
> type world!;;
> EOF

$ cat >.merlin <<EOF
> FLG -pp pp.sh
> EOF

$ $MERLIN single dump -what ppxed-source -filename main.ml<main.ml |
> tr -d '\n' | jq '.value'
"type universe"

0 comments on commit 1e8f7e7

Please sign in to comment.